Function at 0x423b10
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4d7161
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x536f50]
xor eax, esp
mov dword [esp + 0x148], eax
push ebx
push esi
push edi
mov eax, dword [0x536f50]
xor eax, esp
push eax
lea eax, [esp + 0x15c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x16c]
cmp dword [esi + 0x4c], 0
je 0x423e13
mov edi, 8
cmp dword [esi + 0xc0], edi
jb 0x423b70
mov eax, dword [esi + 0xac]
jmp 0x423b76
lea eax, [esi + 0xac]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x423e5d
push 1
lea ecx, [esp + 0x2c]
call fcn.00409620
mov dword [esp + 0x164], 0
cmp dword [esi + 0xc0], edi
jb 0x423bab
mov eax, dword [esi + 0xac]
jmp 0x423bb1
lea eax, [esi + 0xac]
push 0x40
push 0x21
push eax
lea ecx, [esp + 0x3c]
call fcn.0040a700
test eax, eax
jne 0x423be6
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 4]
mov eax, dword [esp + ecx + 0x30]
lea ecx, [esp + ecx + 0x28]
or eax, 2
cmp dword [ecx + 0x28], 0
jne 0x423bde
or eax, 4
push 0
push eax
call fcn.0040ccf0
cmp dword [esp + 0x7c], 0
je 0x423e2b
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0xf0]
call fcn.0043ef90
lea edx, [esp + 0xd0]
push edx
lea ecx, [esp + 0xf0]
call fcn.0043eea0
mov byte [esp + 0x164], 1
cmp dword [esi + 0x50], edi
jb 0x423c28
mov esi, dword [esi + 0x3c]
jmp 0x423c2b
add esi, 0x3c
lea eax, [esp + 0xb4]
push esi
push eax
call fcn.004d3da0
add esp, 8
mov edx, dword [esp + 0xe8]
mov eax, dword [esp + 0xd4]
mov byte [esp + 0x164], 2
mov ebx, eax
cmp edx, 0x10
jae 0x423c60
lea ebx, [esp + 0xd4]
mov esi, dword [esp + 0xe4]
add ebx, esi
je 0x423c8f
mov ecx, eax
cmp edx, 0x10
jae 0x423c79
lea ecx, [esp + 0xd4]
cmp ecx, ebx
ja 0x423c8f
cmp edx, 0x10
jae 0x423c89
lea eax, [esp + 0xd4]
add eax, esi
cmp ebx, eax
jbe 0x423c94
call fcn.0047b9cb
lea ecx, [esp + 0x20]
lea edi, [esp + 0xd0]
push ecx
mov ecx, edi
call fcn.00401520
lea edx, [esp + 0x10]
push edx
mov ecx, edi
mov esi, eax
call fcn.00401520
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push 0x47bdfa
push ecx
mov ecx, dword [eax + 4]
push edx
mov edx, dword [eax]
push ebx
push edi
push ecx
push edx
lea eax, [esp + 0x34]
push eax
call fcn.00420c80
mov ecx, dword [esp + 0xec]
mov esi, dword [esp + 0xd8]
add esp, 0x20
mov eax, esi
cmp ecx, 0x10
jae 0x423cf3
lea eax, [esp + 0xb8]
mov edx, dword [esp + 0xc8]
lea edi, [eax + edx]
test edi, edi
je 0x423d27
mov eax, esi
cmp ecx, 0x10
jae 0x423d0f
lea eax, [esp + 0xb8]
cmp eax, edi
ja 0x423d27
mov eax, esi
cmp ecx, 0x10
jae 0x423d21
lea eax, [esp + 0xb8]
add eax, edx
cmp edi, eax
jbe 0x423d2c
call fcn.0047b9cb
lea ecx, [esp + 0x18]
lea ebx, [esp + 0xb4]
push ecx
mov ecx, ebx
call fcn.00401520
lea edx, [esp + 0x10]
push edx
mov ecx, ebx
mov esi, eax
call fcn.00401520
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push 0x47bdfa
push ecx
mov ecx, dword [eax + 4]
push edx
mov edx, dword [eax]
push edi
push ebx
push ecx
push edx
lea eax, [esp + 0x3c]
push eax
call fcn.00420c80
mov ecx, dword [esp + 0xd8]
add esp, 0x20
cmp dword [esp + 0xcc], 0x10
jae 0x423d87
lea ecx, [esp + 0xb8]
cmp dword [esp + 0xe8], 0x10
mov eax, dword [esp + 0xd4]
jae 0x423da0
lea eax, [esp + 0xd4]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x423dc0
test dl, dl
je 0x423dbc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x423dc0
add eax, 2
add ecx, 2
test dl, dl
jne 0x423da0
xor eax, eax
jmp 0x423dc5
sbb eax, eax
sbb eax, 0xffffffff
lea ecx, [esp + 0xb4]
test eax, eax
jne 0x423e1a
call fcn.00403df0
lea ecx, [esp + 0xd0]
call fcn.00403df0
lea ecx, [esp + 0x80]
mov dword [esp + 0x164], 0xffffffff
call fcn.004096d0
lea ecx, [esp + 0x80]
push ecx
mov dword [esp + 0x84], vtable.std::ios_base.0
call fcn.0044280f
add esp, 4
mov eax, 1
jmp 0x423e5f
call fcn.00403df0
lea ecx, [esp + 0xd0]
call fcn.00403df0
lea ecx, [esp + 0x80]
mov dword [esp + 0x164], 0xffffffff
call fcn.004096d0
lea edx, [esp + 0x80]
push edx
mov dword [esp + 0x84], vtable.std::ios_base.0
call fcn.0044280f
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x15c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.0047a885
add esp, 0x158
ret