Function at 0x41ccec
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x291
push 0
push 0
dec ecx
jne 0x41ccf4
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404c34
mov esi, 0x424a84
lea edi, [ebp - 8]
xor eax, eax
push ebp
push 0x41d465
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x423908]
mov byte [eax], 0
push 0xffffffffffffffff
push dword [esi]
push dword [ebp - 4]
push 0x41d47c
lea eax, [ebp - 0x13fc]
mov edx, 3
call fcn.00404b0c
mov eax, dword [ebp - 0x13fc]
call fcn.00404c44
push eax
lea edx, [ebp - 0x1400]
xor eax, eax
call fcn.004029a0
mov eax, dword [ebp - 0x1400]
call fcn.00404c44
push eax
call sub.kernel32.dll_CopyFileA
call fcn.00402a00
mov eax, 0xe
call fcn.00403008
mov ebx, eax
test ebx, ebx
je 0x41cd87
cmp ebx, 1
jne 0x41cdd9
push dword [esi]
push dword [ebp - 4]
push 0x41d47c
lea eax, [ebp - 0x1404]
mov edx, 3
call fcn.00404b0c
mov eax, dword [ebp - 0x1404]
call fcn.00404c44
push eax
lea eax, [ebp - 0x1408]
call fcn.0041ca9c
lea eax, [ebp - 0x1408]
mov edx, 0x41d488
call fcn.00404a54
mov eax, dword [ebp - 0x1408]
call fcn.00404c44
pop edx
call fcn.0041cb08
cmp ebx, 2
jne 0x41ce30
push dword [esi]
push dword [ebp - 4]
push 0x41d47c
lea eax, [ebp - 0x140c]
mov edx, 3
call fcn.00404b0c
mov eax, dword [ebp - 0x140c]
call fcn.00404c44
push eax
lea eax, [ebp - 0x1410]
call fcn.0041ca9c
lea eax, [ebp - 0x1410]
mov edx, 0x41d4a8
call fcn.00404a54
mov eax, dword [ebp - 0x1410]
call fcn.00404c44
pop edx
call fcn.0041cb08
cmp ebx, 3
jne 0x41ce87
push dword [esi]
push dword [ebp - 4]
push 0x41d47c
lea eax, [ebp - 0x1414]
mov edx, 3
call fcn.00404b0c
mov eax, dword [ebp - 0x1414]
call fcn.00404c44
push eax
lea eax, [ebp - 0x1418]
call fcn.0041ca9c
lea eax, [ebp - 0x1418]
mov edx, 0x41d4c8
call fcn.00404a54
mov eax, dword [ebp - 0x1418]
call fcn.00404c44
pop edx
call fcn.0041cb08
cmp ebx, 4
jne 0x41cede
push dword [esi]
push dword [ebp - 4]
push 0x41d47c
lea eax, [ebp - 0x141c]
mov edx, 3
call fcn.00404b0c
mov eax, dword [ebp - 0x141c]
call fcn.00404c44
push eax
lea eax, [ebp - 0x1420]
call fcn.0041ca9c
lea eax, [ebp - 0x1420]
mov edx, 0x41d4c8
call fcn.00404a54
mov eax, dword [ebp - 0x1420]
call fcn.00404c44
pop edx
call fcn.0041cb08
cmp ebx, 5
jne 0x41cf35
push dword [esi]
push dword [ebp - 4]
push 0x41d47c
lea eax, [ebp - 0x1424]
mov edx, 3
call fcn.00404b0c
mov eax, dword [ebp - 0x1424]
call fcn.00404c44
push eax
lea eax, [ebp - 0x1428]
call fcn.0041ca9c
lea eax, [ebp - 0x1428]
mov edx, 0x41d4e8
call fcn.00404a54
mov eax, dword [ebp - 0x1428]
call fcn.00404c44
pop edx
call fcn.0041cb08
cmp ebx, 6
jne 0x41cf8c
push dword [esi]
push dword [ebp - 4]
push 0x41d47c
lea eax, [ebp - 0x142c]
mov edx, 3
call fcn.00404b0c
mov eax, dword [ebp - 0x142c]
call fcn.00404c44
push eax
lea eax, [ebp - 0x1430]
call fcn.0041ca9c
lea eax, [ebp - 0x1430]
mov edx, 0x41d508
call fcn.00404a54
mov eax, dword [ebp - 0x1430]
call fcn.00404c44
pop edx
call fcn.0041cb08
cmp ebx, 7
jne 0x41cfe3
push dword [esi]
push dword [ebp - 4]
push 0x41d47c
lea eax, [ebp - 0x1434]
mov edx, 3
call fcn.00404b0c
mov eax, dword [ebp - 0x1434]
call fcn.00404c44
push eax
lea eax, [ebp - 0x1438]
call fcn.0041ca9c
lea eax, [ebp - 0x1438]
mov edx, 0x41d528
call fcn.00404a54
mov eax, dword [ebp - 0x1438]
call fcn.00404c44
pop edx
call fcn.0041cb08
cmp ebx, 8
jne 0x41d03a
push dword [esi]
push dword [ebp - 4]
push 0x41d47c
lea eax, [ebp - 0x143c]
mov edx, 3
call fcn.00404b0c
mov eax, dword [ebp - 0x143c]
call fcn.00404c44
push eax
lea eax, [ebp - 0x1440]
call fcn.0041ca9c
lea eax, [ebp - 0x1440]
mov edx, 0x41d548
call fcn.00404a54
mov eax, dword [ebp - 0x1440]
call fcn.00404c44
pop edx
call fcn.0041cb08
cmp ebx, 9
jne 0x41d091
push dword [esi]
push dword [ebp - 4]
push 0x41d47c
lea eax, [ebp - 0x1444]
mov edx, 3
call fcn.00404b0c
mov eax, dword [ebp - 0x1444]
call fcn.00404c44
push eax
lea eax, [ebp - 0x1448]
call fcn.0041ca9c
lea eax, [ebp - 0x1448]
mov edx, 0x41d568
call fcn.00404a54
mov eax, dword [ebp - 0x1448]
call fcn.00404c44
pop edx
call fcn.0041cb08
cmp ebx, 0xa
jne 0x41d0e8
push dword [esi]
push dword [ebp - 4]
push 0x41d47c
lea eax, [ebp - 0x144c]
mov edx, 3
call fcn.00404b0c
mov eax, dword [ebp - 0x144c]
call fcn.00404c44
push eax
lea eax, [ebp - 0x1450]
call fcn.0041ca9c
lea eax, [ebp - 0x1450]
mov edx, 0x41d588
call fcn.00404a54
mov eax, dword [ebp - 0x1450]
call fcn.00404c44
pop edx
call fcn.0041cb08
cmp ebx, 0xb
jne 0x41d13f
push dword [esi]
push dword [ebp - 4]
push 0x41d47c
lea eax, [ebp - 0x1454]
mov edx, 3
call fcn.00404b0c
mov eax, dword [ebp - 0x1454]
call fcn.00404c44
push eax
lea eax, [ebp - 0x1458]
call fcn.0041ca9c
lea eax, [ebp - 0x1458]
mov edx, 0x41d5a8
call fcn.00404a54
mov eax, dword [ebp - 0x1458]
call fcn.00404c44
pop edx
call fcn.0041cb08
cmp ebx, 0xc
jne 0x41d196
push dword [esi]
push dword [ebp - 4]
push 0x41d47c
lea eax, [ebp - 0x145c]
mov edx, 3
call fcn.00404b0c
mov eax, dword [ebp - 0x145c]
call fcn.00404c44
push eax
lea eax, [ebp - 0x1460]
call fcn.0041ca9c
lea eax, [ebp - 0x1460]
mov edx, 0x41d5c8
call fcn.00404a54
mov eax, dword [ebp - 0x1460]
call fcn.00404c44
pop edx
call fcn.0041cb08
cmp ebx, 0xd
jne 0x41d1ed
push dword [esi]
push dword [ebp - 4]
push 0x41d47c
lea eax, [ebp - 0x1464]
mov edx, 3
call fcn.00404b0c
mov eax, dword [ebp - 0x1464]
call fcn.00404c44
push eax
lea eax, [ebp - 0x1468]
call fcn.0041ca9c
lea eax, [ebp - 0x1468]
mov edx, 0x41d5e8
call fcn.00404a54
mov eax, dword [ebp - 0x1468]
call fcn.00404c44
pop edx
call fcn.0041cb08
cmp ebx, 0xe
jne 0x41d244
push dword [esi]
push dword [ebp - 4]
push 0x41d47c
lea eax, [ebp - 0x146c]
mov edx, 3
call fcn.00404b0c
mov eax, dword [ebp - 0x146c]
call fcn.00404c44
push eax
lea eax, [ebp - 0x1470]
call fcn.0041ca9c
lea eax, [ebp - 0x1470]
mov edx, 0x41d608
call fcn.00404a54
mov eax, dword [ebp - 0x1470]
call fcn.00404c44
pop edx
call fcn.0041cb08
push dword [esi]
push dword [ebp - 4]
push 0x41d47c
lea eax, [ebp - 0x1474]
mov edx, 3
call fcn.00404b0c
mov edx, dword [ebp - 0x1474]
lea eax, [ebp - 0x160]
call fcn.00402d44
mov edx, 1
lea eax, [ebp - 0x160]
call fcn.004032f0
lea eax, [ebp - 0x1478]
call fcn.0041ca9c
lea eax, [ebp - 0x1478]
mov edx, 0x41d628
call fcn.00404a54
mov edx, dword [ebp - 0x1478]
lea eax, [ebp - 0x3f8]
call fcn.00402d44
mov edx, 1
lea eax, [ebp - 0x3f8]
call fcn.004032f0
lea eax, [ebp - 0x147c]
mov ecx, dword [ebp - 4]
mov edx, dword [esi]
call fcn.00404a98
mov edx, dword [ebp - 0x147c]
lea eax, [ebp - 0x2ac]
call fcn.00402d44
mov edx, 1
lea eax, [ebp - 0x2ac]
call fcn.0040330c
push edi
lea edx, [ebp - 0xbf8]
mov ecx, 0x800
lea eax, [ebp - 0x160]
call fcn.00402ea8
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 0xbf8]
mov ecx, dword [edi]
lea eax, [ebp - 0x2ac]
call fcn.00402ec8
cmp dword [edi], 0
je 0x41d326
mov eax, dword [ebp - 0xc]
cmp eax, dword [edi]
je 0x41d2ec
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0x13f8]
mov ecx, 0x800
lea eax, [ebp - 0x3f8]
call fcn.00402ea8
lea eax, [ebp - 0x14]
push eax
lea edx, [ebp - 0x13f8]
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x2ac]
call fcn.00402ec8
cmp dword [ebp - 0x10], 0
je 0x41d366
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x41d326
call fcn.00402a00
mov eax, 0x186a0
call fcn.00403008
cmp eax, 0x3e8
jl 0x41d36b
lea edx, [eax + 0x27a00]
lea eax, [ebp - 0x2ac]
call fcn.00403318
lea eax, [ebp - 0x2ac]
call fcn.0040334c
lea eax, [ebp - 0x160]
call fcn.00402ee8
lea eax, [ebp - 0x3f8]
call fcn.00402ee8
lea eax, [ebp - 0x2ac]
call fcn.00402ee8
push dword [esi]
push dword [ebp - 4]
push 0x41d47c
lea eax, [ebp - 0x1480]
mov edx, 3
call fcn.00404b0c
mov eax, dword [ebp - 0x1480]
call fcn.004080e0
mov eax, dword [ebp - 4]
mov edx, 0x41d640
call fcn.00404b90
je 0x41d40b
mov eax, dword [ebp - 4]
mov edx, 0x41d658
call fcn.00404b90
je 0x41d40b
mov eax, dword [ebp - 4]
mov edx, 0x41d670
call fcn.00404b90
jne 0x41d43f
lea eax, [ebp - 0x1488]
call fcn.0041ca9c
push dword [ebp - 0x1488]
push dword [ebp - 4]
push 0x41d47c
lea eax, [ebp - 0x1484]
mov edx, 3
call fcn.00404b0c
mov eax, dword [ebp - 0x1484]
call fcn.004080e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41d46c
lea eax, [ebp - 0x1488]
mov edx, 0x24
call fcn.004047b8
lea eax, [ebp - 4]
call fcn.00404794
ret