Function at 0x4240f0
Capabilities:
Check if file exists
Copy file
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b9557
mov eax, dword fs:[0]
push eax
sub esp, 0x170
mov eax, dword [0x4ff1a0]
xor eax, esp
mov dword [esp + 0x168], eax
push ebx
push esi
push edi
mov eax, dword [0x4ff1a0]
xor eax, esp
push eax
lea eax, [esp + 0x180]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], edi
cmp dword [edi + 0x10], ebx
je 0x42436c
cmp dword [esi + 0x10], ebx
je 0x42436c
cmp dword [esi + 0x14], 8
jb 0x42415c
mov eax, dword [esi]
jmp 0x42415e
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete al
cmp al, bl
je 0x42436c
mov ecx, esi
call fcn.004222c0
test al, al
je 0x4241b6
cmp dword [edi + 0x10], ebx
je 0x4241af
cmp dword [edi + 0x14], 8
jb 0x42418d
mov eax, dword [edi]
jmp 0x42418f
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete al
cmp al, bl
je 0x4241af
mov ecx, edi
call fcn.004222c0
test al, al
je 0x42436c
mov ecx, edi
call fcn.00422880
mov edi, 7
xor eax, eax
mov dword [esp + 0x90], edi
mov dword [esp + 0x8c], ebx
mov word [esp + 0x7c], ax
mov dword [esp + 0x188], ebx
xor ecx, ecx
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], ebx
mov word [esp + 0x44], cx
mov byte [esp + 0x188], 1
lea edx, [esp + 0x44]
push edx
mov edx, dword [esp + 0x20]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push 0xffffffffffffffff
push ebx
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
push edx
lea esi, [esp + 0xa8]
mov word [ecx], ax
call fcn.0040f1f0
mov byte [esp + 0x1a8], 2
mov byte [esp + 0x1a8], 1
mov ecx, esi
call fcn.00423be0
add esp, 0x20
cmp al, bl
jne 0x424294
mov byte [esp + 0x188], bl
mov esi, 8
cmp dword [esp + 0x58], esi
jb 0x424256
mov eax, dword [esp + 0x44]
push eax
call fcn.00490458
add esp, 4
xor ecx, ecx
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], ebx
mov word [esp + 0x44], cx
mov dword [esp + 0x188], 0xffffffff
cmp dword [esp + 0x90], esi
jb 0x424286
mov edx, dword [esp + 0x7c]
push edx
call fcn.00490458
add esp, 4
xor eax, eax
mov word [esp + 0x7c], ax
xor al, al
jmp 0x424a0d
xor ecx, ecx
mov dword [esp + 0xc8], edi
mov dword [esp + 0xc4], ebx
mov word [esp + 0xb4], cx
mov byte [esp + 0x188], 3
xor edx, edx
mov dword [esp + 0xac], edi
mov dword [esp + 0xa8], ebx
mov word [esp + 0x98], dx
mov byte [esp + 0x188], 4
lea eax, [esp + 0x98]
push eax
mov eax, dword [esp + 0x1c]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push 0xffffffffffffffff
push ebx
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
push eax
lea esi, [esp + 0xe0]
mov word [ecx], dx
call fcn.0040f1f0
mov byte [esp + 0x1a8], 5
mov byte [esp + 0x1a8], 4
mov ecx, esi
call fcn.00423be0
add esp, 0x20
cmp al, bl
jne 0x424373
mov byte [esp + 0x188], 3
lea ecx, [esp + 0x98]
call fcn.0040f320
mov byte [esp + 0x188], 1
lea ecx, [esp + 0xb4]
call fcn.0040f320
mov byte [esp + 0x188], bl
lea ecx, [esp + 0x44]
call fcn.0040f320
mov dword [esp + 0x188], 0xffffffff
lea ecx, [esp + 0x7c]
call fcn.0040f320
xor al, al
jmp 0x424a1b
mov esi, dword [esp + 0x1c]
mov ecx, esi
call fcn.004222c0
test al, al
jne 0x4244ec
lea ecx, [esp + 0xb4]
call fcn.00422880
test al, al
je 0x424320
lea eax, [esp + 0x44]
cmp dword [esp + 0xa8], ebx
je 0x4243aa
lea eax, [esp + 0x98]
push eax
lea ecx, [esp + 0xb8]
push ecx
lea edx, [esp + 0x68]
push edx
call fcn.004272a0
add esp, 0xc
mov byte [esp + 0x188], 6
lea eax, [esp + 0x60]
push eax
call fcn.004225b0
add esp, 4
test al, al
je 0x42444c
lea edx, [esp + 0x60]
mov ecx, esi
call fcn.004218b0
test al, al
je 0x42444c
mov byte [esp + 0x188], 4
lea ecx, [esp + 0x60]
call fcn.0040f320
mov byte [esp + 0x188], 3
lea ecx, [esp + 0x98]
call fcn.0040f320
mov byte [esp + 0x188], 1
lea ecx, [esp + 0xb4]
call fcn.0040f320
mov byte [esp + 0x188], bl
lea ecx, [esp + 0x44]
call fcn.0040f320
mov dword [esp + 0x188], 0xffffffff
lea ecx, [esp + 0x7c]
call fcn.0040f320
mov al, 1
jmp 0x424a1b
push 1
lea esi, [esp + 0x64]
call fcn.00423ad0
mov ecx, dword [esp + 0x64]
mov edx, 8
add esp, 4
cmp dword [esp + 0x74], edx
jae 0x42446b
mov ecx, esi
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x14], edx
jb 0x424476
mov eax, dword [eax]
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
setne byte [esp + 0x17]
mov byte [esp + 0x188], 4
lea ecx, [esp + 0x60]
call fcn.0040f320
mov byte [esp + 0x188], 3
lea ecx, [esp + 0x98]
call fcn.0040f320
mov byte [esp + 0x188], 1
lea ecx, [esp + 0xb4]
call fcn.0040f320
mov byte [esp + 0x188], bl
lea ecx, [esp + 0x44]
call fcn.0040f320
mov dword [esp + 0x188], 0xffffffff
lea ecx, [esp + 0x7c]
call fcn.0040f320
mov al, byte [esp + 0x17]
jmp 0x424a1b
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x188], 7
push ebx
push 1
lea ecx, [esp + 0x3c]
push ecx
push esi
call fcn.00425430
mov ecx, dword [esp + 0x48]
mov esi, dword [esp + 0x44]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add esp, 0x10
add eax, edx
mov dword [esp + 0x10], ebx
je 0x424841
mov dword [esp + 0x20], ebx
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov edx, dword [edx + 0x10]
mov eax, dword [ecx + esi + 0x10]
add ecx, esi
sub eax, edx
dec eax
push eax
inc edx
push edx
lea eax, [esp + 0x12c]
push eax
call fcn.00413c40
mov byte [esp + 0x188], 8
mov edx, dword [esp + 0x18]
push 0xffffffffffffffff
xor ecx, ecx
push ebx
mov word [esp + 0xd8], cx
push edx
lea ecx, [esp + 0xdc]
mov dword [esp + 0xf0], edi
mov dword [esp + 0xec], ebx
call fcn.0040f1f0
mov byte [esp + 0x188], 9
push 0x5c
lea esi, [esp + 0xd4]
call fcn.004196c0
add esp, 4
push 0x2f
call fcn.004196c0
add esp, 4
push 1
xor eax, eax
push 0x4c4f30
lea ecx, [esp + 0x68]
mov dword [esp + 0x7c], edi
mov dword [esp + 0x78], ebx
mov word [esp + 0x68], ax
call fcn.0040e680
mov byte [esp + 0x188], 0xa
xor ecx, ecx
push 1
mov word [esp + 0xf0], cx
push 0x4c4f30
lea ecx, [esp + 0xf4]
mov dword [esp + 0x108], edi
mov dword [esp + 0x104], ebx
call fcn.0040e680
mov byte [esp + 0x188], 0xb
mov edx, esi
push edx
lea eax, [esp + 0x160]
push eax
lea ecx, [esp + 0xf4]
call fcn.00427360
mov byte [esp + 0x190], 0xc
lea ecx, [esp + 0x12c]
push ecx
push eax
lea edx, [esp + 0x150]
push edx
call fcn.00410c00
add esp, 0x14
mov byte [esp + 0x188], 0xd
lea ecx, [esp + 0x108]
push ecx
lea edx, [esp + 0x64]
mov ecx, eax
call fcn.004273e0
add esp, 4
mov byte [esp + 0x188], 0xf
mov esi, 8
cmp dword [esp + 0x154], esi
jb 0x42468d
mov edx, dword [esp + 0x140]
push edx
call fcn.00490458
add esp, 4
xor eax, eax
mov dword [esp + 0x154], edi
mov dword [esp + 0x150], ebx
mov word [esp + 0x140], ax
mov byte [esp + 0x188], 0x10
cmp dword [esp + 0x170], esi
jb 0x4246c6
mov ecx, dword [esp + 0x15c]
push ecx
call fcn.00490458
add esp, 4
xor edx, edx
mov dword [esp + 0x170], edi
mov dword [esp + 0x16c], ebx
mov word [esp + 0x15c], dx
mov byte [esp + 0x188], 0x11
cmp dword [esp + 0x100], esi
jb 0x4246ff
mov eax, dword [esp + 0xec]
push eax
call fcn.00490458
add esp, 4
xor ecx, ecx
mov dword [esp + 0x100], edi
mov dword [esp + 0xfc], ebx
mov word [esp + 0xec], cx
mov byte [esp + 0x188], 0x12
cmp dword [esp + 0x74], esi
jb 0x424732
mov edx, dword [esp + 0x60]
push edx
call fcn.00490458
add esp, 4
xor eax, eax
lea ecx, [esp + 0x108]
mov dword [esp + 0x74], edi
mov dword [esp + 0x70], ebx
mov word [esp + 0x60], ax
call fcn.00422880
mov eax, dword [esp + 0x20]
add eax, dword [esp + 0x34]
lea ecx, [esp + 0x108]
push ecx
push eax
call fcn.004240f0
add esp, 8
mov byte [esp + 0x188], 9
cmp dword [esp + 0x11c], esi
jb 0x424787
mov ecx, dword [esp + 0x108]
push ecx
call fcn.00490458
add esp, 4
xor edx, edx
mov dword [esp + 0x11c], edi
mov dword [esp + 0x118], ebx
mov word [esp + 0x108], dx
mov byte [esp + 0x188], 8
cmp dword [esp + 0xe4], esi
jb 0x4247c0
mov eax, dword [esp + 0xd0]
push eax
call fcn.00490458
add esp, 4
xor ecx, ecx
mov dword [esp + 0xe4], edi
mov dword [esp + 0xe0], ebx
mov word [esp + 0xd0], cx
mov byte [esp + 0x188], 7
cmp dword [esp + 0x138], esi
jb 0x4247f9
mov edx, dword [esp + 0x124]
push edx
call fcn.00490458
add esp, 4
mov ecx, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
inc dword [esp + 0x10]
add dword [esp + 0x20], 0x1c
xor eax, eax
sub ecx, esi
mov word [esp + 0x124], ax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov dword [esp + 0x138], edi
mov dword [esp + 0x134], ebx
cmp dword [esp + 0x10], ecx
jb 0x42453c
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x188], 0x13
mov eax, dword [esp + 0x1c]
push ebx
push ebx
lea edx, [esp + 0x2c]
push edx
push eax
call fcn.00425430
mov ecx, dword [esp + 0x38]
sub ecx, dword [esp + 0x34]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add esp, 0x10
xor esi, esi
add ecx, edx
je 0x4248c7
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
add eax, dword [esp + 0x10]
push edx
push eax
call fcn.004240f0
mov ecx, dword [esp + 0x30]
sub ecx, dword [esp + 0x2c]
add dword [esp + 0x18], 0x1c
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc esi
add eax, edx
add esp, 8
cmp esi, eax
jb 0x42488c
mov byte [esp + 0x188], 7
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x4248f9
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x34]
push edx
push ecx
push eax
call fcn.0041ace0
mov edx, dword [esp + 0x34]
push edx
call fcn.00490458
add esp, 0x14
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x188], 4
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x424937
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x44]
push edx
push ecx
push eax
call fcn.0041ace0
mov edx, dword [esp + 0x44]
push edx
call fcn.00490458
add esp, 0x14
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x188], 3
mov esi, 8
cmp dword [esp + 0xac], esi
jb 0x424969
mov eax, dword [esp + 0x98]
push eax
call fcn.00490458
add esp, 4
xor ecx, ecx
mov dword [esp + 0xac], edi
mov dword [esp + 0xa8], ebx
mov word [esp + 0x98], cx
mov byte [esp + 0x188], 1
cmp dword [esp + 0xc8], esi
jb 0x4249a2
mov edx, dword [esp + 0xb4]
push edx
call fcn.00490458
add esp, 4
xor eax, eax
mov dword [esp + 0xc8], edi
mov dword [esp + 0xc4], ebx
mov word [esp + 0xb4], ax
mov byte [esp + 0x188], bl
cmp dword [esp + 0x58], esi
jb 0x4249d4
mov ecx, dword [esp + 0x44]
push ecx
call fcn.00490458
add esp, 4
xor edx, edx
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], ebx
mov word [esp + 0x44], dx
mov dword [esp + 0x188], 0xffffffff
cmp dword [esp + 0x90], esi
jb 0x424a04
mov eax, dword [esp + 0x7c]
push eax
call fcn.00490458
add esp, 4
xor ecx, ecx
mov word [esp + 0x7c], cx
mov al, 1
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], edi
mov ecx, dword [esp + 0x180]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x168]
xor ecx, esp
call fcn.004911d1
mov esp, ebp
pop ebp
ret