Function at 0x59facc
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x59fad4
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x59fd18
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x6456c8]
mov eax, dword [eax]
mov eax, dword [eax + 0x458]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x59fcfd
inc esi
xor ebx, ebx
lea ecx, [ebp - 8]
mov eax, dword [0x6456c8]
mov eax, dword [eax]
mov eax, dword [eax + 0x458]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
call fcn.00408f80
lea edx, [ebp - 0xc]
xor eax, eax
call fcn.0059743c
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.0040447c
test eax, eax
jle 0x59fcf5
mov eax, dword [0x6456c8]
mov eax, dword [eax]
mov eax, dword [eax + 0x374]
mov dl, 1
call fcn.00555d1c
mov eax, dword [0x6456c8]
mov eax, dword [eax]
mov eax, dword [eax + 0x2d0]
mov dl, 1
call fcn.0045a094
mov eax, dword [0x645354]
mov eax, dword [eax]
mov eax, dword [eax + 0x32c]
mov edx, dword [eax]
call dword [edx + 0xb4]
test al, al
je 0x59fbc2
lea edx, [ebp - 0x14]
mov eax, dword [0x6454e4]
mov eax, dword [eax]
call fcn.00454428
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.00409adc
lea eax, [ebp - 0x10]
mov edx, 0x59fd30
call fcn.00404198
mov edx, dword [ebp - 0x10]
mov eax, dword [0x6456c8]
mov eax, dword [eax]
call fcn.0061c45c
mov eax, dword [0x6456e0]
cmp byte [eax], 0
je 0x59fc0e
lea ecx, [ebp - 0x1c]
mov eax, dword [0x6456c8]
mov eax, dword [eax]
mov eax, dword [eax + 0x458]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
mov edx, 0x59fd48
call fcn.004041dc
mov edx, dword [ebp - 0x18]
mov eax, dword [0x65a224]
mov eax, dword [eax + 0x2ec]
mov eax, dword [eax + 0x208]
call fcn.00413a78
jmp 0x59fc4b
lea ecx, [ebp - 0x20]
mov eax, dword [0x6456c8]
mov eax, dword [eax]
mov eax, dword [eax + 0x458]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea eax, [ebp - 0x20]
mov edx, 0x59fd5c
call fcn.00404198
mov edx, dword [ebp - 0x20]
mov eax, dword [0x65a224]
mov eax, dword [eax + 0x2ec]
mov eax, dword [eax + 0x208]
call fcn.00413a78
lea ecx, [ebp - 0x24]
mov eax, dword [0x6456c8]
mov eax, dword [eax]
mov eax, dword [eax + 0x458]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x24]
call fcn.0040998c
test al, al
jne 0x59fce1
push 4
lea ecx, [ebp - 0x28]
mov eax, dword [0x6456c8]
mov eax, dword [eax]
mov eax, dword [eax + 0x458]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea eax, [ebp - 0x28]
mov edx, 0x59fd7c
call fcn.00404198
mov eax, dword [ebp - 0x28]
call fcn.00404354
push eax
lea ecx, [ebp - 0x2c]
mov eax, dword [0x6456c8]
mov eax, dword [eax]
mov eax, dword [eax + 0x458]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x2c]
call fcn.00404354
push eax
call sub.kernel32.dll_MoveFileExA
lea ecx, [ebp - 0x30]
mov eax, dword [0x6456c8]
mov eax, dword [eax]
mov eax, dword [eax + 0x458]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x30]
call fcn.0059f86c
mov eax, dword [0x6456c8]
mov eax, dword [eax]
mov eax, dword [eax + 0x458]
mov edx, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
inc ebx
dec esi
jne 0x59fb0c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59fd1f
lea eax, [ebp - 0x30]
mov edx, 0xc
call fcn.00403f34
ret