Function at 0x407e60
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x41
push 0
push 0
dec ecx
jne 0x407e69
xchg dword [ebp - 4], ecx
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404234
mov eax, dword [ebp - 8]
call fcn.00404234
mov eax, dword [ebp - 0xc]
call fcn.00404234
lea eax, [ebp - 0x168]
mov edx, dword [0x40773c]
call fcn.00404498
xor eax, eax
push ebp
push 0x408517
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404044
mov edx, dword [ebp - 4]
cmp byte [edx + eax - 1], 0x5c
je 0x407ed3
lea eax, [ebp - 4]
mov edx, 0x40852c
call fcn.0040404c
lea eax, [ebp - 0x16c]
mov ecx, 0x408538
mov edx, dword [ebp - 4]
call fcn.00404090
mov eax, dword [ebp - 0x16c]
lea ecx, [ebp - 0x168]
mov edx, 0x10
call fcn.0040866c
test eax, eax
jne 0x4084d0
mov eax, dword [ebp - 0x160]
and eax, 0x10
cmp eax, 0x10
jne 0x4080c5
mov eax, dword [ebp - 0x15c]
cmp byte [eax], 0x2e
je 0x4080c5
lea eax, [ebp - 0x174]
mov ecx, dword [ebp - 0x15c]
mov edx, dword [ebp - 4]
call fcn.00404090
mov eax, dword [ebp - 0x174]
lea edx, [ebp - 0x170]
call fcn.004092b8
mov eax, dword [ebp - 0x170]
push eax
lea edx, [ebp - 0x17c]
xor eax, eax
call fcn.0040910c
mov eax, dword [ebp - 0x17c]
lea edx, [ebp - 0x178]
call fcn.004092b8
mov edx, dword [ebp - 0x178]
pop eax
call fcn.00404190
jne 0x408091
lea eax, [ebp - 0x184]
mov ecx, dword [ebp - 0x15c]
mov edx, dword [ebp - 4]
call fcn.00404090
mov eax, dword [ebp - 0x184]
lea edx, [ebp - 0x180]
call fcn.004092b8
mov eax, dword [ebp - 0x180]
push eax
lea edx, [ebp - 0x18c]
xor eax, eax
call fcn.00409064
mov eax, dword [ebp - 0x18c]
lea edx, [ebp - 0x188]
call fcn.004092b8
mov edx, dword [ebp - 0x188]
pop eax
call fcn.00404190
jne 0x408091
lea eax, [ebp - 0x194]
mov ecx, dword [ebp - 0x15c]
mov edx, dword [ebp - 4]
call fcn.00404090
mov eax, dword [ebp - 0x194]
lea edx, [ebp - 0x190]
call fcn.004092b8
mov eax, dword [ebp - 0x190]
push eax
lea edx, [ebp - 0x19c]
xor eax, eax
call fcn.00408fbc
mov eax, dword [ebp - 0x19c]
lea edx, [ebp - 0x198]
call fcn.004092b8
mov edx, dword [ebp - 0x198]
pop eax
call fcn.00404190
jne 0x408091
lea eax, [ebp - 0x1a4]
mov ecx, dword [ebp - 0x15c]
mov edx, dword [ebp - 4]
call fcn.00404090
mov eax, dword [ebp - 0x1a4]
lea edx, [ebp - 0x1a0]
call fcn.004092b8
mov eax, dword [ebp - 0x1a0]
push eax
lea edx, [ebp - 0x1ac]
xor eax, eax
call fcn.00408f14
mov eax, dword [ebp - 0x1ac]
lea edx, [ebp - 0x1a8]
call fcn.004092b8
mov edx, dword [ebp - 0x1a8]
pop eax
call fcn.00404190
je 0x4084bd
push dword [ebp - 4]
push dword [ebp - 0x15c]
push 0x40852c
lea eax, [ebp - 0x1b0]
mov edx, 3
call fcn.00404104
mov eax, dword [ebp - 0x1b0]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00407e60
jmp 0x4084bd
lea edx, [ebp - 0x1b4]
mov eax, dword [ebp - 0x15c]
call fcn.00409278
mov eax, dword [ebp - 0x1b4]
lea edx, [ebp - 0x10]
call fcn.004092b8
lea edx, [ebp - 0x1b8]
mov eax, dword [ebp - 0x15c]
call fcn.004092b8
mov eax, dword [ebp - 0x1b8]
mov edx, 0x408544
call fcn.00404190
jne 0x40810f
mov eax, dword [ebp - 4]
call fcn.00407b1c
mov eax, dword [ebp - 0x10]
mov edx, 0x40855c
call fcn.00404190
jne 0x40813d
lea eax, [ebp - 0x1bc]
mov ecx, dword [ebp - 0x15c]
mov edx, dword [ebp - 4]
call fcn.00404090
mov eax, dword [ebp - 0x1bc]
call fcn.00407294
mov eax, dword [ebp - 0x10]
mov edx, 0x408568
call fcn.00404190
jne 0x40816b
lea eax, [ebp - 0x1c0]
mov ecx, dword [ebp - 0x15c]
mov edx, dword [ebp - 4]
call fcn.00404090
mov eax, dword [ebp - 0x1c0]
call fcn.00407294
mov eax, dword [ebp - 0x10]
mov edx, 0x408574
call fcn.00404190
jne 0x408199
lea eax, [ebp - 0x1c4]
mov ecx, dword [ebp - 0x15c]
mov edx, dword [ebp - 4]
call fcn.00404090
mov eax, dword [ebp - 0x1c4]
call fcn.00407294
mov eax, dword [ebp - 0x10]
mov edx, 0x408580
call fcn.00404190
jne 0x4081c7
lea eax, [ebp - 0x1c8]
mov ecx, dword [ebp - 0x15c]
mov edx, dword [ebp - 4]
call fcn.00404090
mov eax, dword [ebp - 0x1c8]
call fcn.00407294
mov eax, dword [ebp - 0x10]
mov edx, 0x40858c
call fcn.00404190
jne 0x4081f5
lea eax, [ebp - 0x1cc]
mov ecx, dword [ebp - 0x15c]
mov edx, dword [ebp - 4]
call fcn.00404090
mov eax, dword [ebp - 0x1cc]
call fcn.00407294
mov eax, dword [ebp - 0x10]
mov edx, 0x408598
call fcn.00404190
jne 0x408223
lea eax, [ebp - 0x1d0]
mov ecx, dword [ebp - 0x15c]
mov edx, dword [ebp - 4]
call fcn.00404090
mov eax, dword [ebp - 0x1d0]
call fcn.00407294
lea edx, [ebp - 0x1d4]
mov eax, dword [ebp - 4]
call fcn.004092b8
mov edx, dword [ebp - 0x1d4]
mov eax, 0x4085a4
call fcn.00404388
test eax, eax
jle 0x408301
lea eax, [ebp - 0x1d8]
mov ecx, 0x4085b4
mov edx, dword [ebp - 4]
call fcn.00404090
mov eax, dword [ebp - 0x1d8]
mov edx, dword [0x40b194]
mov edx, dword [edx]
call fcn.00404388
test eax, eax
jne 0x408301
mov eax, dword [0x40b194]
push dword [eax]
push dword [ebp - 4]
push 0x4085b4
mov eax, dword [0x40b194]
mov edx, 3
call fcn.00404104
mov eax, dword [0x40b16c]
add dword [eax], 0xa
mov eax, dword [0x40b198]
inc dword [eax]
mov ebx, 0xa
push 0
push dword [ebp - 4]
lea eax, [ebp - 0x1e0]
call fcn.004079dc
push dword [ebp - 0x1e0]
push 0x4085c0
lea eax, [ebp - 0x1dc]
mov edx, 3
call fcn.00404104
mov eax, dword [ebp - 0x1dc]
call fcn.00404244
push eax
lea edx, [ebp - 0x1e4]
xor eax, eax
call fcn.00402774
mov eax, dword [ebp - 0x1e4]
call fcn.00404244
push eax
call sub.KERNEL32.DLL_CopyFileA
dec ebx
jne 0x4082a9
lea edx, [ebp - 0x1e8]
mov eax, dword [ebp - 4]
call fcn.004092b8
mov edx, dword [ebp - 0x1e8]
mov eax, 0x4085d0
call fcn.00404388
test eax, eax
jle 0x4083df
lea eax, [ebp - 0x1ec]
mov ecx, 0x4085b4
mov edx, dword [ebp - 4]
call fcn.00404090
mov eax, dword [ebp - 0x1ec]
mov edx, dword [0x40b194]
mov edx, dword [edx]
call fcn.00404388
test eax, eax
jne 0x4083df
mov eax, dword [0x40b194]
push dword [eax]
push dword [ebp - 4]
push 0x4085b4
mov eax, dword [0x40b194]
mov edx, 3
call fcn.00404104
mov eax, dword [0x40b16c]
add dword [eax], 0xa
mov eax, dword [0x40b198]
inc dword [eax]
mov ebx, 0xa
push 0
push dword [ebp - 4]
lea eax, [ebp - 0x1f4]
call fcn.004079dc
push dword [ebp - 0x1f4]
push 0x4085c0
lea eax, [ebp - 0x1f0]
mov edx, 3
call fcn.00404104
mov eax, dword [ebp - 0x1f0]
call fcn.00404244
push eax
lea edx, [ebp - 0x1f8]
xor eax, eax
call fcn.00402774
mov eax, dword [ebp - 0x1f8]
call fcn.00404244
push eax
call sub.KERNEL32.DLL_CopyFileA
dec ebx
jne 0x408387
lea edx, [ebp - 0x1fc]
mov eax, dword [ebp - 4]
call fcn.004092b8
mov edx, dword [ebp - 0x1fc]
mov eax, 0x4085e0
call fcn.00404388
test eax, eax
jle 0x4084bd
lea eax, [ebp - 0x200]
mov ecx, 0x4085b4
mov edx, dword [ebp - 4]
call fcn.00404090
mov eax, dword [ebp - 0x200]
mov edx, dword [0x40b194]
mov edx, dword [edx]
call fcn.00404388
test eax, eax
jne 0x4084bd
mov eax, dword [0x40b194]
push dword [eax]
push dword [ebp - 4]
push 0x4085b4
mov eax, dword [0x40b194]
mov edx, 3
call fcn.00404104
mov eax, dword [0x40b16c]
add dword [eax], 0xa
mov eax, dword [0x40b198]
inc dword [eax]
mov ebx, 0xa
push 0
push dword [ebp - 4]
lea eax, [ebp - 0x208]
call fcn.004079dc
push dword [ebp - 0x208]
push 0x4085c0
lea eax, [ebp - 0x204]
mov edx, 3
call fcn.00404104
mov eax, dword [ebp - 0x204]
call fcn.00404244
push eax
lea edx, [ebp - 0x20c]
xor eax, eax
call fcn.00402774
mov eax, dword [ebp - 0x20c]
call fcn.00404244
push eax
call sub.KERNEL32.DLL_CopyFileA
dec ebx
jne 0x408465
lea eax, [ebp - 0x168]
call fcn.004086bc
test eax, eax
je 0x407f04
lea eax, [ebp - 0x168]
call fcn.00408650
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40851e
lea eax, [ebp - 0x20c]
mov edx, 0x29
call fcn.00403df0
lea eax, [ebp - 0x168]
mov edx, dword [0x40773c]
call fcn.0040455c
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00403df0
ret