Function at 0x52d250
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x57becf
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5d480c]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebp, ecx
mov dword [esp + 0x14], ebp
call fcn.004054f0
mov dword [esp + 0x28], 0
lea edi, [ebp + 0x24]
call fcn.0045e1b2
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x52d2a7
push 0x80004005
call fcn.004017e0
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.00423520
lea ecx, [ebp + 0x48]
mov byte [esp + 0x28], 2
call fcn.0052b730
lea ecx, [ebp + 0x60]
mov byte [esp + 0x28], 3
call fcn.0052b790
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 0x52d323
mov eax, dword [ebp + 0x44]
test eax, eax
je 0x52d573
push str.cmMultiLanguage___PathFileExists_failed
push eax
call fcn.00527ec0
add esp, 8
jmp 0x52d573
push ebx
mov ecx, edi
call fcn.0041a0d0
push 1
lea eax, [esp + 0x3c]
push eax
mov ecx, edi
call fcn.00473d97
push 0x592da4
push eax
call fcn.00473bf2
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 0x52d369
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x52d3c7
push 1
lea ecx, [esp + 0x3c]
push ecx
mov ecx, edi
call fcn.00473d97
push 0x5aa098
push eax
call fcn.0047196b
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 0x52d3ab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x592da4
mov ecx, edi
test bl, bl
je 0x52d3c2
push 0x5aa098
call fcn.004186f0
jmp 0x52d3c7
call fcn.0041f1f0
mov eax, dword [esi + 0x10]
mov dword [esp + 0x38], eax
cmp dword [esi + 0xc], eax
jbe 0x52d3d8
call fcn.004945e3
mov edi, dword [esi + 0xc]
mov ebx, dword [esi]
cmp edi, dword [esi + 0x10]
jbe 0x52d3e7
call fcn.004945e3
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.0052b7f0
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 0x52d457
mov dword [esp + 0x38], ebx
cmp ebx, eax
jb 0x52d428
call fcn.004945e3
mov eax, dword [edi + 0xc]
add eax, dword [esp + 0x38]
mov ecx, esi
push eax
call fcn.0042d6f0
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 0x52d428
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 0x52d48d
mov eax, dword [ebp + 0x44]
test eax, eax
je 0x52d573
push str.cmMultiLanguage___m_vecLangProperty.size_0
push eax
call fcn.00527ec0
add esp, 8
jmp 0x52d573
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 0x52d4ba
call fcn.004945e3
mov ebx, dword [esi + 0xc]
mov ecx, dword [esi]
mov dword [esp + 0x18], ecx
cmp ebx, dword [esi + 0x10]
jbe 0x52d4cd
call fcn.004945e3
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.00529570
mov edi, dword [ebp + 0x70]
cmp dword [ebp + 0x6c], edi
lea esi, [ebp + 0x60]
jbe 0x52d4f3
call fcn.004945e3
mov ebx, dword [esi + 0xc]
mov ecx, dword [esi]
mov dword [esp + 0x18], ecx
cmp ebx, dword [esi + 0x10]
jbe 0x52d506
call fcn.004945e3
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.00529640
xor esi, esi
push 0x24
mov dword [ebp + 0x40], esi
call fcn.00450c27
add esp, 4
mov dword [esp + 0x38], eax
mov byte [esp + 0x28], 5
cmp eax, esi
je 0x52d541
mov ecx, eax
call fcn.00524be0
jmp 0x52d543
xor eax, eax
mov byte [esp + 0x28], 4
mov dword [ebp + 0x40], eax
cmp eax, esi
jne 0x52d566
mov eax, dword [ebp + 0x44]
cmp eax, esi
je 0x52d573
push str.cmMultiLanguage___new_iniFile_failed
push eax
call fcn.00527ec0
add esp, 8
jmp 0x52d573
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