Function at 0x421fe4
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x2c
push 0
push 0
dec ecx
jne 0x421fec
xor edx, edx
push ebp
push 0x42229a
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x30], edx
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x2c], edx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x38], edx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x34], edx
lea edx, [ebp - 0x1c]
push edx
push eax
lea edx, [ebp - 0x38]
push edx
lea edx, [ebp - 0x1c]
push edx
lea edx, [ebp - 8]
push edx
lea ecx, [ebp - 8]
lea edx, [ebp - 4]
call fcn.0041d590
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x38]
lea edx, [ebp - 4]
lea eax, [ebp - 0x30]
call fcn.004208e0
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x150]
push eax
lea ecx, [ebp - 0x20]
lea edx, [ebp - 0x38]
lea eax, [ebp - 0x30]
call fcn.0041cfbc
mov eax, dword [0x42a3ac]
cmp byte [eax], 0
mov eax, dword [0x42a384]
setne byte [eax]
lea edx, [ebp - 4]
xor eax, eax
call fcn.00403fac
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00415164
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004151a4
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4220b0
sub eax, 4
mov eax, dword [eax]
mov edx, eax
sub edx, 4
inc edx
lea eax, [ebp - 0xc]
mov ecx, 4
call fcn.004063d8
lea eax, [ebp - 0xc]
mov edx, 0x4222b4
call fcn.00406200
lea eax, [ebp - 0x14c]
call fcn.0041cc04
call fcn.00403f4c
test eax, eax
jne 0x4221c4
lea eax, [ebp - 0x154]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00406258
mov eax, dword [ebp - 0x154]
mov dl, 1
call fcn.00415070
test al, al
je 0x42226f
lea eax, [ebp - 0x158]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00406258
mov eax, dword [ebp - 0x158]
lea edx, [ebp - 0x10]
call fcn.0041ca40
lea edx, [ebp - 0x15c]
mov eax, dword [ebp - 0x10]
call fcn.00415164
push dword [ebp - 0x15c]
mov eax, 0x2710
call fcn.00404034
lea edx, [ebp - 0x160]
call fcn.00414bec
push dword [ebp - 0x160]
push 0x4222cc
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004062e0
push 0
mov eax, dword [ebp - 0x14]
call fcn.00406094
push eax
mov eax, dword [ebp - 4]
call fcn.00406094
push eax
call sub.kernel32.dll_CopyFileW
push 0x4222e4
push dword [ebp - 8]
push dword [ebp - 0xc]
push 0x4222f4
push dword [ebp - 0x10]
push 0x4222f4
push dword [ebp - 4]
push 0x4222e4
lea eax, [ebp - 0x18]
mov edx, 8
call fcn.004062e0
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
call fcn.0041ced8
jmp 0x42226f
lea edx, [ebp - 0xc]
mov eax, 1
call fcn.00403fac
lea edx, [ebp - 0x10]
mov eax, 2
call fcn.00403fac
lea edx, [ebp - 4]
mov eax, 3
call fcn.00403fac
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x27
jne 0x422206
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, 1
call fcn.004063d8
mov eax, dword [ebp - 0x10]
cmp word [eax], 0x27
jne 0x422221
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, 1
call fcn.004063d8
mov edx, dword [ebp - 4]
mov eax, edx
test eax, eax
je 0x42222f
sub eax, 4
mov eax, dword [eax]
mov ecx, dword [ebp - 4]
cmp word [ecx + eax*2 - 2], 0x27
jne 0x422253
mov eax, edx
test eax, eax
je 0x422245
sub eax, 4
mov eax, dword [eax]
lea edx, [ebp - 4]
mov ecx, 1
xchg edx, eax
call fcn.004063d8
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
call fcn.0041cf14
test al, al
je 0x42226a
mov eax, dword [ebp - 0xc]
call fcn.00415108
call fcn.0041cc1c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4222a1
lea eax, [ebp - 0x160]
mov edx, 5
call fcn.00405b68
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.00405b68
ret