Function at 0x459978
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x459980
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004049c0
xor eax, eax
push ebp
push 0x459c81
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov dl, 1
mov eax, dword [0x458f80]
call fcn.00459190
mov ebx, eax
mov dl, 1
mov eax, dword [0x42d83c]
call fcn.0042d93c
mov esi, eax
mov eax, dword [ebp - 4]
mov edx, 0x459c98
call fcn.0040491c
jne 0x459be7
mov dl, 1
mov eax, dword [0x4160cc]
call fcn.00403790
call fcn.00459814
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x14]
xor edx, edx
mov eax, dword [ebp - 0x10]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x14]
mov eax, ebx
call fcn.004591f8
mov edx, 0x459ca8
mov eax, ebx
call fcn.00459258
mov edx, 0x459cec
mov eax, ebx
call fcn.00459670
lea ecx, [ebp - 0x18]
xor edx, edx
mov eax, dword [ebp - 0x10]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x58]
call fcn.00404564
xor edx, edx
mov eax, ebx
call fcn.004596dc
mov eax, ebx
call fcn.004596bc
lea ecx, [ebp - 0x1c]
mov edx, 1
mov eax, dword [ebp - 0x10]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x1c]
mov eax, ebx
call fcn.004591f8
mov edx, 0x459d00
mov eax, ebx
call fcn.00459258
mov edx, 0x459cec
mov eax, ebx
call fcn.00459670
lea ecx, [ebp - 0x20]
mov edx, 1
mov eax, dword [ebp - 0x10]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x20]
lea eax, [ebx + 0x58]
call fcn.00404564
xor edx, edx
mov eax, ebx
call fcn.004596dc
mov eax, ebx
call fcn.004596bc
lea ecx, [ebp - 0x24]
mov edx, 2
mov eax, dword [ebp - 0x10]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x24]
mov eax, ebx
call fcn.004591f8
lea eax, [ebp - 0x28]
call fcn.0045a840
lea eax, [ebp - 0x28]
mov edx, 0x459d3c
call fcn.004047d8
mov edx, dword [ebp - 0x28]
mov eax, ebx
call fcn.00459258
lea eax, [ebx + 0x5c]
mov edx, 0x459d54
call fcn.00404564
lea eax, [ebp - 0x2c]
call fcn.0045b5c8
mov edx, dword [ebp - 0x2c]
lea eax, [ebx + 0x54]
call fcn.00404564
mov edx, 0x459cec
mov eax, ebx
call fcn.00459670
lea ecx, [ebp - 0x30]
mov edx, 2
mov eax, dword [ebp - 0x10]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x30]
lea eax, [ebx + 0x58]
call fcn.00404564
mov eax, ebx
call fcn.004596bc
mov edx, 0x459d60
mov eax, ebx
call fcn.004591f8
lea eax, [ebp - 0x34]
call fcn.0045a840
lea eax, [ebp - 0x34]
mov edx, 0x459d3c
call fcn.004047d8
mov edx, dword [ebp - 0x34]
mov eax, ebx
call fcn.00459258
lea eax, [ebx + 0x5c]
call fcn.00404510
lea eax, [ebp - 0x38]
call fcn.0045a840
mov edx, dword [ebp - 0x38]
lea eax, [ebx + 0x54]
mov ecx, 0x459d3c
call fcn.0040481c
mov edx, 0x459cec
mov eax, ebx
call fcn.00459670
lea eax, [ebx + 0x58]
mov edx, 0x459d60
call fcn.00404564
mov dl, 1
mov eax, ebx
call fcn.004596dc
mov eax, ebx
call fcn.004596bc
mov edx, 0x80000002
mov eax, esi
call fcn.0042d9dc
mov cl, 1
mov edx, 0x459d74
mov eax, esi
call fcn.0042da44
test al, al
je 0x459bde
mov ecx, dword [ebx + 0x4c]
mov edx, 0x459d90
mov eax, esi
call fcn.0042dde0
lea edx, [ebp - 0x3c]
mov eax, dword [ebx + 0x50]
call fcn.00408dd4
mov ecx, dword [ebp - 0x3c]
mov edx, 0x459da8
mov eax, esi
call fcn.0042dde0
mov eax, esi
call fcn.0042d9ac
jmp 0x459c52
mov edx, 0x80000002
mov eax, esi
call fcn.0042d9dc
mov cl, 1
mov edx, 0x459d74
mov eax, esi
call fcn.0042da44
test al, al
je 0x459c52
lea ecx, [ebp - 8]
mov edx, 0x459d90
mov eax, esi
call fcn.0042de0c
lea ecx, [ebp - 0xc]
mov edx, 0x459da8
mov eax, esi
call fcn.0042de0c
mov eax, dword [ebp - 8]
call fcn.004049d0
push eax
call sub.kernel32.dll_DeleteFileA
mov eax, dword [ebp - 0xc]
call fcn.004049d0
mov edx, eax
lea eax, [ebp - 0x40]
call fcn.00404708
mov eax, dword [ebp - 0x40]
call fcn.00459750
mov eax, esi
call fcn.0042d9ac
mov eax, esi
call fcn.004037c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459c88
lea eax, [ebp - 0x40]
mov edx, 0xc
call fcn.00404534
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404534
ret