Function at 0x410a20
Capabilities:
Check if file exists
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x45f8b6
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x476cd4]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x476cd4]
xor eax, esp
push eax
lea eax, [esp + 0x244]
mov dword fs:[0], eax
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push 0xffffffffffffffff
xor ebp, ebp
push ebp
lea edx, [esp + 0x278]
mov esi, 7
xor eax, eax
mov ebx, 1
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebp
push edx
mov dword [esp + 0x274], ebx
mov word [ecx + 4], ax
call fcn.00408e40
lea eax, [esp + 0x34]
push eax
call fcn.0040eb40
add esp, 0x20
push 0xffffffffffffffff
push ebp
push eax
lea ecx, [esp + 0x260]
mov byte [esp + 0x258], 2
call fcn.00408e40
mov edi, 8
mov byte [esp + 0x24c], bl
cmp dword [esp + 0x30], edi
jb 0x410ad7
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0043e711
add esp, 4
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push 0xffffffffffffffff
push ebp
lea eax, [esp + 0x294]
xor edx, edx
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebp
push eax
mov word [ecx + 4], dx
call fcn.00408e40
lea ecx, [esp + 0x34]
push ecx
call fcn.0040eb40
add esp, 0x20
push 0xffffffffffffffff
push ebp
push eax
lea ecx, [esp + 0x27c]
mov byte [esp + 0x258], 3
call fcn.00408e40
mov byte [esp + 0x24c], bl
cmp dword [esp + 0x30], edi
jb 0x410b3b
mov edx, dword [esp + 0x1c]
push edx
call fcn.0043e711
add esp, 4
mov eax, dword [esp + 0x258]
cmp dword [esp + 0x26c], edi
jae 0x410b52
lea eax, [esp + 0x258]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x410bae
cmp dword [esp + 0x26c], edi
jb 0x410b76
mov eax, dword [esp + 0x258]
push eax
call fcn.0043e711
add esp, 4
xor ecx, ecx
mov dword [esp + 0x26c], esi
mov dword [esp + 0x268], ebp
mov word [esp + 0x258], cx
cmp dword [esp + 0x288], edi
jb 0x410ba7
mov edx, dword [esp + 0x274]
push edx
call fcn.0043e711
add esp, 4
xor al, al
jmp 0x410cd6
push 0x208
lea ecx, [esp + 0x3a]
xor eax, eax
push ebp
push ecx
mov word [esp + 0x40], ax
call fcn.0043f440
mov eax, dword [esp + 0x280]
add esp, 0xc
cmp dword [esp + 0x288], edi
jae 0x410bdf
lea eax, [esp + 0x274]
push 0xffffffffffffffff
push eax
lea edx, [esp + 0x3c]
push 0x104
push edx
call fcn.0043f9cc
add esp, 0x10
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
sub esp, 0x1c
mov ecx, esp
mov dword [ecx + 0x18], esi
xor edx, edx
lea eax, [esp + 0x50]
mov dword [ecx + 0x14], ebp
mov dword [esp + 0x30], esp
mov word [ecx + 4], dx
lea esi, [eax + 2]
jmp 0x410c20
mov dx, word [eax]
add eax, 2
cmp dx, bp
jne 0x410c20
sub eax, esi
sar eax, 1
push eax
lea eax, [esp + 0x54]
push eax
call fcn.00408f40
call fcn.0040f350
mov ecx, dword [esp + 0x290]
add esp, 0x1c
cmp dword [esp + 0x288], edi
jae 0x410c59
lea ecx, [esp + 0x274]
mov eax, dword [esp + 0x258]
cmp dword [esp + 0x26c], edi
jae 0x410c70
lea eax, [esp + 0x258]
movzx edx, byte [esp + 0x28c]
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
setne bl
cmp dword [esp + 0x26c], edi
jb 0x410c9f
mov eax, dword [esp + 0x258]
push eax
call fcn.0043e711
add esp, 4
xor ecx, ecx
mov dword [esp + 0x26c], 7
mov dword [esp + 0x268], ebp
mov word [esp + 0x258], cx
cmp dword [esp + 0x288], edi
jb 0x410cd4
mov edx, dword [esp + 0x274]
push edx
call fcn.0043e711
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x244]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.0043f03d
add esp, 0x23c
ret