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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
push ebx
push esi
lea eax, [ebp - 0x1c]
push edi
push eax
mov dword [ebp - 0xc], ecx
call fcn.0046e9ca
mov esi, dword [ebp + 8]
push eax
mov ecx, esi
call fcn.00403a8c
lea ecx, [ebp - 0x1c]
call fcn.004038fb
mov eax, dword [esi]
xor edi, edi
mov dword [ebp - 0x14], edi
mov ebx, 0x4b0f98
cmp dword [eax - 8], edi
jne 0x46eba9
mov eax, dword [0x4b0550]
mov dword [ebp - 0x14], 1
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
call fcn.0047a2ac
mov edi, 0x4b0efc
pop ecx
mov eax, edi
test eax, eax
je 0x46eb41
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
push eax
lea ecx, [ebp + 8]
call fcn.00403bd8
mov eax, dword [0x4c6684]
lea ecx, [ebp + 8]
push eax
push dword [eax - 8]
call fcn.00403bd8
mov edi, 0x4b83cc
mov eax, edi
test eax, eax
je 0x46eb6e
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
push eax
lea ecx, [ebp + 8]
call fcn.00403bd8
lea eax, [ebp + 8]
push eax
call fcn.004602be
pop ecx
lea eax, [ebp + 8]
push eax
mov ecx, esi
call fcn.00403a8c
push 0
push dword [esi]
push 0x4b0f9c
push ebx
call fcn.0044ae5b
add esp, 0x10
lea ecx, [ebp + 8]
call fcn.004038fb
xor edi, edi
cmp dword [ebp + 0xc], edi
jne 0x46ebdf
mov eax, dword [esi]
cmp dword [eax - 8], edi
je 0x46ed80
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x46ebcd
test al, 0x10
jne 0x46ed80
cmp dword [ebp - 0x14], edi
je 0x46ebdf
push dword [esi]
call fcn.004204b0
pop ecx
jmp 0x46ee34
lea ecx, [ebp - 0x74]
call fcn.00497925
lea ecx, [ebp - 0x38]
call fcn.0048997e
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 0x38]
push dword [eax + 4]
push 6
call fcn.0048a1c3
mov eax, dword [0x4b0550]
push 0x80
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x14], eax
call fcn.0040aeda
push 0x4bd5dc
lea ecx, [ebp - 8]
call fcn.0040a4e8
push esi
lea ecx, [ebp - 0x6c]
call fcn.00403a8c
lea eax, [ebp - 4]
push 5
push eax
call fcn.00461770
mov eax, dword [0x4b0550]
mov dword [ebp - 0x10], eax
push eax
push 0x4b0f9c
lea eax, [ebp - 0x1c]
push ebx
push eax
call fcn.0044ae7c
add esp, 0x18
mov ecx, esi
push eax
call fcn.00403a8c
lea ecx, [ebp - 0x1c]
call fcn.004038fb
cmp dword [ebp + 0xc], edi
jne 0x46ed2d
push 0x4b83c8
lea ecx, [ebp - 0x1c]
call fcn.00403927
mov edi, 0x4b06b4
lea ecx, [ebp - 0x18]
push edi
call fcn.00403927
push edi
lea ecx, [ebp + 0xc]
call fcn.00403927
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0xc]
push esi
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00403b20
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00403b20
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00403b20
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00403b20
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00403b20
push 0
push 0x4bd5d8
push dword [eax]
mov eax, dword [ebp - 0xc]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x20]
call fcn.004038fb
lea ecx, [ebp - 0x24]
call fcn.004038fb
lea ecx, [ebp - 0x28]
call fcn.004038fb
lea ecx, [ebp - 0x2c]
call fcn.004038fb
lea ecx, [ebp - 0x30]
call fcn.004038fb
lea ecx, [ebp + 0xc]
call fcn.004038fb
lea ecx, [ebp - 0x18]
call fcn.004038fb
lea ecx, [ebp - 0x1c]
call fcn.004038fb
xor edi, edi
lea eax, [ebp - 8]
push eax
push edi
push ecx
lea eax, [ebp - 4]
mov ecx, esp
push eax
call fcn.004038b5
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 0x74]
push dword [eax + 4]
call fcn.00497b92
test eax, eax
jne 0x46ed89
lea ecx, [ebp - 0x10]
call fcn.004038fb
lea ecx, [ebp - 4]
call fcn.004038fb
lea ecx, [ebp - 8]
call fcn.004038fb
lea ecx, [ebp - 0x14]
call fcn.004038fb
lea ecx, [ebp - 0x38]
call fcn.0048996a
lea ecx, [ebp - 0x74]
call fcn.00497962
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
lea eax, [ebp - 8]
mov ecx, esi
push eax
call fcn.00403a8c
push esi
lea ecx, [ebp + 8]
call fcn.004038b5
lea eax, [ebp + 8]
push eax
call fcn.0045f9a4
test eax, eax
pop ecx
je 0x46edc8
push edi
push 0x4b2a7c
lea ecx, [ebp + 8]
call fcn.00403d34
test eax, eax
jne 0x46edc8
lea eax, [ebp + 8]
mov ecx, esi
push eax
call fcn.00403a8c
push edi
push dword [esi]
push 0x4b0f9c
push ebx
call fcn.0044ae5b
add esp, 0x10
cmp dword [0x4c42e8], edi
je 0x46edfc
push edi
mov ecx, esi
call fcn.00403c58
push eax
push edi
push 0x40b
push dword [0x4c42e8]
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp + 8]
call fcn.004038fb
lea ecx, [ebp - 0x10]
call fcn.004038fb
lea ecx, [ebp - 4]
call fcn.004038fb
lea ecx, [ebp - 8]
call fcn.004038fb
lea ecx, [ebp - 0x14]
call fcn.004038fb
lea ecx, [ebp - 0x38]
call fcn.0048996a
lea ecx, [ebp - 0x74]
call fcn.00497962
push 1
pop eax
jmp 0x46ed82