Function at 0x59cb78
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff8c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x10], ebx
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
lea eax, [ebp - 0x50]
mov edx, dword [0x543b14]
call fcn.00403e48
xor eax, eax
push ebp
push 0x59cdc2
push dword fs:[eax]
mov dword fs:[eax], esp
mov al, byte [ebx + 0x168]
mov byte [ebp - 0x11], al
mov eax, dword [ebx + 0x164]
mov dword [ebp - 0x1c], eax
cmp esi, 6
jne 0x59cbdd
mov edx, dword [ebx + 0x2f8]
mov eax, ebx
call fcn.0059a724
test al, al
jne 0x59cbdd
mov byte [ebp - 5], 0
jmp 0x59cd84
mov byte [ebp - 5], 1
mov byte [ebp - 0x50], 0
mov dword [ebp - 0x2c], esi
mov al, byte [0x59cdd4]
mov byte [ebp - 0x4e], al
mov eax, dword [ebx + 0x164]
mov dword [ebp - 0x28], eax
mov al, byte [ebx + 0x168]
mov byte [ebp - 0x4f], al
lea eax, [ebp - 0x20]
mov edx, dword [ebx + 0x158]
call fcn.004038bc
mov eax, ebx
call fcn.005c5160
test al, al
je 0x59cc55
mov eax, dword [ebx + 0x310]
cmp dword [eax + 0x18], 0
jne 0x59cc55
cmp byte [ebx + 0x33c], 0
je 0x59cc35
cmp esi, 2
je 0x59cc55
xor eax, eax
mov dword [ebp - 0xc], eax
mov esi, ebx
mov eax, dword [ebx + 0x2f8]
mov eax, dword [eax + 4]
push esi
mov esi, eax
lea edi, [ebp - 0x4c]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
pop esi
jmp 0x59ccb4
mov ecx, ebx
mov dl, 1
mov eax, dword [0x53281c]
call fcn.00532960
mov dword [ebp - 0xc], eax
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.00533098
mov eax, dword [ebp - 0xc]
mov esi, dword [eax + 8]
lea edx, [ebp - 0x70]
mov eax, esi
call fcn.005c8d98
push esi
lea esi, [ebp - 0x70]
lea edi, [ebp - 0x4c]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
pop esi
mov eax, dword [ebx + 0x310]
cmp dword [eax + 0x18], 0
jne 0x59ccb4
dec dword [ebp - 0x38]
cmp dword [ebp - 0x38], 0
jne 0x59ccb4
dec dword [ebp - 0x3c]
mov edx, dword [ebp - 0x3c]
mov eax, esi
call fcn.005c0358
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 0x15c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
call fcn.00660d7c
mov edi, eax
mov dword [esi + 0x15c], edi
inc edi
jne 0x59cd04
lea ecx, [ebp - 0x74]
mov eax, 0x59cdd8
mov edx, dword [ebp - 4]
call fcn.0065d968
mov eax, dword [ebp - 0x74]
mov cx, word [0x59cdf4]
mov dl, 1
call fcn.0062941c
cmp ax, 2
jne 0x59ccbd
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x15c], eax
mov byte [ebp - 5], 0
cmp byte [ebp - 5], 0
je 0x59cd73
mov byte [esi + 0x421], 1
lea eax, [ebp - 0x10]
mov edx, dword [esi + 0x158]
call fcn.004038bc
lea eax, [esi + 0x158]
mov edx, dword [ebp - 4]
call fcn.004038bc
lea edx, [ebp - 0x50]
mov eax, esi
call fcn.005bc150
test al, al
jne 0x59cd49
mov eax, dword [esi + 0x15c]
push eax
call sub.kernel32.dll_CloseHandle
jmp 0x59cd5e
mov eax, dword [esi + 0x15c]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_DeleteFileW
lea eax, [esi + 0x158]
mov edx, dword [ebp - 0x10]
call fcn.004038bc
mov byte [esi + 0x421], 0
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x15c], eax
mov eax, dword [ebp - 0xc]
call fcn.004028c0
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 0x164], eax
mov al, byte [ebp - 0x11]
mov byte [ebx + 0x168], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59cdc9
lea eax, [ebp - 0x74]
call fcn.00403274
lea eax, [ebp - 0x50]
mov edx, dword [0x543b14]
call fcn.00403f10
lea eax, [ebp - 0x10]
call fcn.00403880
ret