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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55ea73
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x5b7f60]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x148], eax
xor ebx, ebx
lea edi, [ebp - 0xac]
mov eax, esi
mov dword [ebp - 0x14c], esi
mov dword [ebp - 0x140], ebx
call fcn.0040f900
lea edi, [ebp - 0xe0]
mov eax, esi
mov dword [ebp - 4], ebx
call fcn.0040f900
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x140], ecx
mov ecx, edi
call fcn.004026f0
lea ecx, [ebp - 0xac]
mov dword [ebp - 4], 0xffffffff
call fcn.004026f0
mov edx, dword [ebp - 0x140]
push 1
inc edx
lea edi, [esi + 4]
push edx
lea eax, [ebp - 0x13c]
push eax
mov ecx, edi
mov dword [ebp - 0x13c], 0x5c
mov dword [ebp - 0x144], edi
call fcn.00413d30
mov esi, eax
cmp esi, 0xffffffff
jne 0x412b46
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005319a6
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x144]
mov dword [ebp - 0x44], 0x58dcc8
mov dword [ebp - 0x18], 0x58ed8c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14c]
neg eax
sbb eax, eax
and eax, edi
lea edi, [esi + 1]
push edi
mov dword [ebp - 4], 1
xor ecx, ecx
push ebx
mov word [ebp - 0x40], cx
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], ebx
call fcn.004021c0
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov eax, dword [edx + 4]
lea eax, [ebp + eax - 0x18]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 2
cmp dword [ebp - 0x2c], 8
mov eax, dword [ebp - 0x40]
jae 0x412bbd
lea eax, [ebp - 0x40]
mov ecx, dword [ebp - 0x30]
push ebx
push ebx
push ebx
push ebx
inc ecx
push ecx
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
cmp esi, dword [ebp - 0x20]
jbe 0x412bf5
mov edx, dword [ebp - 0x24]
push edx
call fcn.0043097b
shr esi, 6
inc esi
shl esi, 6
push esi
mov dword [ebp - 0x20], esi
call fcn.00430986
add esp, 8
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x2c], 8
mov eax, dword [ebp - 0x40]
jae 0x412c01
lea eax, [ebp - 0x40]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
push ebx
push ebx
push ecx
mov ecx, dword [ebp - 0x30]
push edx
inc ecx
push ecx
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebp - 0x24]
push eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x412c2e
test al, 0x10
jne 0x412c3e
push ebx
push esi
call dword [ebp - 0x148]
test eax, eax
je 0x412ccb
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
mov esi, dword [edx + 4]
lea esi, [ebp + esi - 0x18]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov eax, dword [ebp - 0x24]
push eax
call fcn.0043097b
mov ecx, dword [ebp - 0x1c]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
add esp, 4
push ecx
call esi
cmp dword [ebp - 0x2c], 8
jb 0x412c7b
mov edx, dword [ebp - 0x40]
push edx
call esi
mov ecx, dword [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], ebx
mov word [ebp - 0x40], ax
mov edx, dword [ecx + 4]
mov eax, dword [ebp + edx - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 1
push edi
lea ecx, [ebp - 0x13c]
push ecx
mov ecx, dword [ebp - 0x144]
mov dword [ebp - 0x13c], 0x5c
call fcn.00413d30
mov esi, eax
cmp esi, 0xffffffff
jne 0x412b40
jmp 0x412b18
push ebx
lea edx, [ebp - 0x135]
push edx
push esi
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x78], 0x58dcc8
mov dword [ebp - 0x4c], 0x58ed8c
call fcn.00411580
push 1
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x134]
mov byte [ebp - 4], 3
call fcn.0040f9e0
push 0x5ab0d8
lea ecx, [ebp - 0x134]
push ecx
call fcn.00533fcd
int3