Function at 0x405a78
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x41
push 0
push 0
dec ecx
jne 0x405a81
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 [0x405354]
call fcn.00404498
xor eax, eax
push ebp
push 0x40612f
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 0x405aeb
lea eax, [ebp - 4]
mov edx, 0x406144
call fcn.0040404c
lea eax, [ebp - 0x16c]
mov ecx, 0x406150
mov edx, dword [ebp - 4]
call fcn.00404090
mov eax, dword [ebp - 0x16c]
lea ecx, [ebp - 0x168]
mov edx, 0x10
call fcn.00406284
test eax, eax
jne 0x4060e8
mov eax, dword [ebp - 0x160]
and eax, 0x10
cmp eax, 0x10
jne 0x405cdd
mov eax, dword [ebp - 0x15c]
cmp byte [eax], 0x2e
je 0x405cdd
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.00406ed0
mov eax, dword [ebp - 0x170]
push eax
lea edx, [ebp - 0x17c]
xor eax, eax
call fcn.00406d24
mov eax, dword [ebp - 0x17c]
lea edx, [ebp - 0x178]
call fcn.00406ed0
mov edx, dword [ebp - 0x178]
pop eax
call fcn.00404190
jne 0x405ca9
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.00406ed0
mov eax, dword [ebp - 0x180]
push eax
lea edx, [ebp - 0x18c]
xor eax, eax
call fcn.00406c7c
mov eax, dword [ebp - 0x18c]
lea edx, [ebp - 0x188]
call fcn.00406ed0
mov edx, dword [ebp - 0x188]
pop eax
call fcn.00404190
jne 0x405ca9
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.00406ed0
mov eax, dword [ebp - 0x190]
push eax
lea edx, [ebp - 0x19c]
xor eax, eax
call fcn.00406bd4
mov eax, dword [ebp - 0x19c]
lea edx, [ebp - 0x198]
call fcn.00406ed0
mov edx, dword [ebp - 0x198]
pop eax
call fcn.00404190
jne 0x405ca9
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.00406ed0
mov eax, dword [ebp - 0x1a0]
push eax
lea edx, [ebp - 0x1ac]
xor eax, eax
call fcn.00406b2c
mov eax, dword [ebp - 0x1ac]
lea edx, [ebp - 0x1a8]
call fcn.00406ed0
mov edx, dword [ebp - 0x1a8]
pop eax
call fcn.00404190
je 0x4060d5
push dword [ebp - 4]
push dword [ebp - 0x15c]
push 0x406144
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.00405a78
jmp 0x4060d5
lea edx, [ebp - 0x1b4]
mov eax, dword [ebp - 0x15c]
call fcn.00406e90
mov eax, dword [ebp - 0x1b4]
lea edx, [ebp - 0x10]
call fcn.00406ed0
lea edx, [ebp - 0x1b8]
mov eax, dword [ebp - 0x15c]
call fcn.00406ed0
mov eax, dword [ebp - 0x1b8]
mov edx, 0x40615c
call fcn.00404190
jne 0x405d27
mov eax, dword [ebp - 4]
call fcn.00405734
mov eax, dword [ebp - 0x10]
mov edx, 0x406174
call fcn.00404190
jne 0x405d55
lea eax, [ebp - 0x1bc]
mov ecx, dword [ebp - 0x15c]
mov edx, dword [ebp - 4]
call fcn.00404090
mov eax, dword [ebp - 0x1bc]
call fcn.00404ea4
mov eax, dword [ebp - 0x10]
mov edx, 0x406180
call fcn.00404190
jne 0x405d83
lea eax, [ebp - 0x1c0]
mov ecx, dword [ebp - 0x15c]
mov edx, dword [ebp - 4]
call fcn.00404090
mov eax, dword [ebp - 0x1c0]
call fcn.00404ea4
mov eax, dword [ebp - 0x10]
mov edx, 0x40618c
call fcn.00404190
jne 0x405db1
lea eax, [ebp - 0x1c4]
mov ecx, dword [ebp - 0x15c]
mov edx, dword [ebp - 4]
call fcn.00404090
mov eax, dword [ebp - 0x1c4]
call fcn.00404ea4
mov eax, dword [ebp - 0x10]
mov edx, 0x406198
call fcn.00404190
jne 0x405ddf
lea eax, [ebp - 0x1c8]
mov ecx, dword [ebp - 0x15c]
mov edx, dword [ebp - 4]
call fcn.00404090
mov eax, dword [ebp - 0x1c8]
call fcn.00404ea4
mov eax, dword [ebp - 0x10]
mov edx, 0x4061a4
call fcn.00404190
jne 0x405e0d
lea eax, [ebp - 0x1cc]
mov ecx, dword [ebp - 0x15c]
mov edx, dword [ebp - 4]
call fcn.00404090
mov eax, dword [ebp - 0x1cc]
call fcn.00404ea4
mov eax, dword [ebp - 0x10]
mov edx, 0x4061b0
call fcn.00404190
jne 0x405e3b
lea eax, [ebp - 0x1d0]
mov ecx, dword [ebp - 0x15c]
mov edx, dword [ebp - 4]
call fcn.00404090
mov eax, dword [ebp - 0x1d0]
call fcn.00404ea4
lea edx, [ebp - 0x1d4]
mov eax, dword [ebp - 4]
call fcn.00406ed0
mov edx, dword [ebp - 0x1d4]
mov eax, 0x4061bc
call fcn.00404388
test eax, eax
jle 0x405f19
lea eax, [ebp - 0x1d8]
mov ecx, 0x4061cc
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 0x405f19
mov eax, dword [0x40b194]
push dword [eax]
push dword [ebp - 4]
push 0x4061cc
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.004055f4
push dword [ebp - 0x1e0]
push 0x4061d8
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 0x405ec1
lea edx, [ebp - 0x1e8]
mov eax, dword [ebp - 4]
call fcn.00406ed0
mov edx, dword [ebp - 0x1e8]
mov eax, 0x4061e8
call fcn.00404388
test eax, eax
jle 0x405ff7
lea eax, [ebp - 0x1ec]
mov ecx, 0x4061cc
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 0x405ff7
mov eax, dword [0x40b194]
push dword [eax]
push dword [ebp - 4]
push 0x4061cc
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.004055f4
push dword [ebp - 0x1f4]
push 0x4061d8
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 0x405f9f
lea edx, [ebp - 0x1fc]
mov eax, dword [ebp - 4]
call fcn.00406ed0
mov edx, dword [ebp - 0x1fc]
mov eax, 0x4061f8
call fcn.00404388
test eax, eax
jle 0x4060d5
lea eax, [ebp - 0x200]
mov ecx, 0x4061cc
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 0x4060d5
mov eax, dword [0x40b194]
push dword [eax]
push dword [ebp - 4]
push 0x4061cc
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.004055f4
push dword [ebp - 0x208]
push 0x4061d8
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 0x40607d
lea eax, [ebp - 0x168]
call fcn.004062d4
test eax, eax
je 0x405b1c
lea eax, [ebp - 0x168]
call fcn.00406268
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406136
lea eax, [ebp - 0x20c]
mov edx, 0x29
call fcn.00403df0
lea eax, [ebp - 0x168]
mov edx, dword [0x405354]
call fcn.0040455c
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00403df0
ret