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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x486fe8
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 0x416684
test esi, esi
je 0x416684
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x416684
push 0x4988bc
call fcn.0046a680
push eax
push 0x4988bc
call fcn.0046a810
mov dword [ebp - 0x18], eax
push esi
mov dword [ebp - 4], 0
call fcn.0046a680
push eax
push esi
call fcn.0046a810
mov dword [ebp - 0x14], eax
push 0x498880
mov byte [ebp - 4], 1
call fcn.0046a680
push eax
push 0x498880
call fcn.0046a810
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.0046a380
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
push ecx
lea ecx, [ebp + 0xc]
push ecx
mov ecx, eax
call fcn.0046a380
mov ecx, dword [ebp - 0x20]
mov byte [ebp - 4], 5
test ecx, ecx
je 0x416604
call fcn.0046a850
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 6
test ecx, ecx
je 0x416614
call fcn.0046a850
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 7
test ecx, ecx
je 0x416624
call fcn.0046a850
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 8
test ecx, ecx
je 0x416634
call fcn.0046a850
push 4
push 0x497944
lea ecx, [ebp + 0xc]
call fcn.0046a2c0
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 0x41667b
test ecx, ecx
je 0x416665
call fcn.0046a850
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 0x416684
call fcn.0046a850
push dword [ebp + 0x14]
mov ecx, edi
push dword [ebp + 0x10]
push esi
call fcn.004167f0
mov bl, al
test bl, bl
jne 0x4167cb
push 0x4988c8
call fcn.0046a680
push eax
push 0x4988c8
call fcn.0046a810
add esp, 0xc
mov dword [ebp + 8], eax
mov dword [ebp - 4], 9
test esi, esi
je 0x41679f
cmp word [esi], 0
je 0x41679f
push 0x498920
call fcn.0046a680
push eax
push 0x498920
call fcn.0046a810
mov dword [ebp - 0x1c], eax
push esi
mov byte [ebp - 4], 0xa
call fcn.0046a680
push eax
push esi
call fcn.0046a810
mov dword [ebp + 0x10], eax
push 0x498918
mov byte [ebp - 4], 0xb
call fcn.0046a680
push eax
push 0x498918
call fcn.0046a810
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.0046a380
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xd
push ecx
lea ecx, [ebp - 0x24]
push ecx
mov ecx, eax
call fcn.0046a380
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0xe
call fcn.0046a460
mov ecx, dword [ebp - 0x24]
mov byte [ebp - 4], 0xd
test ecx, ecx
je 0x41675f
call fcn.0046a850
mov ecx, dword [ebp - 0x28]
mov byte [ebp - 4], 0xc
test ecx, ecx
je 0x41676f
call fcn.0046a850
mov ecx, dword [ebp + 0x14]
mov byte [ebp - 4], 0xb
test ecx, ecx
je 0x41677f
call fcn.0046a850
mov ecx, dword [ebp + 0x10]
mov byte [ebp - 4], 0xa
test ecx, ecx
je 0x41678f
call fcn.0046a850
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 4], 9
test ecx, ecx
je 0x41679f
call fcn.0046a850
push 0
push 0x497944
lea ecx, [ebp + 8]
call fcn.0046a2c0
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 0x4167cb
call fcn.0046a850
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