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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x468320
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x48700c]
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 ebx, ecx
mov dword [ebp - 0x60], ebx
cmp dword [ebx + 0xb0], 8
lea edi, [ebx + 0x9c]
mov eax, edi
jb 0x436593
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
lea esi, [ebx + 0xb4]
push esi
setne byte [ebp - 0x59]
call dword [sym.imp.MSVCP140.dll__Mtx_lock]
mov ebx, dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
add esp, 4
test eax, eax
je 0x4365c1
push eax
call ebx
add esp, 4
mov ecx, dword [ebp - 0x60]
add ecx, 0x18
mov dword [ebp - 0x64], ecx
mov eax, dword [ecx + 4]
sub eax, dword [ecx]
cmp eax, 8
jae 0x4365fc
cmp byte [ebp - 0x59], 0
jne 0x4365fc
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.MSVCP140.dll__Mtx_unlock]
add esp, 4
test eax, eax
je 0x4365f5
push eax
call ebx
add esp, 4
xor al, al
jmp 0x43674c
push esi
mov dword [ebp - 4], 1
call dword [sym.imp.MSVCP140.dll__Mtx_unlock]
add esp, 4
test eax, eax
je 0x436617
push eax
call ebx
add esp, 4
cmp byte [ebp - 0x59], 0
mov dword [ebp - 4], 0xffffffff
je 0x436685
mov edx, edi
lea ecx, [ebp - 0x58]
call fcn.00430150
mov ecx, dword [ebp - 0x60]
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 4], 2
call fcn.0043abe0
mov ecx, edi
call fcn.004445d0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x44]
cmp edx, 0x10
jb 0x436685
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x43667b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x43667b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00461242
add esp, 8
push dword [ebp - 0x64]
lea eax, [ebp - 0x40]
push eax
call fcn.0043a6a0
mov dword [ebp - 4], 3
cmp dword [ebp - 0x30], 0
jne 0x4366a2
xor bl, bl
jmp 0x436714
push 3
xor eax, eax
mov dword [ebp - 0x18], 0
push 0x47584c
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00409b10
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
lea edx, [ebp - 0x40]
call fcn.00430420
mov edx, dword [ebp - 0x14]
add esp, 4
cmp edx, 8
jb 0x436712
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x436708
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x436708
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00461242
add esp, 8
mov bl, 1
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x43674a
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x436740
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x436740
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00461242
add esp, 8
mov al, bl
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.00461231
mov esp, ebp
pop ebp
ret