Function at 0x4585b0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4afcc8
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push esi
push edi
mov eax, dword [0x4ecba0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 0
call fcn.0046d74a
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x458601
push 0x80004005
call fcn.00402240
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.004778a9
push 0
push 0x1000
push 0
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 2
call fcn.0047aca0
mov byte [ebp - 4], 3
call fcn.0046d74a
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x458653
push 0x80004005
call fcn.00402240
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x24], eax
push str.BrowsedBINPath.txt
push esi
lea ecx, [ebp - 0x18]
push 0x4bbd28
push ecx
mov byte [ebp - 4], 5
call fcn.00402d80
mov esi, dword [ebp - 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
add esp, 0x10
push 0
push SysReAllocString
push 4
push 0
push 6
push 0x40000000
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call ebx
push 1
push ecx
mov dword [ebp - 0x1c], esp
lea eax, [esi - 0x10]
mov dword [ebp - 0x1c], esp
push eax
call fcn.00409450
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
add eax, 0x10
add esp, 4
mov dword [edx], eax
call fcn.004583c0
mov byte [ebp - 0x11], al
cmp al, 1
jne 0x4586da
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [ebp - 0x11], al
push 0
push SysReAllocString
push 4
push 0
push 6
push 0x40000000
push esi
call edi
push eax
call ebx
push 0
push 2
push esi
lea ecx, [ebp - 0x34]
call fcn.00477d46
mov eax, dword [ebp - 0x34]
mov edx, dword [eax + 0x28]
push 0
push 0
push 0
lea ecx, [ebp - 0x34]
call edx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x7c]
call fcn.0047ab5d
lea ecx, [ebp - 0x7c]
call fcn.0047a6a1
lea ecx, [ebp - 0x34]
call fcn.004776cb
lea ecx, [ebp - 0x7c]
call fcn.0047aa21
lea ecx, [ebp - 0x34]
call fcn.00477843
mov dword [ebp - 4], 4
jmp 0x4587a0
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4587c3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 2
call fcn.0047ac62
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.004779c2
lea eax, [esi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4587fb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x458821
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4