Function at 0x51ba34
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 7
push 0
push 0
dec ecx
jne 0x51ba3d
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00407c58
mov eax, dword [ebp + 8]
call fcn.00407c58
xor eax, eax
push ebp
push 0x51bca0
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [ebp + 8]
call fcn.00420b70
test al, al
jne 0x51ba85
mov eax, dword [ebp + 8]
call fcn.00420c40
mov edx, ebx
lea ecx, [ebp - 0x18]
mov eax, dword [esi + 4]
call fcn.0051b5a4
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov ecx, dword [0x443e5c]
call fcn.00409a2c
xor ebx, ebx
jmp 0x51bc32
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x1c]
mov edx, dword [edx + ebx*4]
call fcn.00407f9c
lea ecx, [ebp - 0x20]
mov edx, dword [ebp + 8]
mov eax, esi
call fcn.0051b77c
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 8]
call fcn.0040890c
lea ecx, [ebp - 0x24]
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0051b77c
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 8]
call fcn.0040890c
mov dl, 1
mov eax, dword [ebp - 0x10]
call fcn.00420ad8
test al, al
jne 0x51bc29
mov dl, 1
mov eax, dword [ebp - 0xc]
call fcn.00420ad8
test al, al
je 0x51bc31
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.00421074
mov dl, 1
mov eax, dword [ebp - 0x14]
call fcn.00420b70
test al, al
jne 0x51bb33
mov eax, dword [ebp - 0x14]
call fcn.00420c40
push 0xffffffffffffffff
mov eax, dword [ebp - 0x10]
call fcn.004086c8
push eax
mov eax, dword [ebp - 0xc]
call fcn.004086c8
push eax
call sub.kernel32.dll_CopyFileW
test eax, eax
jne 0x51bbde
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], 0x11
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0x11
lea edx, [ebp - 0x38]
mov ecx, 1
mov eax, 0x51bcbc
call fcn.004218a8
mov edx, dword [ebp - 0x28]
mov eax, dword [0x529834]
call fcn.00405a58
call fcn.00405b58
call fcn.004046b8
lea eax, [ebp - 0x3c]
call fcn.00519de0
mov edx, dword [ebp - 0x3c]
mov eax, dword [0x529834]
call fcn.00405a58
call fcn.00405b58
call fcn.004046b8
mov eax, dword [0x529834]
mov edx, 0x51bd04
call fcn.00405a58
call fcn.00405b58
call fcn.004046b8
mov eax, dword [0x5299f0]
call fcn.00405524
call fcn.004046b8
jmp 0x51bc31
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], 0x11
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0x11
lea edx, [ebp - 0x38]
mov ecx, 1
mov eax, 0x51bd24
call fcn.004218a8
mov edx, dword [ebp - 0x40]
mov eax, dword [0x529834]
call fcn.00405a58
call fcn.00405b58
call fcn.004046b8
mov eax, dword [ebp - 0xc]
call fcn.00420f38
jmp 0x51bc31
mov eax, dword [ebp - 0xc]
call fcn.00420f38
inc ebx
mov eax, dword [ebp - 0x1c]
call fcn.00409830
cmp ebx, eax
jl 0x51baaa
lea eax, [ebp - 0x1c]
mov edx, dword [0x443e5c]
call fcn.004099f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51bca7
lea eax, [ebp - 0x40]
mov edx, 2
call fcn.00407bd4
lea eax, [ebp - 0x28]
mov edx, 3
call fcn.00407bd4
lea eax, [ebp - 0x1c]
mov edx, dword [0x443e5c]
mov ecx, 2
call fcn.00408f38
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00407bd4
lea eax, [ebp + 8]
call fcn.00407b74
ret