Function at 0x58cca1
Capabilities:
Clear file content
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x858
push ebx
push esi
push edi
lea eax, [ebp - 0x454]
push eax
call fcn.00401aa4
push dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
push ebx
call fcn.0058d20d
push edx
mov dword [ebp - 0x1c], eax
push eax
mov eax, ebx
mov dword [ebp - 0x18], edx
call fcn.0058c762
mov byte [ebp - 5], al
test al, al
lea eax, [ebp - 0x24c]
je 0x58ccf5
push str..tmp
push eax
lea eax, [ebp - 0x454]
push eax
call fcn.004a21be
jmp 0x58ccfd
push eax
mov eax, dword [ebx]
call fcn.00401016
lea eax, [ebp - 0x24c]
push eax
lea esi, [ebp - 0x10]
call fcn.004476b9
cmp dword [ebp - 0x10], 0xffffffff
jne 0x58cd26
lea ecx, [ebp - 0x454]
call fcn.004a32d9
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp byte [ebp - 5], 0
push dword [ebp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push ebx
je 0x58cd4e
call fcn.0058f0c7
push edx
push eax
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
call fcn.0058cf5c
jmp 0x58cd5e
call fcn.0058f0c7
push 0
push 0
push edx
push eax
push dword [ebp - 0x10]
call edi
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
call fcn.0058d3a2
test al, al
jne 0x58cd88
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor bl, bl
lea ecx, [ebp - 0x454]
call fcn.004a32d9
mov al, bl
jmp 0x58cd1f
and dword [ebp - 0x30], 0
lea eax, [ebp - 0x10]
push eax
push ebx
lea esi, [ebp - 0x30]
call fcn.0058f017
cmp byte [ebp - 5], 0
je 0x58cede
push 0x3e8
push dword [ebx]
lea esi, [ebp - 0xc]
call fcn.004474c3
cmp dword [ebp - 0xc], 0xffffffff
je 0x58cee7
push 2
xor ecx, ecx
push ecx
push ecx
xor eax, eax
push eax
push dword [ebp - 0xc]
call edi
mov eax, esi
push eax
call fcn.004019a4
cmp edx, dword [ebp - 0x18]
ja 0x58cdec
jb 0x58cdde
cmp eax, dword [ebp - 0x1c]
ja 0x58cdec
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x58cee7
sub eax, dword [ebp - 0x1c]
push 0
sbb edx, dword [ebp - 0x18]
push 0
push dword [ebp - 0x18]
mov esi, edx
push dword [ebp - 0x1c]
mov ebx, eax
push dword [ebp - 0xc]
mov dword [ebp - 0x40], esi
call edi
xor ecx, ecx
mov eax, ebx
shrd eax, esi, 0xa
shr esi, 0xa
cmp esi, ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
jb 0x58ce93
ja 0x58ce35
cmp eax, ecx
jbe 0x58ce93
mov edi, 0x400
push edi
lea eax, [ebp - 0x854]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00401f65
add dword [ebp - 0x1c], eax
push edi
lea eax, [ebp - 0x854]
adc dword [ebp - 0x18], 0
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00402005
add dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1c]
adc dword [ebp - 0x20], 0
cmp eax, dword [ebp - 0x24]
jne 0x58ced0
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 0x18], eax
jne 0x58ced0
add dword [ebp - 0x2c], 1
adc dword [ebp - 0x28], 0
cmp dword [ebp - 0x28], esi
jb 0x58ce3a
ja 0x58ce91
mov eax, dword [ebp - 0x3c]
cmp dword [ebp - 0x2c], eax
jb 0x58ce3a
xor ecx, ecx
mov esi, ebx
and esi, 0x3ff
je 0x58ced0
sub ebx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x40]
sbb eax, dword [ebp - 0x18]
cmp esi, ebx
jne 0x58ced0
cmp ecx, eax
jne 0x58ced0
push esi
lea eax, [ebp - 0x854]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00401f65
push esi
lea eax, [ebp - 0x854]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00402005
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp + 8]
jmp 0x58cee7
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push dword [ebp + 0x10]
mov eax, ebx
call fcn.0058f156
mov edi, dword [ebp - 0x30]
mov ecx, dword [ebp + 0xc]
sub edi, eax
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp + 0x10]
mov esi, eax
add esi, edi
call fcn.0058f169
push eax
push esi
lea eax, [ebp - 0x10]
push eax
push ebx
call fcn.0058d0e3
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 5], 0
jne 0x58cf33
push esi
mov esi, ebx
call fcn.0058d1dd
mov bl, 1
jmp 0x58cd79
push dword [ebx]
lea eax, [ebp - 0x24c]
push eax
call fcn.00401a8b
test al, al
je 0x58cf4d
push esi
mov esi, ebx
call fcn.0058d1dd
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x58cf2c