Function at 0x56ba70
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xa
push 0
push 0
dec ecx
jne 0x56ba78
push ebx
push esi
push edi
mov esi, edx
mov dword [ebp - 4], eax
mov edi, dword [0x587154]
xor eax, eax
push ebp
push 0x56befd
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea edx, [ebp - 0xc]
mov eax, dword [0x586fe8]
mov eax, dword [eax]
call fcn.0040967c
cmp dword [ebp - 0xc], 0
je 0x56badd
mov eax, dword [ebp - 0xc]
call fcn.004046f4
mov edx, dword [ebp - 0xc]
cmp byte [edx + eax - 1], 0x5c
jne 0x56badd
mov eax, dword [ebp - 0xc]
call fcn.004046f4
mov edx, eax
lea eax, [ebp - 0xc]
mov ecx, 1
call fcn.00404994
mov eax, esi
call fcn.004ced60
test al, al
jne 0x56baf4
mov eax, esi
call fcn.0052e984
jmp 0x56bee2
lea eax, [ebp - 0x14]
mov ecx, 0x56bf18
mov edx, esi
call fcn.00404740
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.00528914
mov eax, dword [ebp - 0x10]
mov edx, dword [0x5896d4]
call fcn.00404840
je 0x56bb5d
push 0
lea eax, [ebp - 0x18]
mov ecx, 0x56bf18
mov edx, esi
call fcn.00404740
mov eax, dword [ebp - 0x18]
call fcn.004048f4
push eax
mov eax, dword [0x586fe8]
mov eax, dword [eax]
call fcn.004048f4
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
jne 0x56bb5d
mov eax, 0x43c
call fcn.0051c7ec
jmp 0x56bee2
mov dl, 1
mov eax, dword [0x41a6d4]
call fcn.004035d0
mov ebx, eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x44]
mov edx, 0x56bf30
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, 0x56bf44
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, 0x56bf60
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x1c]
mov ecx, 0x56bf7c
mov edx, esi
call fcn.00404740
mov edx, dword [ebp - 0x1c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x74]
mov eax, ebx
call fcn.00403600
push esi
push 0x56bf94
mov eax, dword [0x58701c]
push dword [eax]
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.004047b4
mov eax, dword [ebp - 0x20]
call fcn.004ced60
test al, al
jne 0x56bbfe
push esi
push 0x56bf94
mov eax, dword [0x58701c]
push dword [eax]
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.004047b4
mov eax, dword [ebp - 0x24]
call fcn.00409934
mov eax, dword [edi]
call fcn.004054dc
mov ebx, eax
dec ebx
cmp ebx, 0
jl 0x56bc51
push esi
mov eax, dword [0x58701c]
push dword [eax]
push 0x56bf94
mov eax, dword [edi]
mov eax, dword [eax + ebx*4]
push dword [eax]
push 0x56bfa0
lea eax, [ebp - 0x28]
mov edx, 5
call fcn.004047b4
mov eax, dword [ebp - 0x28]
call fcn.004095c0
mov eax, dword [edi]
mov eax, dword [eax + ebx*4]
mov edx, dword [0x5214ec]
call fcn.0040521c
dec ebx
cmp ebx, 0xffffffff
jne 0x56bc0d
push 0
mov eax, edi
mov ecx, 1
mov edx, dword [0x521564]
call fcn.00405698
add esp, 4
mov eax, dword [0x587220]
mov eax, dword [eax]
call fcn.004054dc
mov edi, eax
dec edi
test edi, edi
jl 0x56be0e
inc edi
xor ebx, ebx
mov eax, dword [0x587220]
mov eax, dword [eax]
mov eax, dword [eax + ebx*4]
cmp byte [eax + 0x10], 0
je 0x56be06
mov eax, dword [0x587220]
mov eax, dword [eax]
mov eax, dword [eax + ebx*4]
mov eax, dword [eax]
mov edx, dword [0x587220]
mov edx, dword [edx]
mov edx, dword [edx + ebx*4]
mov edx, dword [edx + 0xc]
call fcn.00404840
je 0x56bceb
push esi
mov eax, dword [0x58701c]
push dword [eax]
push 0x56bf94
mov eax, dword [0x587220]
mov eax, dword [eax]
mov eax, dword [eax + ebx*4]
push dword [eax + 0xc]
push 0x56bfa0
lea eax, [ebp - 0x2c]
mov edx, 5
call fcn.004047b4
mov eax, dword [ebp - 0x2c]
call fcn.004095c0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4b0]
call fcn.00454430
cmp ebx, eax
jne 0x56bd39
push esi
mov eax, dword [0x58701c]
push dword [eax]
push 0x56bf94
mov eax, dword [0x587220]
mov eax, dword [eax]
mov eax, dword [eax + ebx*4]
push dword [eax]
push 0x56bfa0
lea eax, [ebp - 0x30]
mov edx, 5
call fcn.004047b4
mov edx, dword [ebp - 0x30]
mov eax, dword [0x586ccc]
mov eax, dword [eax]
call fcn.0052b58c
jmp 0x56bda7
push 0
push esi
mov eax, dword [0x58701c]
push dword [eax]
push 0x56bf94
mov eax, dword [0x587220]
mov eax, dword [eax]
mov eax, dword [eax + ebx*4]
push dword [eax]
push 0x56bfa0
lea eax, [ebp - 0x34]
mov edx, 5
call fcn.004047b4
mov eax, dword [ebp - 0x34]
call fcn.004048f4
push eax
mov eax, dword [0x58702c]
push dword [eax]
push 0x56bf94
mov eax, dword [0x587220]
mov eax, dword [eax]
mov eax, dword [eax + ebx*4]
push dword [eax]
push 0x56bfa0
lea eax, [ebp - 0x38]
mov edx, 4
call fcn.004047b4
mov eax, dword [ebp - 0x38]
call fcn.004048f4
push eax
call sub.kernel32.dll_CopyFileA
mov eax, dword [0x587220]
mov eax, dword [eax]
mov eax, dword [eax + ebx*4]
add eax, 0xc
mov edx, dword [0x587220]
mov edx, dword [edx]
mov edx, dword [edx + ebx*4]
mov edx, dword [edx]
call fcn.00404488
mov eax, dword [0x587220]
mov eax, dword [eax]
mov eax, dword [eax + ebx*4]
mov byte [eax + 0x10], 0
mov eax, dword [0x58702c]
push dword [eax]
push 0x56bf94
mov eax, dword [0x587220]
mov eax, dword [eax]
mov eax, dword [eax + ebx*4]
push dword [eax]
push 0x56bfa0
lea eax, [ebp - 0x3c]
mov edx, 4
call fcn.004047b4
mov eax, dword [ebp - 0x3c]
call fcn.004095c0
inc ebx
dec edi
jne 0x56bc82
push esi
mov eax, dword [0x58701c]
push dword [eax]
push 0x56bf94
mov eax, dword [0x586c60]
push dword [eax]
lea eax, [ebp - 0x40]
mov edx, 4
call fcn.004047b4
mov eax, dword [ebp - 0x40]
call fcn.00528418
lea eax, [ebp - 0x44]
mov ecx, 0x56bfac
mov edx, esi
call fcn.00404740
mov eax, dword [ebp - 0x44]
call fcn.00409374
test al, al
jne 0x56be9a
push 0
lea eax, [ebp - 0x48]
mov ecx, 0x56bfac
mov edx, esi
call fcn.00404740
mov eax, dword [ebp - 0x48]
call fcn.004048f4
push eax
lea eax, [ebp - 0x4c]
mov ecx, 0x56bfc4
mov edx, dword [ebp - 0xc]
call fcn.00404740
mov eax, dword [ebp - 0x4c]
call fcn.004048f4
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
jne 0x56be9a
mov eax, 0x43d
call fcn.0051c7ec
jmp 0x56bee2
lea eax, [ebp - 0x50]
mov ecx, 0x56bfdc
mov edx, dword [ebp - 0xc]
call fcn.00404740
mov ecx, dword [ebp - 0x50]
mov dl, 1
mov eax, dword [0x442da8]
call fcn.00442e58
mov ebx, eax
push esi
mov ecx, 0x56bff4
mov edx, 0x56c008
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 4]
mov eax, ebx
call fcn.00403600
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00555674
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x56bf04
lea eax, [ebp - 0x50]
mov edx, 0x12
call fcn.00404458
ret