Function at 0x4c1a4c
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xa10
push 0
push 0
dec ecx
jne 0x4c1a55
xchg dword [ebp - 4], ecx
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404028
mov eax, dword [ebp - 8]
call fcn.00404028
xor eax, eax
push ebp
push 0x4c2422
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.00409504
cmp eax, 0xffffffff
je 0x4c1ac0
and eax, 1
dec eax
jne 0x4c1ac0
push 0
mov ecx, 0x4c2434
mov edx, 0x4c243c
mov eax, dword [0x4e1268]
mov eax, dword [eax]
call fcn.004504b4
mov edx, esi
mov eax, ebx
call fcn.004c1608
jmp 0x4c237b
mov eax, dword [ebp - 4]
call fcn.004094f4
test al, al
jne 0x4c1adb
lea edx, [ebp - 4]
mov eax, dword [0x4e1268]
mov eax, dword [eax]
call fcn.00450824
mov edx, dword [ebp - 4]
lea eax, [ebx + 0xb120]
call fcn.0040634e
mov eax, dword [0x4e1304]
mov byte [eax], 0
mov edx, 1
lea eax, [ebx + 0xb120]
call fcn.00406885
call fcn.00402864
mov edx, dword [ebp + 8]
lea eax, [ebx + 0xb120]
call fcn.004068bc
call fcn.00402864
push 0
lea edx, [ebp - 0x14]
mov ecx, 4
lea eax, [ebx + 0xb120]
call fcn.004063f0
call fcn.00402864
push 0
lea edx, [ebp - 0x10]
mov ecx, 4
lea eax, [ebx + 0xb120]
call fcn.004063f0
call fcn.00402864
lea eax, [ebx + 0xb120]
call fcn.004064b8
call fcn.00402864
push dword [ebx + 0x50244]
lea edx, [ebp - 0x502c]
mov eax, dword [ebp - 4]
call fcn.0040960c
push dword [ebp - 0x502c]
push 0x4c2470
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00403f34
cmp dword [ebp - 0x10], 0x100
jle 0x4c1c86
mov edx, dword [ebp - 4]
lea eax, [ebx + 0xb120]
call fcn.0040634e
mov eax, dword [0x4e1304]
mov byte [eax], 0
mov edx, 1
lea eax, [ebx + 0xb120]
call fcn.00406885
call fcn.00402864
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xb3b8]
call fcn.0040634e
mov edx, 1
lea eax, [ebx + 0xb3b8]
call fcn.0040689c
call fcn.00402864
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x10]
jge 0x4c1c64
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x1c]
cmp eax, 0x5000
jle 0x4c1c1f
lea eax, [ebp - 0x24]
push eax
lea edx, [ebp - 0x5028]
mov ecx, 0x5000
lea eax, [ebx + 0xb120]
call fcn.004063f0
call fcn.00402864
jmp 0x4c1c3b
lea edx, [ebp - 0x24]
push edx
mov ecx, eax
lea edx, [ebp - 0x5028]
lea eax, [ebx + 0xb120]
call fcn.004063f0
call fcn.00402864
push 0
lea edx, [ebp - 0x5028]
mov ecx, dword [ebp - 0x24]
lea eax, [ebx + 0xb3b8]
call fcn.00406454
call fcn.00402864
mov eax, dword [ebp - 0x24]
add dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x10]
jl 0x4c1bf1
lea eax, [ebx + 0xb120]
call fcn.004064b8
call fcn.00402864
lea eax, [ebx + 0xb3b8]
call fcn.004064b8
call fcn.00402864
jmp 0x4c1cf1
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404038
push eax
mov eax, dword [ebp - 4]
call fcn.00404038
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
jne 0x4c1cf1
lea eax, [ebp - 0x28]
push eax
mov ecx, 3
mov edx, 1
mov eax, dword [ebp - 0xc]
call fcn.0040407c
push 0
lea eax, [ebp - 0x5030]
mov ecx, 0x4c247c
mov edx, dword [ebp - 0x28]
call fcn.00403ec0
mov eax, dword [ebp - 0x5030]
call fcn.00404038
mov edx, eax
mov ecx, 0x4c2434
mov eax, dword [0x4e1268]
mov eax, dword [eax]
call fcn.004504b4
jmp 0x4c237b
lea eax, [ebp - 0x18]
mov ecx, 0x4c24a0
mov edx, dword [ebx + 0x50244]
call fcn.00403ec0
cmp dword [ebp + 8], 0x384
jle 0x4c1f70
cmp dword [ebp + 8], 0x3ca
jne 0x4c1f2f
lea edx, [ebp - 0x5034]
mov eax, dword [ebx + 0x834]
call fcn.00431e40
mov eax, dword [ebp - 0x5034]
mov edx, 0x4c2470
call fcn.00403f84
jne 0x4c1da0
push 0
mov eax, dword [ebp - 0x18]
call fcn.00404038
push eax
lea edx, [ebp - 0x5040]
mov eax, dword [0x4e1268]
mov eax, dword [eax]
call fcn.00450824
mov eax, dword [ebp - 0x5040]
lea edx, [ebp - 0x503c]
call fcn.004095d8
push dword [ebp - 0x503c]
push 0x4c24b8
push 0x4c24c8
lea eax, [ebp - 0x5038]
mov edx, 3
call fcn.00403f34
mov eax, dword [ebp - 0x5038]
call fcn.00404038
push eax
call sub.kernel32.dll_CopyFileA
lea edx, [ebp - 0x5044]
mov eax, dword [ebx + 0x834]
call fcn.00431e40
mov eax, dword [ebp - 0x5044]
mov edx, 0x4c24d8
call fcn.00403f84
jne 0x4c1e22
push 0
mov eax, dword [ebp - 0x18]
call fcn.00404038
push eax
lea edx, [ebp - 0x5050]
mov eax, dword [0x4e1268]
mov eax, dword [eax]
call fcn.00450824
mov eax, dword [ebp - 0x5050]
lea edx, [ebp - 0x504c]
call fcn.004095d8
push dword [ebp - 0x504c]
push 0x4c24e4
push 0x4c24c8
lea eax, [ebp - 0x5048]
mov edx, 3
call fcn.00403f34
mov eax, dword [ebp - 0x5048]
call fcn.00404038
push eax
call sub.kernel32.dll_CopyFileA
lea edx, [ebp - 0x5054]
mov eax, dword [ebx + 0x834]
call fcn.00431e40
mov eax, dword [ebp - 0x5054]
mov edx, 0x4c24f4
call fcn.00403f84
jne 0x4c1ea4
push 0
mov eax, dword [ebp - 0x18]
call fcn.00404038
push eax
lea edx, [ebp - 0x5060]
mov eax, dword [0x4e1268]
mov eax, dword [eax]
call fcn.00450824
mov eax, dword [ebp - 0x5060]
lea edx, [ebp - 0x505c]
call fcn.004095d8
push dword [ebp - 0x505c]
push 0x4c2500
push 0x4c24c8
lea eax, [ebp - 0x5058]
mov edx, 3
call fcn.00403f34
mov eax, dword [ebp - 0x5058]
call fcn.00404038
push eax
call sub.kernel32.dll_CopyFileA
lea edx, [ebp - 0x5064]
mov eax, dword [ebx + 0x834]
call fcn.00431e40
mov eax, dword [ebp - 0x5064]
mov edx, 0x4c2510
call fcn.00403f84
jne 0x4c1fe7
push 0
mov eax, dword [ebp - 0x18]
call fcn.00404038
push eax
lea edx, [ebp - 0x5070]
mov eax, dword [0x4e1268]
mov eax, dword [eax]
call fcn.00450824
mov eax, dword [ebp - 0x5070]
lea edx, [ebp - 0x506c]
call fcn.004095d8
push dword [ebp - 0x506c]
push 0x4c251c
push 0x4c24c8
lea eax, [ebp - 0x5068]
mov edx, 3
call fcn.00403f34
mov eax, dword [ebp - 0x5068]
call fcn.00404038
push eax
call sub.kernel32.dll_CopyFileA
jmp 0x4c1fe7
mov eax, dword [ebx + 0x7f4]
cmp byte [eax + 0x47], 1
jne 0x4c1f5f
mov eax, dword [ebx + 0xb650]
mov edx, eax
shl eax, 3
sub eax, edx
cmp byte [ebx + eax*8 + 0xb812], 0
jne 0x4c1f5f
mov edx, dword [ebx + 0xb650]
mov eax, ebx
call fcn.004b80e0
mov ecx, 2
mov edx, dword [ebp - 0x18]
mov eax, ebx
call fcn.004b9d24
jmp 0x4c1fe7
cmp dword [ebp + 8], 0x364
jne 0x4c1fb1
lea edx, [ebp - 0x5078]
mov eax, dword [0x4e1268]
mov eax, dword [eax]
call fcn.00450824
mov eax, dword [ebp - 0x5078]
lea edx, [ebp - 0x5074]
call fcn.004095d8
mov edx, dword [ebp - 0x5074]
lea eax, [ebp - 0x18]
mov ecx, 0x4c252c
call fcn.00403ec0
jmp 0x4c1fe7
lea edx, [ebp - 0x5080]
mov eax, dword [0x4e1268]
mov eax, dword [eax]
call fcn.00450824
mov eax, dword [ebp - 0x5080]
lea edx, [ebp - 0x507c]
call fcn.004095d8
mov edx, dword [ebp - 0x507c]
lea eax, [ebp - 0x18]
mov ecx, 0x4c2540
call fcn.00403ec0
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0xb3b8]
call fcn.0040634e
mov eax, dword [0x4e1304]
mov byte [eax], 0
mov edx, 1
lea eax, [ebx + 0xb3b8]
call fcn.00406885
call fcn.00402864
lea eax, [ebx + 0xb3b8]
call fcn.004065c0
call fcn.00402864
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xb120]
call fcn.0040634e
mov eax, dword [0x4e1304]
mov byte [eax], 2
mov edx, 1
lea eax, [ebx + 0xb120]
call fcn.00406885
call fcn.00402864
mov edx, dword [ebp + 8]
lea eax, [ebx + 0xb120]
call fcn.004068bc
call fcn.00402864
call fcn.00402a68
mov eax, 0x152
call fcn.00402c88
add eax, 0x159
mov dword [ebp - 0x14], eax
push 0
lea edx, [ebp - 0x14]
mov ecx, 4
lea eax, [ebx + 0xb120]
call fcn.00406454
call fcn.00402864
lea eax, [ebx + 0xb120]
call fcn.004065c0
call fcn.00402864
mov dword [ebp - 0x10], eax
push 0
lea edx, [ebp - 0x10]
mov ecx, 4
lea eax, [ebx + 0xb120]
call fcn.00406454
call fcn.00402864
mov eax, 0x50
call fcn.00402c88
add eax, 0x43
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x14], eax
push 0
lea edx, [ebp - 0x14]
mov ecx, 4
lea eax, [ebx + 0xb120]
call fcn.00406454
call fcn.00402864
push 0
lea edx, [ebp - 0x20]
mov ecx, 4
lea eax, [ebx + 0xb120]
call fcn.00406454
call fcn.00402864
xor eax, eax
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0xb120]
call fcn.004068bc
call fcn.00402864
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x20]
jge 0x4c21bb
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x1c]
cmp eax, 0x5000
jle 0x4c215c
lea eax, [ebp - 0x24]
push eax
lea edx, [ebp - 0x5028]
mov ecx, 0x5000
lea eax, [ebx + 0xb3b8]
call fcn.004063f0
call fcn.00402864
jmp 0x4c2178
lea edx, [ebp - 0x24]
push edx
mov ecx, eax
lea edx, [ebp - 0x5028]
lea eax, [ebx + 0xb3b8]
call fcn.004063f0
call fcn.00402864
mov edx, dword [ebp - 0x24]
test edx, edx
jle 0x4c218e
lea eax, [ebp - 0x5028]
mov cl, byte [ebp - 0x14]
add byte [eax], cl
inc eax
dec edx
jne 0x4c2185
push 0
lea edx, [ebp - 0x5028]
mov ecx, dword [ebp - 0x24]
lea eax, [ebx + 0xb120]
call fcn.00406454
call fcn.00402864
mov eax, dword [ebp - 0x24]
add dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x20]
jl 0x4c212e
cmp dword [ebp + 8], 0x3ac
jne 0x4c21f8
xor eax, eax
mov dword [ebp - 0x14], eax
mov edx, 0x364
lea eax, [ebx + 0xb120]
call fcn.004068bc
call fcn.00402864
push 0
lea edx, [ebp - 0x14]
mov ecx, 4
lea eax, [ebx + 0xb120]
call fcn.00406454
call fcn.00402864
cmp dword [ebp + 8], 0x3ca
jne 0x4c22c6
mov edx, 0x3ac
lea eax, [ebx + 0xb120]
call fcn.004068bc
call fcn.00402864
call fcn.00402a68
mov eax, 0x152
call fcn.00402c88
add eax, 0x159
mov dword [ebp - 0x14], eax
push 0
lea edx, [ebp - 0x14]
mov ecx, 4
lea eax, [ebx + 0xb120]
call fcn.00406454
call fcn.00402864
lea eax, [ebx + 0xb120]
call fcn.004065c0
call fcn.00402864
mov dword [ebp - 0x10], eax
push 0
lea edx, [ebp - 0x10]
mov ecx, 4
lea eax, [ebx + 0xb120]
call fcn.00406454
call fcn.00402864
mov eax, 0x50
call fcn.00402c88
add eax, 0x43
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x14], eax
push 0
lea edx, [ebp - 0x14]
mov ecx, 4
lea eax, [ebx + 0xb120]
call fcn.00406454
call fcn.00402864
xor eax, eax
mov dword [ebp - 0x20], eax
push 0
lea edx, [ebp - 0x20]
mov ecx, 4
lea eax, [ebx + 0xb120]
call fcn.00406454
call fcn.00402864
lea eax, [ebx + 0xb3b8]
call fcn.004064b8
call fcn.00402864
lea eax, [ebx + 0xb120]
call fcn.004064b8
call fcn.00402864
push 0x3a2
mov ecx, 0x3a2
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.004c2574
push 0
mov eax, dword [ebp - 8]
call fcn.00404038
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404038
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
jne 0x4c2362
lea eax, [ebp - 0x28]
push eax
mov ecx, 3
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.0040407c
push 0
lea eax, [ebp - 0x5084]
mov ecx, 0x4c2558
mov edx, dword [ebp - 0x28]
call fcn.00403ec0
mov eax, dword [ebp - 0x5084]
call fcn.00404038
mov edx, eax
mov ecx, 0x4c2434
mov eax, dword [0x4e1268]
mov eax, dword [eax]
call fcn.004504b4
jmp 0x4c237b
cmp dword [ebp + 8], 0x384
jle 0x4c2373
mov eax, dword [ebp - 0xc]
call fcn.00409540
mov eax, dword [ebp - 0x18]
call fcn.00409540
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c242c
lea eax, [ebp - 0x5084]
mov edx, 8
call fcn.00403c18
lea eax, [ebp - 0x5064]
call fcn.00403bf4
lea eax, [ebp - 0x5060]
mov edx, 3
call fcn.00403c18
lea eax, [ebp - 0x5054]
call fcn.00403bf4
lea eax, [ebp - 0x5050]
mov edx, 3
call fcn.00403c18
lea eax, [ebp - 0x5044]
call fcn.00403bf4
lea eax, [ebp - 0x5040]
mov edx, 3
call fcn.00403c18
lea eax, [ebp - 0x5034]
call fcn.00403bf4
lea eax, [ebp - 0x5030]
mov edx, 2
call fcn.00403c18
lea eax, [ebp - 0x28]
call fcn.00403bf4
lea eax, [ebp - 0x18]
call fcn.00403bf4
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00403c18
ret