Function at 0x4a35b4
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x34
push 0
push 0
dec ecx
jne 0x4a35bd
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov byte [ebp - 0x16e], cl
mov byte [ebp - 0x16d], dl
mov dword [ebp - 0x16c], eax
mov eax, dword [ebp + 0x20]
call fcn.00404f00
mov eax, dword [ebp + 0x1c]
call fcn.00404f00
mov eax, dword [ebp + 0x18]
call fcn.00404f00
lea eax, [ebp - 0x168]
mov edx, dword [0x4081a4]
call fcn.004056f8
xor eax, eax
push ebp
push 0x4a39a9
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x174], eax
cmp dword [ebp + 0x10], 0
je 0x4a3668
mov eax, dword [ebp + 0x10]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x4a3668
inc esi
xor ebx, ebx
lea ecx, [ebp - 0x17c]
mov edx, ebx
mov eax, dword [ebp + 0x10]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x17c]
lea edx, [ebp - 0x178]
call fcn.00408e94
mov ecx, dword [ebp - 0x178]
mov edx, ebx
mov eax, dword [ebp + 0x10]
mov edi, dword [eax]
call dword [edi + 0x20]
inc ebx
dec esi
jne 0x4a3633
cmp dword [ebp + 0xc], 0
je 0x4a36b5
mov eax, dword [ebp + 0xc]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x4a36b5
inc esi
xor ebx, ebx
lea ecx, [ebp - 0x184]
mov edx, ebx
mov eax, dword [ebp + 0xc]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x184]
lea edx, [ebp - 0x180]
call fcn.00408e94
mov ecx, dword [ebp - 0x180]
mov edx, ebx
mov eax, dword [ebp + 0xc]
mov edi, dword [eax]
call dword [edi + 0x20]
inc ebx
dec esi
jne 0x4a3680
mov eax, dword [ebp + 0x1c]
call fcn.00409b8c
test al, al
jne 0x4a36c9
mov eax, dword [ebp + 0x1c]
call fcn.00409bb0
push dword [ebp + 0x20]
push 0x4a39c8
push dword [ebp + 0x18]
lea eax, [ebp - 0x188]
mov edx, 3
call fcn.00404dd0
mov eax, dword [ebp - 0x188]
lea ecx, [ebp - 0x168]
mov edx, 0x3f
call fcn.00409d54
xor edx, edx
push ebp
push 0x4a3959
push dword fs:[edx]
mov dword fs:[edx], esp
test eax, eax
jne 0x4a3940
test byte [ebp - 0x158], 0x10
je 0x4a381c
mov eax, dword [ebp - 0x154]
mov edx, 0x4a39d4
call fcn.00404e5c
je 0x4a392d
mov eax, dword [ebp - 0x154]
mov edx, 0x4a39e0
call fcn.00404e5c
je 0x4a392d
cmp dword [ebp + 0xc], 0
je 0x4a3776
lea edx, [ebp - 0x18c]
mov eax, dword [ebp - 0x154]
call fcn.00408e94
mov edx, dword [ebp - 0x18c]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x54]
test eax, eax
jge 0x4a392d
cmp byte [ebp + 8], 0
je 0x4a3784
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
jmp 0x4a3788
xor ebx, ebx
xor esi, esi
cmp dword [ebp + 0x14], 0
jle 0x4a3798
cmp dword [ebp + 0x14], 1
jle 0x4a392d
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push 0x4a39c8
push dword [ebp - 0x154]
lea eax, [ebp - 0x190]
mov edx, 3
call fcn.00404dd0
mov eax, dword [ebp - 0x190]
push eax
push dword [ebp + 0x1c]
push 0x4a39c8
push dword [ebp - 0x154]
lea eax, [ebp - 0x194]
mov edx, 3
call fcn.00404dd0
mov eax, dword [ebp - 0x194]
push eax
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x14]
dec eax
push eax
push ebx
push esi
movzx eax, byte [ebp + 8]
push eax
movzx ecx, byte [ebp - 0x16e]
movzx edx, byte [ebp - 0x16d]
mov eax, dword [ebp - 0x16c]
call fcn.004a35b4
add dword [ebp - 0x174], eax
jmp 0x4a392d
cmp dword [ebp + 0x10], 0
je 0x4a3849
lea edx, [ebp - 0x198]
mov eax, dword [ebp - 0x154]
call fcn.00408e94
mov edx, dword [ebp - 0x198]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x54]
test eax, eax
jge 0x4a392d
lea edx, [ebp - 0x19c]
mov eax, dword [ebp + 0x1c]
call fcn.004a05dc
mov edx, dword [ebp - 0x19c]
lea eax, [ebp - 8]
mov ecx, dword [ebp - 0x154]
call fcn.00404d5c
mov eax, dword [ebp + 0x1c]
push eax
mov eax, dword [ebp - 0x154]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp + 0x14]
push eax
movzx ecx, byte [ebp - 0x16e]
movzx edx, byte [ebp - 0x16d]
mov eax, dword [ebp - 0x16c]
call fcn.004a28f4
test al, al
je 0x4a3927
lea edx, [ebp - 0x1a0]
mov eax, dword [ebp + 0x20]
call fcn.004a05dc
mov edx, dword [ebp - 0x1a0]
lea eax, [ebp - 4]
mov ecx, dword [ebp - 0x154]
call fcn.00404d5c
mov eax, dword [ebp - 8]
call fcn.00409b68
test al, al
je 0x4a38da
mov edx, 0x20
mov eax, dword [ebp - 8]
call fcn.00409ca8
push 0
mov eax, dword [ebp - 8]
call fcn.00404f10
push eax
mov eax, dword [ebp - 4]
call fcn.00404f10
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
jne 0x4a3927
push 0x4a39ec
push dword [ebp - 4]
push 0x4a3a0c
push dword [ebp - 8]
push 0x4a3a1c
lea eax, [ebp - 0x1a4]
mov edx, 5
call fcn.00404dd0
mov eax, dword [ebp - 0x1a4]
call fcn.00439468
mov eax, dword [ebp + 0x28]
call dword [ebp + 0x24]
lea eax, [ebp - 0x168]
call fcn.00409da4
test eax, eax
je 0x4a3710
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a3960
lea eax, [ebp - 0x168]
call fcn.00409dc8
ret