Function at 0x40b3c0
Capabilities:
Check if file exists
Get file attributes
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x45ad61
mov eax, dword fs:[0]
push eax
sub esp, 0x4c8
mov eax, dword [0x473564]
xor eax, esp
mov dword [esp + 0x4c0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x473564]
xor eax, esp
push eax
lea eax, [esp + 0x4dc]
mov dword fs:[0], eax
mov eax, dword [esp + 0x4ec]
push edx
xor ebx, ebx
push eax
mov dword [esp + 0x24], ecx
mov byte [esp + 0x1f], bl
call fcn.00426490
mov ebp, eax
add esp, 8
cmp ebp, ebx
je 0x40b6f5
push 0x22c
lea eax, [esp + 0x7c]
push ebx
push eax
call fcn.0043e250
xor eax, eax
add esp, 0xc
cmp dword [ebp], 1
mov dword [esp + 0x74], eax
mov word [esp + 0x78], bx
mov dword [esp + 0x2a0], ebx
je 0x40b465
push ebp
mov dword [0x478e28], 0x80000
call fcn.00426900
add esp, 4
mov al, bl
jmp 0x40b6f7
mov esi, dword [ebp + 4]
mov edi, dword [esi]
or ecx, 0xffffffff
cmp dword [edi + 4], ecx
jg 0x40b479
mov ecx, 0x10000
jmp 0x40b4d8
cmp dword [esi + 4], ecx
je 0x40b486
call fcn.00425800
or ecx, 0xffffffff
mov dword [esi + 4], ecx
mov ecx, dword [esi]
mov eax, dword [ecx + 4]
mov dword [esp + 0x74], eax
mov word [esp + 0x78], bx
mov dword [esp + 0x280], ebx
mov dword [esp + 0x284], ebx
mov dword [esp + 0x288], ebx
mov dword [esp + 0x28c], ebx
mov dword [esp + 0x290], ebx
mov dword [esp + 0x294], ebx
mov dword [esp + 0x298], ebx
mov dword [esp + 0x29c], ebx
mov dword [esp + 0x2a0], ebx
xor ecx, ecx
cmp ecx, ebx
mov dword [0x478e28], ecx
jne 0x40b6e6
xor edi, edi
cmp eax, ebx
mov byte [esp + 0x17], 1
mov dword [esp + 0x18], eax
jle 0x40b6e6
lea esp, [esp]
push 0x22c
lea edx, [esp + 0x2ac]
push ebx
push edx
call fcn.0043e250
add esp, 0xc
cmp dword [ebp], 1
mov dword [esp + 0x2a4], ebx
mov word [esp + 0x2a8], bx
mov dword [esp + 0x4d0], ebx
jne 0x40b698
mov eax, dword [ebp + 4]
lea ecx, [esp + 0x2a4]
push ecx
push edi
push eax
call fcn.00425930
cmp eax, ebx
mov dword [0x478e28], eax
jne 0x40b6a2
mov edx, dword [esp + 0x1c]
push edx
lea ecx, [esp + 0x5c]
call fcn.00414370
add esp, 4
mov dword [esp + 0x4e4], ebx
push 1
push 0x4600cc
lea esi, [esp + 0x28]
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], ebx
mov word [esp + 0x2c], bx
call fcn.0040c240
lea eax, [esp + 0x2a8]
mov ecx, esi
push eax
push ecx
lea esi, [esp + 0x44]
mov byte [esp + 0x4ec], 1
call fcn.0040c7e0
add esp, 8
push 0xffffffffffffffff
push ebx
push eax
lea esi, [esp + 0x64]
mov byte [esp + 0x4f0], 2
call fcn.0040c180
mov esi, 8
cmp dword [esp + 0x54], esi
jb 0x40b5da
mov edx, dword [esp + 0x40]
push edx
call fcn.0043870c
add esp, 4
mov byte [esp + 0x4e4], bl
cmp dword [esp + 0x38], esi
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], ebx
mov word [esp + 0x40], bx
jb 0x40b605
mov eax, dword [esp + 0x24]
push eax
call fcn.0043870c
add esp, 4
cmp dword [esp + 0x70], esi
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], bx
jae 0x40b624
lea eax, [esp + 0x5c]
push eax
push edi
push ebp
call fcn.004265a0
add esp, 0xc
cmp eax, ebx
je 0x40b64d
cmp dword [esp + 0x70], esi
mov eax, dword [esp + 0x5c]
jae 0x40b641
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40b6b3
mov dword [esp + 0x4e4], 0xffffffff
cmp dword [esp + 0x70], esi
jb 0x40b66b
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.0043870c
add esp, 4
add edi, 1
cmp edi, dword [esp + 0x18]
mov dword [esp + 0x70], 7
mov dword [esp + 0x6c], ebx
mov word [esp + 0x5c], bx
jl 0x40b500
push ebp
call fcn.00426900
mov al, byte [esp + 0x1b]
add esp, 4
jmp 0x40b6f7
mov dword [0x478e28], 0x80000
push ebp
mov byte [esp + 0x1b], bl
call fcn.00426900
add esp, 4
mov al, bl
jmp 0x40b6f7
mov dword [esp + 0x4e4], 0xffffffff
cmp dword [esp + 0x70], esi
mov byte [esp + 0x17], bl
jb 0x40b6d5
mov edx, dword [esp + 0x5c]
push edx
call fcn.0043870c
add esp, 4
mov dword [esp + 0x70], 7
mov dword [esp + 0x6c], ebx
mov word [esp + 0x5c], bx
push ebp
call fcn.00426900
mov al, byte [esp + 0x1b]
add esp, 4
jmp 0x40b6f7
mov al, bl
mov ecx, dword [esp + 0x4dc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c0]
xor ecx, esp
call fcn.00438866
add esp, 0x4d4
ret