Function at 0x430a80
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
mov eax, dword [0x56d380]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
push 0x53cbd0
mov ecx, ebx
call fcn.0042ad10
mov eax, dword [0x56c260]
mov edx, dword [eax + 0xc]
mov ecx, 0x56c260
call edx
add eax, 0x10
mov dword [ebp - 0x290], eax
mov eax, dword [0x56c260]
mov edx, dword [eax + 0xc]
mov ecx, 0x56c260
call edx
lea edi, [eax + 0x10]
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x28a]
push ecx
mov dword [ebp - 0x298], edi
mov word [ebp - 0x28c], ax
call fcn.00500080
add esp, 0xc
push 0x103
lea edx, [ebp - 0x28c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x28c]
push eax
lea ecx, [ebp - 0x294]
call fcn.0042ad10
push eax
lea ecx, [ebp - 0x290]
call fcn.00423fc0
mov eax, dword [ebp - 0x294]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x430b46
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
mov esi, dword [ebp - 0x290]
push 0x5c
push esi
call fcn.004fe9d5
add esp, 8
test eax, eax
jne 0x430b61
or esi, 0xffffffff
jmp 0x430b67
sub eax, esi
sar eax, 1
mov esi, eax
mov ecx, dword [ebp - 0x290]
push 0x2f
push ecx
call fcn.004fe9d5
add esp, 8
test eax, eax
jne 0x430b81
or eax, 0xffffffff
jmp 0x430b89
sub eax, dword [ebp - 0x290]
sar eax, 1
cmp esi, 0xffffffff
jne 0x430b92
cmp eax, esi
je 0x430bf2
cmp esi, eax
jle 0x430b98
mov eax, esi
push eax
lea edx, [ebp - 0x294]
push edx
lea ecx, [ebp - 0x290]
call fcn.00423b70
push eax
lea ecx, [ebp - 0x298]
call fcn.00423fc0
mov eax, dword [ebp - 0x294]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x430bd9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp - 0x298]
push 0x5c
push edi
call fcn.004fe9d5
push 0x2f
push edi
call fcn.004fe9d5
add esp, 0x10
mov edx, dword [0x56c260]
mov eax, dword [edx + 0xc]
mov ecx, 0x56c260
call eax
push edi
lea ecx, [ebp - 0x298]
add eax, 0x10
push str._sgamever.ini
push ecx
mov dword [ebp - 0x298], eax
call fcn.00428a30
mov esi, dword [ebp - 0x298]
add esp, 0xc
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x430ca7
xor edx, edx
push 0x7e
push edx
lea eax, [ebp - 0x82]
push eax
mov word [ebp - 0x84], dx
call fcn.00500080
add esp, 0xc
push esi
push 0x40
lea ecx, [ebp - 0x84]
push ecx
push 0x53cbd0
push 0x53e398
push str.Game
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [ebp - 0x84]
push edx
lea ecx, [ebp - 0x294]
call fcn.0042ad10
push eax
mov ecx, ebx
call fcn.00423fc0
mov eax, dword [ebp - 0x294]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x430ca7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
pop esi
test edx, edx
jg 0x430cc4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x430ce0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x290]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x430d02
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 4]
pop edi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00500397
mov esp, ebp
pop ebp
ret 4