Function at 0x46e5fc
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.0046e4ed
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, 0x4aff98
cmp dword [eax - 8], edi
jne 0x46e6cc
mov eax, dword [0x4af550]
mov dword [ebp - 0x14], 1
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
call fcn.00479dc6
mov edi, 0x4afefc
pop ecx
mov eax, edi
test eax, eax
je 0x46e664
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
push eax
lea ecx, [ebp + 8]
call fcn.00403bd8
mov eax, dword [0x4c55bc]
lea ecx, [ebp + 8]
push eax
push dword [eax - 8]
call fcn.00403bd8
mov edi, 0x4b733c
mov eax, edi
test eax, eax
je 0x46e691
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.0045fecc
pop ecx
lea eax, [ebp + 8]
push eax
mov ecx, esi
call fcn.00403a8c
push 0
push dword [esi]
push 0x4aff9c
push ebx
call fcn.0044aaba
add esp, 0x10
lea ecx, [ebp + 8]
call fcn.004038fb
xor edi, edi
cmp dword [ebp + 0xc], edi
jne 0x46e702
mov eax, dword [esi]
cmp dword [eax - 8], edi
je 0x46e8a3
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x46e6f0
test al, 0x10
jne 0x46e8a3
cmp dword [ebp - 0x14], edi
je 0x46e702
push dword [esi]
call fcn.00406ba3
pop ecx
jmp 0x46e957
lea ecx, [ebp - 0x74]
call fcn.004973d8
lea ecx, [ebp - 0x38]
call fcn.004893c1
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 0x38]
push dword [eax + 4]
push 6
call fcn.00489c06
mov eax, dword [0x4af550]
push 0x80
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x14], eax
call fcn.0040af1b
push 0x4bc51c
lea ecx, [ebp - 8]
call fcn.0040a529
push esi
lea ecx, [ebp - 0x6c]
call fcn.00403a8c
lea eax, [ebp - 4]
push 5
push eax
call fcn.00461337
mov eax, dword [0x4af550]
mov dword [ebp - 0x10], eax
push eax
push 0x4aff9c
lea eax, [ebp - 0x1c]
push ebx
push eax
call fcn.0044aadb
add esp, 0x18
mov ecx, esi
push eax
call fcn.00403a8c
lea ecx, [ebp - 0x1c]
call fcn.004038fb
cmp dword [ebp + 0xc], edi
jne 0x46e850
push 0x4b7338
lea ecx, [ebp - 0x1c]
call fcn.00403927
mov edi, 0x4af6b4
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 0x4bc518
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.00497645
test eax, eax
jne 0x46e8ac
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.004893ad
lea ecx, [ebp - 0x74]
call fcn.00497415
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.0045f5b2
test eax, eax
pop ecx
je 0x46e8eb
push edi
push 0x4b1a7c
lea ecx, [ebp + 8]
call fcn.00403d34
test eax, eax
jne 0x46e8eb
lea eax, [ebp + 8]
mov ecx, esi
push eax
call fcn.00403a8c
push edi
push dword [esi]
push 0x4aff9c
push ebx
call fcn.0044aaba
add esp, 0x10
cmp dword [0x4c3220], edi
je 0x46e91f
push edi
mov ecx, esi
call fcn.00403c58
push eax
push edi
push 0x40b
push dword [0x4c3220]
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.004893ad
lea ecx, [ebp - 0x74]
call fcn.00497415
push 1
pop eax
jmp 0x46e8a5