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

Disassembly:
push 0xffffffffffffffff
push 0x4fd543
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x384
mov eax, dword [0x5748d0]
push ebx
push esi
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov esi, dword [esp + 0x39c]
xor ebx, ebx
mov dword [esp + 0x394], ebx
mov eax, dword [esi]
cmp dword [eax - 8], ebx
je 0x4363c7
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4363b2
mov ecx, dword [0x5748d0]
mov dword [esp + 8], ecx
mov eax, dword [esi]
lea edx, [esp + 8]
lea ecx, [esp + 0xc]
push edx
push ecx
push eax
mov byte [esp + 0x3a0], 1
call fcn.0048b8b0
add esp, 0xc
lea edx, [esp + 8]
mov ecx, esi
push edx
call fcn.004dbd12
lea ecx, [esp + 8]
mov byte [esp + 0x394], bl
call fcn.004dbbcb
jmp 0x4363c7
test al, 0x10
je 0x4363c7
push esi
lea ecx, [esp + 0x10]
call fcn.004dbd12
mov ecx, esi
call fcn.004dbb53
push edi
mov edi, dword [esi]
push ebx
call fcn.0040b720
mov ecx, eax
call fcn.005097e0
push eax
push 0x81040
push edi
push ebx
push 1
lea ecx, [esp + 0x30]
call fcn.00441090
mov byte [esp + 0x398], 2
mov dword [esp + 0xbc], 0x3ed
call fcn.004f0680
mov eax, dword [eax + 8]
mov dword [esp + 0x7c], eax
mov eax, dword [esi]
cmp dword [eax - 8], ebx
jne 0x4364c6
mov ecx, dword [esp + 0x10]
cmp dword [ecx - 8], ebx
jne 0x4364c6
push ebp
call fcn.0040b720
mov edx, dword [0x5748d0]
mov ebp, eax
add ebp, 0x46c
mov dword [esp + 0x10], edx
mov edi, dword [esp + 0x3a8]
mov byte [esp + 0x39c], 3
cmp edi, ebx
je 0x436477
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x436468
test al, 0x10
je 0x436468
push edi
lea ecx, [esp + 0x14]
call fcn.004dbd62
jmp 0x436477
lea eax, [esp + 0x10]
push ebx
push eax
push edi
call fcn.0048b8b0
add esp, 0xc
mov eax, dword [esp + 0x10]
cmp dword [eax - 8], ebx
je 0x436491
lea ecx, [esp + 0x14]
push ecx
push eax
mov ecx, ebp
call fcn.00509410
test eax, eax
jne 0x4364b4
lea edx, [esp + 0x14]
mov ecx, ebp
push edx
push ebx
call fcn.00509410
test eax, eax
jne 0x4364b4
call fcn.0040b720
add eax, 0x38
lea ecx, [esp + 0x14]
push eax
call fcn.004dbd12
lea ecx, [esp + 0x10]
mov byte [esp + 0x39c], 2
call fcn.004dbbcb
pop ebp
mov eax, dword [esp + 0x10]
pop edi
cmp dword [eax - 8], ebx
je 0x4364d7
mov dword [esp + 0x9c], eax
lea ecx, [esp + 0x14]
call fcn.00441960
cmp eax, 1
je 0x436538
lea ecx, [esp + 0x354]
mov byte [esp + 0x394], 4
call fcn.00494e60
lea ecx, [esp + 0xc0]
mov byte [esp + 0x394], 5
call fcn.004dbbcb
lea ecx, [esp + 0x14]
mov byte [esp + 0x394], bl
call fcn.004d74a3
lea ecx, [esp + 0xc]
mov dword [esp + 0x394], 0xffffffff
call fcn.004dbbcb
xor eax, eax
jmp 0x4365c2
lea eax, [esp + 8]
lea ecx, [esp + 0x14]
push eax
call fcn.004d3d0c
push eax
mov ecx, esi
mov byte [esp + 0x398], 6
call fcn.004dbd12
lea ecx, [esp + 8]
mov byte [esp + 0x394], 2
call fcn.004dbbcb
mov ecx, dword [esp + 0x10]
push ebx
call fcn.004da51a
lea ecx, [esp + 0x354]
mov byte [esp + 0x394], 7
call fcn.00494e60
lea ecx, [esp + 0xc0]
mov byte [esp + 0x394], 8
call fcn.004dbbcb
lea ecx, [esp + 0x14]
mov byte [esp + 0x394], bl
call fcn.004d74a3
lea ecx, [esp + 0xc]
mov dword [esp + 0x394], 0xffffffff
call fcn.004dbbcb
mov eax, 1
mov ecx, dword [esp + 0x38c]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x390
ret 8