Function at 0x454370
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x46eb2f
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48b670]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebp, ecx
mov dword [esp + 0x14], ebp
call fcn.00405650
mov dword [esp + 0x28], 0
lea edi, [ebp + 0x24]
call fcn.004194d8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4543c7
push 0x80004005
call fcn.00401f50
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
lea esi, [ebp + 0x28]
mov ecx, esi
mov byte [esp + 0x28], 1
call fcn.0040c840
lea ecx, [ebp + 0x48]
mov byte [esp + 0x28], 2
call fcn.004533c0
lea ecx, [ebp + 0x60]
mov byte [esp + 0x28], 3
call fcn.004533c0
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x30]
mov dword [ebp + 0x44], ecx
mov dword [edx], 0
mov eax, dword [ebx]
push eax
mov byte [esp + 0x2c], 4
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x454443
mov eax, dword [ebp + 0x44]
test eax, eax
je 0x454693
push str.cmMultiLanguage___PathFileExists_failed
push eax
call fcn.00451cb0
add esp, 8
jmp 0x454693
push ebx
mov ecx, edi
call fcn.004037c0
push 1
lea eax, [esp + 0x3c]
push eax
mov ecx, edi
call fcn.0042aa3b
push 0x474644
push eax
call fcn.0042aa23
mov bl, al
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x454489
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4544e7
push 1
lea ecx, [esp + 0x3c]
push ecx
mov ecx, edi
call fcn.0042aa3b
push 0x479080
push eax
call fcn.0042aa0c
mov bl, al
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
add esp, 8
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4544cb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x474644
mov ecx, edi
test bl, bl
je 0x4544e2
push 0x479080
call fcn.00451410
jmp 0x4544e7
call fcn.00416999
mov eax, dword [esi + 0x10]
mov dword [esp + 0x38], eax
cmp dword [esi + 0xc], eax
jbe 0x4544f8
call fcn.00430a7b
mov edi, dword [esi + 0xc]
mov ebx, dword [esi]
cmp edi, dword [esi + 0x10]
jbe 0x454507
call fcn.00430a7b
mov ecx, dword [esp + 0x38]
mov eax, dword [esi]
push ecx
push ebx
push edi
push eax
lea edx, [esp + 0x28]
push edx
mov ecx, esi
call fcn.00453420
mov edi, dword [esp + 0x34]
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0xc]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
xor ebx, ebx
add eax, edx
je 0x454577
mov dword [esp + 0x38], ebx
cmp ebx, eax
jb 0x454548
call fcn.00430a7b
mov eax, dword [edi + 0xc]
add eax, dword [esp + 0x38]
mov ecx, esi
push eax
call fcn.0040c7a0
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0xc]
add dword [esp + 0x38], 0xc
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
inc ebx
add eax, edx
cmp ebx, eax
jb 0x454548
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x4545ad
mov eax, dword [ebp + 0x44]
test eax, eax
je 0x454693
push str.cmMultiLanguage___m_vecLangProperty.size_0
push eax
call fcn.00451cb0
add esp, 8
jmp 0x454693
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
lea esi, [ebp + 0x48]
mov byte [ebp + 0x20], al
mov byte [ebp + 0x21], 0xff
mov edi, dword [esi + 0x10]
cmp dword [esi + 0xc], edi
jbe 0x4545da
call fcn.00430a7b
mov ebx, dword [esi + 0xc]
mov ecx, dword [esi]
mov dword [esp + 0x18], ecx
cmp ebx, dword [esi + 0x10]
jbe 0x4545ed
call fcn.00430a7b
mov edx, dword [esp + 0x18]
mov eax, dword [esi]
push edi
push edx
push ebx
push eax
lea eax, [esp + 0x28]
push eax
mov ecx, esi
call fcn.00452030
mov edi, dword [ebp + 0x70]
cmp dword [ebp + 0x6c], edi
lea esi, [ebp + 0x60]
jbe 0x454613
call fcn.00430a7b
mov ebx, dword [esi + 0xc]
mov ecx, dword [esi]
mov dword [esp + 0x18], ecx
cmp ebx, dword [esi + 0x10]
jbe 0x454626
call fcn.00430a7b
mov edx, dword [esp + 0x18]
mov eax, dword [esi]
push edi
push edx
push ebx
push eax
lea eax, [esp + 0x28]
push eax
mov ecx, esi
call fcn.00452030
xor esi, esi
push 0x24
mov dword [ebp + 0x40], esi
call fcn.0041143a
add esp, 4
mov dword [esp + 0x38], eax
mov byte [esp + 0x28], 5
cmp eax, esi
je 0x454661
mov ecx, eax
call fcn.0044f4a0
jmp 0x454663
xor eax, eax
mov byte [esp + 0x28], 4
mov dword [ebp + 0x40], eax
cmp eax, esi
jne 0x454686
mov eax, dword [ebp + 0x44]
cmp eax, esi
je 0x454693
push str.cmMultiLanguage___new_iniFile_failed
push eax
call fcn.00451cb0
add esp, 8
jmp 0x454693
mov ecx, dword [esp + 0x3c]
mov dword [ebp + 0x78], esi
mov dword [ecx], 1
mov eax, ebp
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x10