Function at 0x546ad0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x1f8
mov eax, dword [0x623ec0]
xor eax, esp
mov dword [esp + 0x1f4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x26ec4], 1
jne 0x546afe
push 0
call fcn.004fe0d0
mov edi, dword [esi + 0x1aa130]
mov dword [esp + 0xc], edi
test edi, edi
je 0x546e05
xorps xmm0, xmm0
xor ecx, ecx
movaps xmmword [esp + 0x10], xmm0
movaps xmmword [esp + 0x20], xmm0
nop
mov al, byte [ecx + 0x7e56b0]
lea ecx, [ecx + 1]
mov byte [esp + ecx + 0xf], al
test al, al
jne 0x546b20
xorps xmm0, xmm0
xor ecx, ecx
movaps xmmword [esp + 0x30], xmm0
movaps xmmword [esp + 0x40], xmm0
mov al, byte [ecx + 0x7e5730]
lea ecx, [ecx + 1]
mov byte [esp + ecx + 0x2f], al
test al, al
jne 0x546b40
xorps xmm0, xmm0
xor ecx, ecx
movaps xmmword [esp + 0x50], xmm0
movaps xmmword [esp + 0x60], xmm0
mov al, byte [ecx + 0x7e57b0]
lea ecx, [ecx + 1]
mov byte [esp + ecx + 0x4f], al
test al, al
jne 0x546b60
mov ecx, dword [esi + 0x1aa13c]
test ecx, ecx
je 0x546b8a
mov eax, dword [ecx]
lea edx, [esp + 0x10]
push 0
push edx
call dword [eax + 0x80]
mov ecx, dword [esi + 0x1aa140]
test ecx, ecx
je 0x546ba3
mov eax, dword [ecx]
lea edx, [esp + 0x30]
push 0
push edx
call dword [eax + 0x80]
mov ecx, dword [esi + 0x1aa144]
test ecx, ecx
je 0x546bbc
mov eax, dword [ecx]
lea edx, [esp + 0x50]
push 0
push edx
call dword [eax + 0x80]
mov eax, dword [edi]
mov edi, dword [ebp + 8]
mov ecx, dword [esp + 0xc]
push edi
call dword [eax + 0x60]
push 0x100
lea eax, [esp + 0xfc]
push 0
push eax
call fcn.00468b40
mov eax, dword [0x6345e4]
add esp, 0xc
test eax, eax
jne 0x546bf5
push str.PotalPos.txt
push str.LangPT_s
jmp 0x546c04
cmp eax, 1
jne 0x546c19
push str.PotalPos.txt
push str.LangEN_s
lea eax, [esp + 0x100]
push 0x80
push eax
call fcn.004459c0
add esp, 0x10
lea eax, [esp + 0xf8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x546c4a
push str.PotalPos.txt
push str.LangPT_s
lea eax, [esp + 0x100]
push 0x80
push eax
call fcn.004459c0
add esp, 0x10
cmp edi, 1
mov edi, dword [ebp + 0xc]
jne 0x546d07
lea ecx, [edi + edi*4]
add ecx, ecx
lea eax, [ecx + 9]
push eax
push ecx
lea eax, [esp + 0x100]
push eax
push dword [esi + 0x1aa134]
call fcn.00591e90
mov eax, dword [esi + 0x1a8760]
test eax, eax
je 0x546c8a
cmp dword [eax + 0x28], 1
jne 0x546c8a
mov ecx, esi
call fcn.0051e3f0
mov eax, dword [esi + 0x1a8758]
test eax, eax
je 0x546ca1
cmp dword [eax + 0x28], 1
jne 0x546ca1
mov ecx, esi
call fcn.0051fe10
mov eax, dword [esi + 0x1a90d8]
test eax, eax
je 0x546cba
cmp dword [eax + 0x28], 1
jne 0x546cba
push 0
mov ecx, esi
call fcn.005469b0
mov eax, dword [esi + 0x27eec]
test eax, eax
je 0x546cd5
cmp dword [eax + 0x28], 1
jne 0x546cd5
push 0
push 0
mov ecx, esi
call fcn.0051c330
mov eax, dword [esi + 0x27ee8]
test eax, eax
je 0x546cec
cmp dword [eax + 0x28], 1
jne 0x546cec
mov ecx, esi
call fcn.0051fec0
mov eax, dword [esi + 0x1a90d4]
test eax, eax
je 0x546d11
cmp dword [eax + 0x28], 1
jne 0x546d11
push 0
mov ecx, esi
call fcn.005460d0
jmp 0x546d11
cmp dword [ebp + 8], 0
je 0x546dea
mov eax, dword [esi + 0x1a8760]
push 0x80
push 0
mov dword [eax + 0x28], 0
lea eax, [esp + 0x80]
push eax
call fcn.00468b40
add esp, 0xc
lea eax, [esp + 0x78]
push 0x7e32b0
push 0x5ec718
push eax
call fcn.00445aa0
add esp, 0xc
lea ecx, [edi + edi*4]
add ecx, ecx
lea eax, [ecx + 9]
push eax
push ecx
lea eax, [esp + 0x100]
push eax
push dword [esi + 0x1aa134]
call fcn.00591e90
cmp edi, 5
ja case.default.0x546d6e
jmp dword [edi*4 + 0x546e1c]
push 0x7e32b0
jmp 0x546d9d
push 0x7e3330
jmp 0x546d9d
push 0x7e33b0
jmp 0x546d9d
push 0x7e3430
jmp 0x546d9d
push 0x7e34b0
jmp 0x546d9d
push 0x7e3530
lea eax, [esp + 0x7c]
push 0x5ec718
push eax
call fcn.00445aa0
add esp, 0xc
mov ecx, dword [esi + 0x1aa138]
lea edx, [esp + 0x78]
push 0
push edx
mov eax, dword [ecx]
call dword [eax + 0x80]
mov ecx, dword [esi + 0x1aa138]
push 0xffffffffffffffff
mov eax, dword [ecx]
call dword [eax + 0x84]
pop edi
pop esi
mov ecx, dword [esp + 0x1f4]
xor ecx, esp
call fcn.0046676f
mov esp, ebp
pop ebp
ret 8
xorps xmm0, xmm0
movups xmmword [esi + 0x272a8], xmm0
movups xmmword [esi + 0x272b8], xmm0
mov dword [esi + 0x272c8], 0
mov ecx, dword [esp + 0x1fc]
pop edi
pop esi
xor ecx, esp
call fcn.0046676f
mov esp, ebp
pop ebp
ret 8