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

Disassembly:
push 0xffffffffffffffff
push 0x4fd833
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x388
mov eax, dword [0x574900]
push ebx
push esi
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov esi, dword [esp + 0x3a0]
xor ebx, ebx
mov dword [esp + 0x398], ebx
mov eax, dword [esi]
cmp dword [eax - 8], ebx
je 0x4368c7
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4368b2
mov ecx, dword [0x574900]
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 + 0x3a4], 1
call fcn.0048beb0
add esp, 0xc
lea edx, [esp + 8]
mov ecx, esi
push edx
call fcn.004dc008
lea ecx, [esp + 8]
mov byte [esp + 0x398], bl
call fcn.004dbec1
jmp 0x4368c7
test al, 0x10
je 0x4368c7
push esi
lea ecx, [esp + 0x10]
call fcn.004dc008
mov ecx, esi
call fcn.004dbe49
push edi
mov edi, dword [esi]
push ebx
call fcn.0040b6b0
mov ecx, eax
call fcn.005097e0
push eax
push 0x81040
push edi
push ebx
push 1
lea ecx, [esp + 0x30]
call fcn.004415a0
mov byte [esp + 0x39c], 2
mov dword [esp + 0xbc], 0x3ed
call fcn.004f0976
mov eax, dword [eax + 8]
mov dword [esp + 0x7c], eax
mov eax, dword [esi]
cmp dword [eax - 8], ebx
jne 0x4369c6
mov ecx, dword [esp + 0x10]
cmp dword [ecx - 8], ebx
jne 0x4369c6
push ebp
call fcn.0040b6b0
mov edx, dword [0x574900]
mov ebp, eax
add ebp, 0x46c
mov dword [esp + 0x10], edx
mov edi, dword [esp + 0x3ac]
mov byte [esp + 0x3a0], 3
cmp edi, ebx
je 0x436977
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x436968
test al, 0x10
je 0x436968
push edi
lea ecx, [esp + 0x14]
call fcn.004dc058
jmp 0x436977
lea eax, [esp + 0x10]
push ebx
push eax
push edi
call fcn.0048beb0
add esp, 0xc
mov eax, dword [esp + 0x10]
cmp dword [eax - 8], ebx
je 0x436991
lea ecx, [esp + 0x14]
push ecx
push eax
mov ecx, ebp
call fcn.00509410
test eax, eax
jne 0x4369b4
lea edx, [esp + 0x14]
mov ecx, ebp
push edx
push ebx
call fcn.00509410
test eax, eax
jne 0x4369b4
call fcn.0040b6b0
add eax, 0x38
lea ecx, [esp + 0x14]
push eax
call fcn.004dc008
lea ecx, [esp + 0x10]
mov byte [esp + 0x3a0], 2
call fcn.004dbec1
pop ebp
mov eax, dword [esp + 0x10]
pop edi
cmp dword [eax - 8], ebx
je 0x4369d7
mov dword [esp + 0x9c], eax
lea ecx, [esp + 0x14]
call fcn.00441ef0
cmp eax, 1
je 0x436a38
lea ecx, [esp + 0x354]
mov byte [esp + 0x398], 4
call fcn.00495430
lea ecx, [esp + 0xc0]
mov byte [esp + 0x398], 5
call fcn.004dbec1
lea ecx, [esp + 0x14]
mov byte [esp + 0x398], bl
call fcn.004d7773
lea ecx, [esp + 0xc]
mov dword [esp + 0x398], 0xffffffff
call fcn.004dbec1
xor eax, eax
jmp 0x436ac2
lea eax, [esp + 8]
lea ecx, [esp + 0x14]
push eax
call fcn.004d3fdc
push eax
mov ecx, esi
mov byte [esp + 0x39c], 6
call fcn.004dc008
lea ecx, [esp + 8]
mov byte [esp + 0x398], 2
call fcn.004dbec1
mov ecx, dword [esp + 0x10]
push ebx
call fcn.004da810
lea ecx, [esp + 0x354]
mov byte [esp + 0x398], 7
call fcn.00495430
lea ecx, [esp + 0xc0]
mov byte [esp + 0x398], 8
call fcn.004dbec1
lea ecx, [esp + 0x14]
mov byte [esp + 0x398], bl
call fcn.004d7773
lea ecx, [esp + 0xc]
mov dword [esp + 0x398], 0xffffffff
call fcn.004dbec1
mov eax, 1
mov ecx, dword [esp + 0x390]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x394
ret 8