Function at 0x408250
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x41
push 0
push 0
dec ecx
jne 0x408259
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.00404654
mov eax, dword [ebp - 8]
call fcn.00404654
mov eax, dword [ebp - 0xc]
call fcn.00404654
lea eax, [ebp - 0x168]
mov edx, dword [0x407b2c]
call fcn.004048cc
xor eax, eax
push ebp
push 0x408907
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404464
mov edx, dword [ebp - 4]
cmp byte [edx + eax - 1], 0x5c
je 0x4082c3
lea eax, [ebp - 4]
mov edx, 0x40891c
call fcn.0040446c
lea eax, [ebp - 0x16c]
mov ecx, 0x408928
mov edx, dword [ebp - 4]
call fcn.004044b0
mov eax, dword [ebp - 0x16c]
lea ecx, [ebp - 0x168]
mov edx, 0x10
call fcn.00408a5c
test eax, eax
jne 0x4088c0
mov eax, dword [ebp - 0x160]
and eax, 0x10
cmp eax, 0x10
jne 0x4084b5
mov eax, dword [ebp - 0x15c]
cmp byte [eax], 0x2e
je 0x4084b5
lea eax, [ebp - 0x174]
mov ecx, dword [ebp - 0x15c]
mov edx, dword [ebp - 4]
call fcn.004044b0
mov eax, dword [ebp - 0x174]
lea edx, [ebp - 0x170]
call fcn.004096a8
mov eax, dword [ebp - 0x170]
push eax
lea edx, [ebp - 0x17c]
xor eax, eax
call fcn.004094fc
mov eax, dword [ebp - 0x17c]
lea edx, [ebp - 0x178]
call fcn.004096a8
mov edx, dword [ebp - 0x178]
pop eax
call fcn.004045b0
jne 0x408481
lea eax, [ebp - 0x184]
mov ecx, dword [ebp - 0x15c]
mov edx, dword [ebp - 4]
call fcn.004044b0
mov eax, dword [ebp - 0x184]
lea edx, [ebp - 0x180]
call fcn.004096a8
mov eax, dword [ebp - 0x180]
push eax
lea edx, [ebp - 0x18c]
xor eax, eax
call fcn.00409454
mov eax, dword [ebp - 0x18c]
lea edx, [ebp - 0x188]
call fcn.004096a8
mov edx, dword [ebp - 0x188]
pop eax
call fcn.004045b0
jne 0x408481
lea eax, [ebp - 0x194]
mov ecx, dword [ebp - 0x15c]
mov edx, dword [ebp - 4]
call fcn.004044b0
mov eax, dword [ebp - 0x194]
lea edx, [ebp - 0x190]
call fcn.004096a8
mov eax, dword [ebp - 0x190]
push eax
lea edx, [ebp - 0x19c]
xor eax, eax
call fcn.004093ac
mov eax, dword [ebp - 0x19c]
lea edx, [ebp - 0x198]
call fcn.004096a8
mov edx, dword [ebp - 0x198]
pop eax
call fcn.004045b0
jne 0x408481
lea eax, [ebp - 0x1a4]
mov ecx, dword [ebp - 0x15c]
mov edx, dword [ebp - 4]
call fcn.004044b0
mov eax, dword [ebp - 0x1a4]
lea edx, [ebp - 0x1a0]
call fcn.004096a8
mov eax, dword [ebp - 0x1a0]
push eax
lea edx, [ebp - 0x1ac]
xor eax, eax
call fcn.00409304
mov eax, dword [ebp - 0x1ac]
lea edx, [ebp - 0x1a8]
call fcn.004096a8
mov edx, dword [ebp - 0x1a8]
pop eax
call fcn.004045b0
je 0x4088ad
push dword [ebp - 4]
push dword [ebp - 0x15c]
push 0x40891c
lea eax, [ebp - 0x1b0]
mov edx, 3
call fcn.00404524
mov eax, dword [ebp - 0x1b0]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00408250
jmp 0x4088ad
lea edx, [ebp - 0x1b4]
mov eax, dword [ebp - 0x15c]
call fcn.00409668
mov eax, dword [ebp - 0x1b4]
lea edx, [ebp - 0x10]
call fcn.004096a8
lea edx, [ebp - 0x1b8]
mov eax, dword [ebp - 0x15c]
call fcn.004096a8
mov eax, dword [ebp - 0x1b8]
mov edx, 0x408934
call fcn.004045b0
jne 0x4084ff
mov eax, dword [ebp - 4]
call fcn.00407f0c
mov eax, dword [ebp - 0x10]
mov edx, 0x40894c
call fcn.004045b0
jne 0x40852d
lea eax, [ebp - 0x1bc]
mov ecx, dword [ebp - 0x15c]
mov edx, dword [ebp - 4]
call fcn.004044b0
mov eax, dword [ebp - 0x1bc]
call fcn.0040767c
mov eax, dword [ebp - 0x10]
mov edx, 0x408958
call fcn.004045b0
jne 0x40855b
lea eax, [ebp - 0x1c0]
mov ecx, dword [ebp - 0x15c]
mov edx, dword [ebp - 4]
call fcn.004044b0
mov eax, dword [ebp - 0x1c0]
call fcn.0040767c
mov eax, dword [ebp - 0x10]
mov edx, 0x408964
call fcn.004045b0
jne 0x408589
lea eax, [ebp - 0x1c4]
mov ecx, dword [ebp - 0x15c]
mov edx, dword [ebp - 4]
call fcn.004044b0
mov eax, dword [ebp - 0x1c4]
call fcn.0040767c
mov eax, dword [ebp - 0x10]
mov edx, 0x408970
call fcn.004045b0
jne 0x4085b7
lea eax, [ebp - 0x1c8]
mov ecx, dword [ebp - 0x15c]
mov edx, dword [ebp - 4]
call fcn.004044b0
mov eax, dword [ebp - 0x1c8]
call fcn.0040767c
mov eax, dword [ebp - 0x10]
mov edx, 0x40897c
call fcn.004045b0
jne 0x4085e5
lea eax, [ebp - 0x1cc]
mov ecx, dword [ebp - 0x15c]
mov edx, dword [ebp - 4]
call fcn.004044b0
mov eax, dword [ebp - 0x1cc]
call fcn.0040767c
mov eax, dword [ebp - 0x10]
mov edx, 0x408988
call fcn.004045b0
jne 0x408613
lea eax, [ebp - 0x1d0]
mov ecx, dword [ebp - 0x15c]
mov edx, dword [ebp - 4]
call fcn.004044b0
mov eax, dword [ebp - 0x1d0]
call fcn.0040767c
lea edx, [ebp - 0x1d4]
mov eax, dword [ebp - 4]
call fcn.004096a8
mov edx, dword [ebp - 0x1d4]
mov eax, 0x408994
call fcn.004047a8
test eax, eax
jle 0x4086f1
lea eax, [ebp - 0x1d8]
mov ecx, 0x4089a4
mov edx, dword [ebp - 4]
call fcn.004044b0
mov eax, dword [ebp - 0x1d8]
mov edx, dword [0x40b194]
mov edx, dword [edx]
call fcn.004047a8
test eax, eax
jne 0x4086f1
mov eax, dword [0x40b194]
push dword [eax]
push dword [ebp - 4]
push 0x4089a4
mov eax, dword [0x40b194]
mov edx, 3
call fcn.00404524
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.00407dcc
push dword [ebp - 0x1e0]
push 0x4089b0
lea eax, [ebp - 0x1dc]
mov edx, 3
call fcn.00404524
mov eax, dword [ebp - 0x1dc]
call fcn.00404664
push eax
lea edx, [ebp - 0x1e4]
xor eax, eax
call fcn.00402b68
mov eax, dword [ebp - 0x1e4]
call fcn.00404664
push eax
call sub.kernel32.dll_CopyFileA
dec ebx
jne 0x408699
lea edx, [ebp - 0x1e8]
mov eax, dword [ebp - 4]
call fcn.004096a8
mov edx, dword [ebp - 0x1e8]
mov eax, 0x4089c0
call fcn.004047a8
test eax, eax
jle 0x4087cf
lea eax, [ebp - 0x1ec]
mov ecx, 0x4089a4
mov edx, dword [ebp - 4]
call fcn.004044b0
mov eax, dword [ebp - 0x1ec]
mov edx, dword [0x40b194]
mov edx, dword [edx]
call fcn.004047a8
test eax, eax
jne 0x4087cf
mov eax, dword [0x40b194]
push dword [eax]
push dword [ebp - 4]
push 0x4089a4
mov eax, dword [0x40b194]
mov edx, 3
call fcn.00404524
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.00407dcc
push dword [ebp - 0x1f4]
push 0x4089b0
lea eax, [ebp - 0x1f0]
mov edx, 3
call fcn.00404524
mov eax, dword [ebp - 0x1f0]
call fcn.00404664
push eax
lea edx, [ebp - 0x1f8]
xor eax, eax
call fcn.00402b68
mov eax, dword [ebp - 0x1f8]
call fcn.00404664
push eax
call sub.kernel32.dll_CopyFileA
dec ebx
jne 0x408777
lea edx, [ebp - 0x1fc]
mov eax, dword [ebp - 4]
call fcn.004096a8
mov edx, dword [ebp - 0x1fc]
mov eax, 0x4089d0
call fcn.004047a8
test eax, eax
jle 0x4088ad
lea eax, [ebp - 0x200]
mov ecx, 0x4089a4
mov edx, dword [ebp - 4]
call fcn.004044b0
mov eax, dword [ebp - 0x200]
mov edx, dword [0x40b194]
mov edx, dword [edx]
call fcn.004047a8
test eax, eax
jne 0x4088ad
mov eax, dword [0x40b194]
push dword [eax]
push dword [ebp - 4]
push 0x4089a4
mov eax, dword [0x40b194]
mov edx, 3
call fcn.00404524
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.00407dcc
push dword [ebp - 0x208]
push 0x4089b0
lea eax, [ebp - 0x204]
mov edx, 3
call fcn.00404524
mov eax, dword [ebp - 0x204]
call fcn.00404664
push eax
lea edx, [ebp - 0x20c]
xor eax, eax
call fcn.00402b68
mov eax, dword [ebp - 0x20c]
call fcn.00404664
push eax
call sub.kernel32.dll_CopyFileA
dec ebx
jne 0x408855
lea eax, [ebp - 0x168]
call fcn.00408aac
test eax, eax
je 0x4082f4
lea eax, [ebp - 0x168]
call fcn.00408a40
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40890e
lea eax, [ebp - 0x20c]
mov edx, 0x29
call fcn.00404210
lea eax, [ebp - 0x168]
mov edx, dword [0x407b2c]
call fcn.00404990
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00404210
ret