Function at 0x480620
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x521840
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push ebp
mov ebp, dword [esp + 0x54]
push esi
push edi
mov ebx, ebp
call fcn.004809b0
push 1
lea eax, [esp + 0x34]
push eax
xor ebx, ebx
push 1
mov ecx, ebp
mov dword [esp + 0x3c], 0x1c
mov dword [esp + 0x40], 1
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
call fcn.004f6ccb
mov ecx, dword [esp + 0x60]
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x64]
mov dword [ebp + 0x100], ecx
mov dword [ebp + 0x108], eax
mov eax, dword [esp + 0x6c]
lea ecx, [ebp + 0x148]
mov dword [ebp + 0x104], edx
call fcn.00483760
mov ecx, dword [0x56b5d8]
mov edx, dword [ecx + 0x1c]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push ebx
push 2
push 0x400
push edx
call edi
mov ecx, dword [0x56b5d8]
test eax, eax
setne al
mov byte [ebp + 0x168], al
mov eax, dword [ebp + 0x100]
push ebx
push eax
mov byte [ebp + 0x784], bl
mov edx, dword [ecx + 0x1c]
push 0x415
push edx
call edi
push eax
lea ecx, [esp + 0x60]
call fcn.00402030
push str.images_bg_top_JXH.png
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x74]
push ecx
mov dword [esp + 0x60], ebx
call fcn.00401450
add esp, 0xc
mov byte [esp + 0x54], 1
mov edi, dword [eax]
mov eax, edi
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x480723
sub eax, esi
push eax
push edi
lea ecx, [esp + 0x1c]
call fcn.00401b10
lea ecx, [ebp + 0x54]
mov byte [esp + 0x54], 2
call fcn.004c7a50
mov edx, dword [eax]
mov esi, 1
push esi
push esi
push ebx
lea ecx, [esp + 0x20]
push ecx
mov ecx, eax
call dword [edx + 0x10]
push eax
lea ecx, [ebp + 0x588]
call fcn.004c8300
mov eax, dword [esp + 0x2c]
mov edi, 0x10
cmp eax, edi
jb 0x48077e
mov edx, dword [esp + 0x18]
push edx
call fcn.004fa776
add esp, 4
mov byte [esp + 0x54], bl
mov eax, dword [esp + 0x6c]
add eax, 0xfffffff0
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4807b0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp + 0x100]
mov ecx, dword [eax + 0x60]
add eax, 0x48
cmp ecx, edi
jb 0x4807c5
mov eax, dword [eax + 4]
jmp 0x4807c8
add eax, 4
push eax
push str._s.ini
lea edi, [esp + 0x64]
call fcn.0046d1f0
mov eax, dword [esp + 0x64]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
add esp, 8
push eax
push 0xffffffffffffffff
push str.OneTableRoom
push str.layout
call edi
cmp eax, esi
jne 0x4807fe
mov byte [ebp + 0x784], 1
mov eax, dword [ebp + 0x108]
cmp dword [eax + 0x28], esi
jne 0x48085e
cmp byte [ebp + 0x784], bl
je 0x48085e
mov ecx, dword [eax + 0x2c]
mov dword [eax + 0x28], ecx
mov edx, dword [ebp + 0x108]
mov dword [edx + 0x2c], esi
mov eax, dword [ebp + 0x108]
cmp dword [eax + 0x28], esi
jbe 0x480851
jmp 0x480830
mov ebx, dword [ebp + 0x14c]
lea eax, [ebp + 0x148]
call fcn.00450ea0
mov ecx, dword [ebp + 0x108]
mov eax, dword [ecx + 0x28]
inc esi
cmp esi, eax
jb 0x480830
xor ebx, ebx
lea eax, [ebp + 0x708]
mov cl, 1
call fcn.00422650
push 0x56b5e8
lea ecx, [esp + 0x14]
call fcn.00402030
push 0xb
push str.config.ini
lea ecx, [esp + 0x18]
mov byte [esp + 0x5c], 3
call fcn.00401a20
mov edx, dword [esp + 0x10]
push edx
push ebx
push str.mode
push str.roommode
call edi
push eax
push ebp
call fcn.00482c90
mov eax, dword [ebp + 0x62c]
cmp eax, ebx
lea esi, [ebp + 0x628]
je 0x4808c5
mov ecx, dword [esp + 0x68]
mov ebx, dword [esi + 8]
push ecx
call fcn.00485190
mov eax, dword [esi + 4]
push eax
call fcn.004fa776
add esp, 8
xor ebx, ebx
mov edx, dword [esp + 0x68]
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edx + 0x28]
sub esp, 0x10
mov eax, esp
mov dword [esp + 0x70], esp
push ecx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
call fcn.00483ce0
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov ecx, dword [esi + 4]
cmp ecx, ebx
je 0x480947
mov eax, dword [esi + 8]
sub eax, ecx
mov ecx, dword [esp + 0x60]
sar eax, 4
cmp ecx, eax
jae 0x480947
mov edi, dword [ebp + 0x62c]
add edi, dword [esp + 0x64]
mov ecx, dword [esp + 0x68]
mov edx, dword [ecx + 0x2c]
mov eax, 4
cmp eax, edx
sbb ecx, ecx
and ecx, 2
push ebx
add ecx, eax
call fcn.00483ac0
mov ecx, dword [esp + 0x60]
mov eax, dword [esp + 0x64]
inc ecx
add eax, 0x10
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], eax
jmp 0x4808f5
mov byte [esp + 0x54], bl
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x480969
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov dword [esp + 0x54], 0xffffffff
mov eax, dword [esp + 0x5c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48098f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x48
ret 0x14