Function at 0xb5a9a8
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xc
push 0
push 0
dec ecx
jne 0xb5a9b1
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
call fcn.0040569c
mov eax, dword [ebp + 8]
call fcn.0040569c
xor eax, eax
push ebp
push 0xb5ad3b
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
cmp dword [ebp - 8], 0
jne 0xb5aa0b
cmp dword [ebp - 0xc], 0
jne 0xb5aa0b
mov ecx, 0xb5ad58
mov dl, 1
mov eax, dword [0x409720]
call fcn.0040f3b8
call fcn.00404b40
mov edx, dword [0xba1664]
mov edx, dword [edx]
lea eax, [ebp - 0x2c]
mov ecx, 0xb5ad94
call fcn.004054f8
mov eax, dword [ebp - 0x2c]
call fcn.0040b46c
test al, al
jne 0xb5aa34
mov eax, dword [ebp - 0x2c]
call fcn.0040b990
lea edx, [ebp - 0x38]
mov eax, dword [ebp + 0xc]
call fcn.0040b7a8
mov edx, dword [ebp - 0x38]
lea eax, [ebp - 0x28]
mov ecx, 0xb5ada4
call fcn.004054f8
push dword [ebp - 0x2c]
push 0xb5adb8
lea edx, [ebp - 0x3c]
mov eax, dword [ebp + 0xc]
call fcn.0040b830
push dword [ebp - 0x3c]
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.0040556c
lea eax, [ebp - 0x20]
mov edx, dword [ebp + 0xc]
call fcn.00405284
lea edx, [ebp - 0x40]
mov eax, dword [ebp + 0xc]
call fcn.0040b830
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0x28]
call fcn.004054f8
cmp dword [ebp - 8], 0
je 0xb5ab38
xor eax, eax
push ebp
push 0xb5aad5
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x44]
mov edx, dword [ebp - 0x1c]
call fcn.00405b18
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 8]
mov si, 0xffe7
call fcn.004044a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0xb5abc3
cmp dword [ebp - 0xc], 0
je 0xb5abc3
xor eax, eax
push ebp
push 0xb5ab65
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x74]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0xb5abc3
mov dword [ebp - 0x14], 1
push 0
mov eax, dword [ebp - 0x20]
call fcn.004056ac
push eax
mov eax, dword [ebp - 0x1c]
call fcn.004056ac
push eax
call sub.KERNEL32.DLL_CopyFileA
test eax, eax
jne 0xb5abfa
push 0x1f4
call sub.KERNEL32.DLL_Sleep_1
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 4
jne 0xb5abca
cmp dword [ebp - 0x14], 3
jle 0xb5ac50
call sub.KERNEL32.DLL_GetLastError_1
mov dword [ebp - 0x18], eax
push 0
push 0
push dword [ebp + 8]
push 0xb5adfc
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 0x18]
call fcn.0040ae2c
push dword [ebp - 0x5c]
lea eax, [ebp - 0x58]
mov edx, 3
call fcn.0040556c
mov eax, dword [ebp - 0x58]
push eax
lea edx, [ebp - 0x60]
mov eax, dword [ebp - 0x1c]
call fcn.0040b830
mov edx, dword [ebp - 0x60]
mov cl, 3
mov eax, dword [ebp - 4]
call fcn.00b5b060
jmp 0xb5acf1
push 0
push 1
mov eax, dword [ebp + 8]
push eax
lea edx, [ebp - 0x64]
mov eax, dword [ebp - 0x20]
call fcn.0040b830
mov edx, dword [ebp - 0x64]
mov cl, 3
mov eax, dword [ebp - 4]
call fcn.00b5b060
mov eax, dword [ebp - 0x28]
call fcn.0040b46c
test al, al
jne 0xb5ac84
mov eax, dword [ebp - 0x28]
call fcn.0040b990
mov eax, dword [ebp - 0x28]
call fcn.0040b46c
test al, al
je 0xb5acc7
mov dword [ebp - 0x14], 1
push 0
mov eax, dword [ebp - 0x24]
call fcn.004056ac
push eax
mov eax, dword [ebp - 0x1c]
call fcn.004056ac
push eax
call sub.KERNEL32.DLL_CopyFileA
test eax, eax
jne 0xb5acc7
push 0x1f4
call sub.KERNEL32.DLL_Sleep_1
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 4
jne 0xb5ac97
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x1c]
call fcn.0040b674
test al, al
jne 0xb5aced
push 0x1f4
call sub.KERNEL32.DLL_Sleep_1
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 4
jne 0xb5acce
mov byte [ebp - 0xd], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xb5ad42
lea eax, [ebp - 0x64]
mov edx, 8
call fcn.00405210
lea eax, [ebp - 0x44]
call fcn.00405934
lea eax, [ebp - 0x40]
mov edx, 3
call fcn.00405210
lea eax, [ebp - 0x2c]
mov edx, 5
call fcn.00405210
lea eax, [ebp + 8]
mov edx, 2
call fcn.00405210
ret