Function at 0x5833f6
Capabilities:
Clear file content
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x5588
call fcn.0059fbd0
push ebx
push esi
push edi
lea eax, [ebp - 0x44c]
push eax
call fcn.00401aa4
mov esi, dword [ebp + 8]
push 2
push esi
call fcn.0058d20d
mov edi, eax
push edx
push edi
mov eax, esi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edx
call fcn.0058c762
mov byte [ebp - 5], al
test al, al
lea eax, [ebp - 0x244]
je 0x58344f
push str..tmp
push eax
lea eax, [ebp - 0x44c]
push eax
call fcn.004a21be
jmp 0x583457
push eax
mov eax, dword [esi]
call fcn.00401016
lea eax, [ebp - 0x244]
push eax
lea esi, [ebp - 0x18]
call fcn.004476b9
mov esi, dword [ebp - 0x18]
cmp esi, 0xffffffff
jne 0x583482
lea ecx, [ebp - 0x44c]
call fcn.004a32d9
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4
cmp byte [ebp - 5], 0
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
je 0x5834a5
push dword [ebp - 0x10]
xor eax, eax
push edi
push eax
push eax
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call fcn.0058cf5c
jmp 0x5834b0
push 0
push 0
push dword [ebp - 0x10]
push edi
push esi
call ebx
lea edi, [ebp - 0x5584]
call fcn.004d6d16
mov edi, dword [ebp + 8]
push dword [edi + 4]
lea eax, [ebp - 0x5552]
push eax
call fcn.004fd738
cmp dword [edi + 0xc], 0
jbe 0x5834e2
push dword [edi + 4]
lea eax, [ebp - 0x876]
push eax
call fcn.00525275
lea eax, [ebp - 0x861]
push eax
mov eax, edi
call fcn.0058d29c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5584]
push eax
call fcn.0058d3a2
test al, al
jne 0x58352b
lea eax, [ebp - 0x5584]
push eax
call fcn.004d6e02
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor bl, bl
lea ecx, [ebp - 0x44c]
call fcn.004a32d9
mov al, bl
jmp 0x58347b
cmp byte [ebp - 5], 0
je 0x583670
push 0x3e8
push dword [edi]
lea esi, [ebp - 0xc]
call fcn.004474c3
cmp dword [ebp - 0xc], 0xffffffff
je 0x583677
push 2
xor esi, esi
push esi
push esi
xor eax, eax
push eax
push dword [ebp - 0xc]
call ebx
lea eax, [ebp - 0xc]
push eax
call fcn.004019a4
cmp edx, dword [ebp - 0x10]
ja 0x58357f
jb 0x583571
cmp eax, dword [ebp - 0x14]
ja 0x58357f
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x583677
sub eax, dword [ebp - 0x14]
push esi
sbb edx, dword [ebp - 0x10]
push esi
push dword [ebp - 0x10]
mov edi, eax
push dword [ebp - 0x14]
mov dword [ebp - 0x38], edx
push dword [ebp - 0xc]
call ebx
mov esi, dword [ebp - 0x38]
xor ecx, ecx
mov eax, edi
shrd eax, esi, 0xa
shr esi, 0xa
cmp esi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], ecx
jb 0x583625
ja 0x5835c7
cmp eax, ecx
jbe 0x583625
mov ebx, 0x400
push ebx
lea eax, [ebp - 0x84c]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00401f65
add dword [ebp - 0x14], eax
push ebx
lea eax, [ebp - 0x84c]
adc dword [ebp - 0x10], 0
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00402005
add dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x14]
adc dword [ebp - 0x28], 0
cmp eax, dword [ebp - 0x2c]
jne 0x583662
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0x10], eax
jne 0x583662
add dword [ebp - 0x24], 1
adc dword [ebp - 0x20], 0
cmp dword [ebp - 0x20], esi
jb 0x5835cc
ja 0x583623
mov eax, dword [ebp - 0x34]
cmp dword [ebp - 0x24], eax
jb 0x5835cc
xor ecx, ecx
mov esi, edi
and esi, 0x3ff
je 0x583662
sub edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x38]
sbb eax, dword [ebp - 0x10]
cmp esi, edi
jne 0x583662
cmp ecx, eax
jne 0x583662
push esi
lea eax, [ebp - 0x84c]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00401f65
push esi
lea eax, [ebp - 0x84c]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00402005
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp + 8]
jmp 0x583677
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push 2
lea ecx, [ebp - 0x5584]
call fcn.004d6d79
push eax
lea eax, [ebp - 0x18]
push eax
push edi
call fcn.0058d0e3
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 5], 0
jne 0x5836c4
lea ecx, [ebp - 0x5584]
call fcn.004d6d79
push eax
mov esi, edi
call fcn.0058d1dd
lea eax, [ebp - 0x5584]
push eax
call fcn.004d6e02
mov bl, 1
jmp 0x583519
push dword [edi]
lea eax, [ebp - 0x244]
push eax
call fcn.00401a8b
test al, al
je 0x5836e9
lea ecx, [ebp - 0x5584]
call fcn.004d6d79
push eax
mov esi, edi
call fcn.0058d1dd
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x5836b1