Function at 0x416710
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x488658
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x4bc1dc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp byte [ebp + 0xc], 0
mov esi, dword [ebp + 8]
jne 0x416864
test esi, esi
je 0x416864
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x416864
push 0x4988c4
call fcn.0046b670
push eax
push 0x4988c4
call fcn.0046b800
mov dword [ebp - 0x18], eax
push esi
mov dword [ebp - 4], 0
call fcn.0046b670
push eax
push esi
call fcn.0046b800
mov dword [ebp - 0x14], eax
push 0x498888
mov byte [ebp - 4], 1
call fcn.0046b670
push eax
push 0x498888
call fcn.0046b800
add esp, 0x24
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x10]
call fcn.0046b3d0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
push ecx
lea ecx, [ebp + 0xc]
push ecx
mov ecx, eax
call fcn.0046b3d0
mov ecx, dword [ebp - 0x20]
mov byte [ebp - 4], 5
test ecx, ecx
je 0x4167e4
call fcn.0046b840
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 6
test ecx, ecx
je 0x4167f4
call fcn.0046b840
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 7
test ecx, ecx
je 0x416804
call fcn.0046b840
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 8
test ecx, ecx
je 0x416814
call fcn.0046b840
push 4
push 0x49794c
lea ecx, [ebp + 0xc]
call fcn.0046b310
push eax
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
cmp eax, 6
je 0x41685b
test ecx, ecx
je 0x416845
call fcn.0046b840
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
test ecx, ecx
je 0x416864
call fcn.0046b840
push dword [ebp + 0x14]
mov ecx, edi
push dword [ebp + 0x10]
push esi
call fcn.004169d0
mov bl, al
test bl, bl
jne 0x4169ab
push 0x4988d0
call fcn.0046b670
push eax
push 0x4988d0
call fcn.0046b800
add esp, 0xc
mov dword [ebp + 8], eax
mov dword [ebp - 4], 9
test esi, esi
je 0x41697f
cmp word [esi], 0
je 0x41697f
push 0x498928
call fcn.0046b670
push eax
push 0x498928
call fcn.0046b800
mov dword [ebp - 0x1c], eax
push esi
mov byte [ebp - 4], 0xa
call fcn.0046b670
push eax
push esi
call fcn.0046b800
mov dword [ebp + 0x10], eax
push 0x498920
mov byte [ebp - 4], 0xb
call fcn.0046b670
push eax
push 0x498920
call fcn.0046b800
add esp, 0x24
mov dword [ebp + 0x14], eax
lea eax, [ebp + 0x10]
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp + 0x14]
call fcn.0046b3d0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xd
push ecx
lea ecx, [ebp - 0x24]
push ecx
mov ecx, eax
call fcn.0046b3d0
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0xe
call fcn.0046b4b0
mov ecx, dword [ebp - 0x24]
mov byte [ebp - 4], 0xd
test ecx, ecx
je 0x41693f
call fcn.0046b840
mov ecx, dword [ebp - 0x28]
mov byte [ebp - 4], 0xc
test ecx, ecx
je 0x41694f
call fcn.0046b840
mov ecx, dword [ebp + 0x14]
mov byte [ebp - 4], 0xb
test ecx, ecx
je 0x41695f
call fcn.0046b840
mov ecx, dword [ebp + 0x10]
mov byte [ebp - 4], 0xa
test ecx, ecx
je 0x41696f
call fcn.0046b840
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 4], 9
test ecx, ecx
je 0x41697f
call fcn.0046b840
push 0
push 0x49794c
lea ecx, [ebp + 8]
call fcn.0046b310
push eax
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x4169ab
call fcn.0046b840
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10