Function at 0x405a20
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x46aceb
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x481330]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x481330]
xor eax, esp
push eax
lea eax, [esp + 0x26c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x27c]
xor ebx, ebx
lea eax, [esp + 0x40]
mov dword [esp + 0x18], ebx
mov ecx, dword [ebp + 4]
push eax
call fcn.0040ba71
add esp, 4
mov dword [esp + 0x274], ebx
cmp dword [esp + 0x54], ebx
jne 0x405a8f
cmp dword [esp + 0x58], 8
jmp 0x405c9d
push 0x206
lea eax, [esp + 0x62]
xor edx, edx
push ebx
push eax
mov word [esp + 0x68], dx
call fcn.00455920
mov edi, 8
add esp, 0xc
cmp dword [ebp + 0x4b8], edi
jb 0x405abe
mov eax, dword [ebp + 0x4a4]
jmp 0x405ac4
lea eax, [ebp + 0x4a4]
push 0x104
push eax
lea ecx, [esp + 0x64]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov eax, dword [esp + 0x44]
cmp dword [esp + 0x58], edi
jae 0x405ae3
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea edx, [esp + 0x60]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x405b72
lea ecx, [esp + 0x5c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x405b3e
mov edx, dword [ebp + 4]
push 0x10
push 0x46e39c
push 0x46e3e8
push edx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp dword [esp + 0x58], edi
jb 0x405cac
mov eax, dword [esp + 0x44]
push eax
jmp 0x405ca4
mov esi, dword [ebp + 4]
lea ecx, [esp + 0x5c]
push ecx
push 0x46e400
push 0x24
mov edi, 0x46e3e0
call fcn.0040a7bf
add esp, 0xc
cmp eax, 6
je 0x405b6d
lea esi, [esp + 0x40]
call fcn.00409790
jmp 0x405cac
mov edi, 8
mov eax, dword [esp + 0x44]
cmp dword [esp + 0x58], edi
jae 0x405b80
lea eax, [esp + 0x44]
push ebx
push ebx
lea edx, [esp + 0x24]
push edx
push 0x40a2bc
push 1
mov esi, 0xc800000
push eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], ebx
call fcn.00409a8e
cmp dword [esp + 0x20], ebx
ja 0x405bb5
cmp dword [esp + 0x1c], esi
jb 0x405be7
mov eax, dword [esp + 0x44]
cmp dword [esp + 0x58], edi
jae 0x405bc3
lea eax, [esp + 0x44]
mov esi, dword [ebp + 4]
push eax
push 0x46e424
push 0x24
mov edi, 0x46e3e0
call fcn.0040a7bf
add esp, 0xc
cmp eax, 6
jne 0x405b5f
lea edi, [eax + 2]
push 0x44
call fcn.00451743
mov esi, eax
add esp, 4
mov dword [esp + 0x3c], esi
mov byte [esp + 0x274], 1
cmp esi, ebx
je 0x405c36
lea edx, [esp + 0x5c]
lea eax, [esp + 0x1c]
call fcn.00401860
push ebp
push 1
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x280], 2
push esi
lea ecx, [esp + 0x50]
mov dword [esp + 0x28], 1
call fcn.004055f0
mov esi, eax
jmp 0x405c38
xor esi, esi
mov dword [esp + 0x274], ebx
test byte [esp + 0x18], 1
je 0x405c6c
cmp dword [esp + 0x34], edi
jb 0x405c59
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0045164f
add esp, 4
xor edx, edx
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], dx
push 1
push str.lblCopying
lea eax, [ebp + 0x358]
push eax
call fcn.0041c413
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xe0]
push 1
call eax
mov eax, dword [ebp + 4]
push esi
call fcn.0040e484
add esp, 4
cmp dword [esp + 0x58], edi
jb 0x405cac
mov ecx, dword [esp + 0x44]
push ecx
call fcn.0045164f
add esp, 4
mov ecx, dword [esp + 0x26c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x250]
xor ecx, esp
call fcn.00451137
add esp, 0x264
ret 4