Function at 0x402fc0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x40728b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x248
push ebx
push ebp
push esi
mov ebp, dword [sym.imp.MSVCRT.dll__mbsstr]
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0x4c], esi
mov dword [esi], 0x408b68
mov al, byte [0x40b618]
test al, 0x80
jne 0x403134
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [0x40b610], eax
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x51]
mov byte [esp + 0x50], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.00402f70
push eax
push str._sminigame.ini
lea eax, [esp + 0x58]
push 0x103
push eax
call fcn.00402470
xor ecx, ecx
add esp, 0x10
mov dword [esp + 0x25], ecx
lea edx, [esp + 0x50]
mov dword [esp + 0x29], ecx
push edx
mov dword [esp + 0x31], ecx
lea eax, [esp + 0x28]
push 0x14
mov dword [esp + 0x39], ecx
push eax
push 0x40b9b8
mov word [esp + 0x45], cx
push 0x40b3dc
push str.setting
mov byte [esp + 0x3c], bl
mov byte [esp + 0x4f], cl
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [esp + 0x24], bl
je 0x40312d
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.MSVCRT.dll__mbslwr]
lea edx, [esp + 0x28]
push 0x40b3d8
push edx
call ebp
add esp, 0xc
test eax, eax
je 0x4030ab
or byte [0x40b618], 4
lea eax, [esp + 0x24]
push 0x40b3d4
push eax
call ebp
add esp, 8
test eax, eax
je 0x4030c5
or byte [0x40b618], 0x40
lea ecx, [esp + 0x24]
push 0x40b3d0
push ecx
call ebp
add esp, 8
test eax, eax
je 0x4030df
or byte [0x40b618], 2
lea edx, [esp + 0x24]
push str.tv_e
push edx
call ebp
add esp, 8
test eax, eax
je 0x4030f9
or byte [0x40b618], 1
lea eax, [esp + 0x24]
push 0x40b3c8
push eax
call ebp
add esp, 8
test eax, eax
je 0x403113
or byte [0x40b618], 8
lea ecx, [esp + 0x24]
push 0x40b3c4
push ecx
call ebp
add esp, 8
test eax, eax
je 0x40312d
or byte [0x40b618], 0x10
or byte [0x40b618], 0x80
mov dword [esi], 0x408b64
mov al, byte [0x40be58]
test al, 0x80
mov dword [esp + 0x260], ebx
jne 0x403330
xor edx, edx
push 0xfff
mov dword [esp + 0x3d], edx
push 0x40b3c0
mov dword [esp + 0x45], edx
lea eax, [esp + 0x40]
mov dword [esp + 0x49], edx
push 0x13
mov dword [esp + 0x51], edx
push eax
mov word [esp + 0x59], dx
mov byte [esp + 0x48], bl
mov byte [esp + 0x5b], dl
call fcn.00402470
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x165]
mov byte [esp + 0x164], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
add esp, 0x10
stosb byte es:[edi], al
call fcn.00402f70
push eax
push str._sminigame.ini
lea ecx, [esp + 0x15c]
push 0x103
push ecx
call fcn.00402470
xor edx, edx
add esp, 0x10
mov dword [esp + 0x11], edx
lea eax, [esp + 0x154]
mov dword [esp + 0x15], edx
push eax
mov dword [esp + 0x1d], edx
lea ecx, [esp + 0x14]
mov dword [esp + 0x21], edx
push 0x14
mov word [esp + 0x29], dx
push ecx
mov byte [esp + 0x2f], dl
push 0x40b9b8
lea edx, [esp + 0x48]
push 0x40b3dc
push edx
mov byte [esp + 0x28], bl
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [esp + 0x10], bl
je 0x4032bb
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.MSVCRT.dll__mbslwr]
lea ecx, [esp + 0x14]
push 0x40b3d8
push ecx
call ebp
add esp, 0xc
test eax, eax
je 0x403232
or byte [0x40be58], 4
lea edx, [esp + 0x10]
push 0x40b3d4
push edx
call ebp
add esp, 8
test eax, eax
je 0x40324c
or byte [0x40be58], 0x40
lea eax, [esp + 0x10]
push 0x40b3d0
push eax
call ebp
add esp, 8
test eax, eax
je 0x403266
or byte [0x40be58], 2
lea ecx, [esp + 0x10]
push str.tv_e
push ecx
call ebp
add esp, 8
test eax, eax
je 0x403280
or byte [0x40be58], 1
lea edx, [esp + 0x10]
push 0x40b3c8
push edx
call ebp
add esp, 8
test eax, eax
je 0x40329a
or byte [0x40be58], 8
lea eax, [esp + 0x10]
push 0x40b3c4
push eax
call ebp
add esp, 8
test eax, eax
je 0x4032bb
mov al, byte [0x40be58]
or al, 0x10
mov byte [0x40be58], al
jmp 0x4032c0
mov al, byte [0x40be58]
mov cl, byte [0x40b618]
test al, 4
jne 0x4032d3
test cl, 4
je 0x4032de
or al, 4
jmp 0x4032d9
test al, 0x40
je 0x4032de
and al, 0xfb
mov byte [0x40be58], al
test al, 2
jne 0x4032eb
test cl, 2
je 0x4032f6
or al, 2
jmp 0x4032f1
test al, 0x40
je 0x4032f6
and al, 0xfd
mov byte [0x40be58], al
test al, 1
jne 0x403303
test cl, 1
je 0x40330e
or al, 1
jmp 0x403309
test al, 0x40
je 0x40330e
and al, 0xfe
mov byte [0x40be58], al
test al, 0x18
jne 0x403329
push 8
mov ecx, esi
call fcn.00404020
push 0x10
mov ecx, esi
call fcn.00404020
mov al, byte [0x40be58]
or al, 0x80
mov byte [0x40be58], al
mov ecx, dword [esp + 0x258]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x254
ret