Function at 0x430580
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43704c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8d0
mov eax, dword [0x44a160]
push ebx
mov dword [esp + 0x8cc], eax
mov eax, dword [ebp + 8]
test eax, eax
push esi
push edi
mov esi, ecx
je 0x430c1c
cmp word [ebp + 0xc], 0x64
ja 0x430c1c
xor eax, eax
mov word [esp + 0x2b0], 0
mov ecx, 0x81
lea edi, [esp + 0x2b2]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x2b0]
push 0x104
push eax
call dword [sym.imp.ServiceCore.dll_public:_static_bool___cdecl_CWHService::GetWorkDirectory_wchar_t__const__unsigned_short_int_]
mov al, byte [ebp + 0x10]
add esp, 8
test al, al
lea ebx, [esi + 0x1184]
je 0x43061a
mov ecx, dword [ebp + 8]
push ecx
lea edx, [esp + 0x2b4]
push edx
push str._s_sAvertCheatMode
jmp 0x43062b
mov eax, dword [ebp + 8]
push eax
lea ecx, [esp + 0x2b4]
push ecx
push str._s_s
push 0x104
push ebx
call dword [sym.imp.MSVCR71.dll__snwprintf]
add esp, 0x14
mov word [esp + 0xa8], 0
xor eax, eax
mov ecx, 0x81
lea edi, [esp + 0xaa]
push ebx
rep stosd dword es:[edi], eax
push str._sTableResource.INI
lea edx, [esp + 0xb0]
push 0x104
push edx
stosw word es:[edi], ax
call dword [sym.imp.MSVCR71.dll__snwprintf]
mov al, byte [ebp + 0x10]
add esp, 0x10
test al, al
je 0x43074e
xor eax, eax
mov word [esp + 0x4b8], 0
mov ecx, 0x81
lea edi, [esp + 0x4ba]
rep stosd dword es:[edi], eax
push ebx
push str._sTable.png
stosw word es:[edi], ax
lea eax, [esp + 0x4c0]
push 0x104
push eax
call dword [sym.imp.MSVCR71.dll__snwprintf]
add esp, 0x10
lea ecx, [esp + 0x6c0]
call dword [sym.imp.WHImage.dll_public:_void___thiscall_CPngImage::constructor_void_]
lea ecx, [esp + 0x4b8]
push ecx
lea ecx, [esp + 0x6c4]
mov dword [esp + 0x8e8], 0
call dword [sym.imp.WHImage.dll_public:_bool___thiscall_CPngImage::LoadImageW_wchar_t_const__]
test al, al
jne 0x430736
lea edx, [esp + 0x2b0]
push edx
push str._sAvertCheatMode
xor eax, eax
push 0x104
mov ecx, 0x82
mov edi, ebx
push ebx
rep stosd dword es:[edi], eax
call dword [sym.imp.MSVCR71.dll__snwprintf]
push ebx
xor eax, eax
mov ecx, 0x82
lea edi, [esp + 0xbc]
push str._sTableResource.INI
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc0]
push 0x104
push eax
call dword [sym.imp.MSVCR71.dll__snwprintf]
add esp, 0x20
lea ecx, [esp + 0x6c0]
mov dword [esp + 0x8e4], 0xffffffff
call dword [sym.imp.WHImage.dll_public_virtual:_void___thiscall_CPngImage::destructor_void_]
lea ecx, [esp + 0xa8]
push ecx
push str.Color_Name
push str.Color
lea edx, [esi + 0xfe8]
push edx
mov ecx, esi
call fcn.0042cb10
lea eax, [esp + 0xa8]
push eax
push str.Color_Member
push str.Color
lea ecx, [esi + 0xfec]
push ecx
mov ecx, esi
call fcn.0042cb10
lea edx, [esp + 0xa8]
push edx
push str.Color_Master
push str.Color
lea eax, [esi + 0xff0]
push eax
mov ecx, esi
call fcn.0042cb10
lea ecx, [esp + 0xa8]
push ecx
push str.Point_Lock
push str.Position
lea edx, [esi + 0x30]
push edx
mov ecx, esi
call fcn.0042ca50
lea eax, [esp + 0xa8]
push eax
push str.Point_Enter
push str.Position
lea ecx, [esi + 0x38]
push ecx
mov ecx, esi
call fcn.0042ca50
lea edx, [esp + 0xa8]
push edx
push str.Point_TableID
push str.Position
lea eax, [esi + 0x40]
push eax
mov ecx, esi
call fcn.0042ca50
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea ecx, [esp + 0xa8]
push ecx
push 1
push str.ShowUser
push str.Attribute
call edi
dec eax
lea edx, [esp + 0xa8]
push edx
neg eax
push 1
sbb al, al
push str.ShowChair
inc al
push str.Attribute
mov byte [esi + 0x1c], al
call edi
dec eax
neg eax
sbb al, al
inc al
mov byte [esi + 0x1e], al
lea eax, [esp + 0xa8]
push eax
push 1
push str.ShowTable
push str.Attribute
call edi
dec eax
neg eax
sbb al, al
inc al
lea ecx, [esp + 0xa8]
push ecx
push 1
push str.ShowFocus
push str.Attribute
mov byte [esi + 0x1f], al
call edi
dec eax
lea edx, [esp + 0xa8]
push edx
neg eax
push 0
sbb al, al
push str.ShowEnter
inc al
push str.Attribute
mov byte [esi + 0x20], al
call edi
dec eax
neg eax
sbb al, al
inc al
mov byte [esi + 0x1d], al
lea eax, [esp + 0xa8]
push eax
push 0
push str.CustomUser
push str.Attribute
call edi
dec eax
lea ecx, [esp + 0xa8]
push ecx
neg eax
push 1
sbb al, al
push str.ShowTableID
inc al
push str.Attribute
mov byte [esi + 0x21], al
call edi
dec eax
lea edx, [esp + 0xa8]
push edx
neg eax
push 1
sbb al, al
push str.RenderImage
inc al
push str.Attribute
mov byte [esi + 0x22], al
call edi
dec eax
neg eax
sbb al, al
inc al
mov byte [esi + 0x23], al
lea eax, [esp + 0xa8]
push eax
push 2
push str.TableItemCount
push str.Attribute
call edi
mov word [esi + 0x24], ax
movzx eax, word [ebp + 0xc]
lea ecx, [esp + 0xa8]
push ecx
push eax
push str.ChairItemCount
push str.Attribute
mov dword [esp + 0x30], eax
call edi
lea edx, [esp + 0xa8]
push edx
push 1
push str.UserGenreCount
push str.Attribute
mov word [esi + 0x26], ax
call edi
mov word [esi + 0x28], ax
lea eax, [esp + 0xa8]
push eax
push 1
push str.TableGenreCount
push str.Attribute
call edi
lea ecx, [esp + 0xa8]
push ecx
push 1
push str.ChairGenreCount
push str.Attribute
mov word [esi + 0x2a], ax
call edi
mov word [esi + 0x2c], ax
call dword [sym.imp.SkinControl.dll_public:_static_class_CSkinRenderManager____cdecl_CSkinRenderManager::GetInstance_void_]
push eax
mov ecx, esi
call fcn.00430150
test al, al
je 0x430c1c
lea edi, [esi + 0x15d4]
mov ecx, edi
call dword [sym.imp.WHImage.dll_public:_bool___thiscall_CPngImage::IsNull_void_]
test al, al
mov ebx, dword [sym.imp.WHImage.dll_public:_int___thiscall_CPngImage::GetHeight_void_]
jne 0x4309e5
mov ecx, edi
call ebx
mov ecx, edi
mov dword [esp + 0x10], eax
call dword [sym.imp.WHImage.dll_public:_int___thiscall_CPngImage::GetWidth_void_]
cdq
and edx, 3
add eax, edx
mov edx, dword [esp + 0x10]
sar eax, 2
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], edx
lea edi, [esi + 0x13c4]
mov ecx, edi
call dword [sym.imp.WHImage.dll_public:_bool___thiscall_CPngImage::IsNull_void_]
test al, al
jne 0x430a1f
mov ecx, edi
call ebx
movzx ecx, word [esi + 0x2c]
cdq
idiv ecx
mov ecx, edi
mov dword [esp + 0x10], eax
call dword [sym.imp.WHImage.dll_public:_int___thiscall_CPngImage::GetWidth_void_]
movzx ecx, word [esi + 0x26]
cdq
idiv ecx
mov edx, dword [esp + 0x10]
mov dword [esi + 8], edx
mov dword [esi + 4], eax
lea edi, [esi + 0x17e4]
mov ecx, edi
call dword [sym.imp.WHImage.dll_public:_bool___thiscall_CPngImage::IsNull_void_]
test al, al
jne 0x430a59
mov ecx, edi
call ebx
movzx ecx, word [esi + 0x2a]
cdq
idiv ecx
mov ecx, edi
mov dword [esp + 0x10], eax
call dword [sym.imp.WHImage.dll_public:_int___thiscall_CPngImage::GetWidth_void_]
movzx ecx, word [esi + 0x24]
cdq
idiv ecx
mov edx, dword [esp + 0x10]
mov dword [esi + 0x10], edx
mov dword [esi + 0xc], eax
lea edi, [esi + 0x1c2c]
mov ecx, edi
call dword [sym.imp.WHImage.dll_public:_bool___thiscall_CPngImage::IsNull_void_]
test al, al
jne 0x430a8d
mov ecx, edi
call ebx
movzx ecx, word [esi + 0x28]
cdq
idiv ecx
mov ecx, edi
mov ebx, eax
call dword [sym.imp.WHImage.dll_public:_int___thiscall_CPngImage::GetWidth_void_]
movzx ecx, word [esi + 0x26]
cdq
idiv ecx
mov dword [esi + 8], ebx
mov dword [esi + 4], eax
cmp byte [esi + 0x1f], 1
jne 0x430c18
cmp word [ebp + 0xc], 0
jbe 0x430c18
mov ecx, dword [esp + 0x20]
lea edx, [esi + 0xff4]
lea eax, [esi + 0x48]
mov dword [esp + 0x14], 1
lea ebx, [esi + 0x9ac]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ecx
lea esp, [esp]
xor eax, eax
mov word [esp + 0x28], 0
mov ecx, 0x1f
lea edi, [esp + 0x2a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp byte [esi + 0x1c], 1
jne 0x430be7
mov edx, dword [esp + 0x14]
mov edi, dword [sym.imp.MSVCR71.dll__snwprintf]
push edx
push str.Rect_Name_d
lea eax, [esp + 0x30]
push 0x40
push eax
call edi
add esp, 0x10
lea ecx, [esp + 0xa8]
push ecx
lea edx, [esp + 0x2c]
push edx
push str.Position
lea eax, [ebx - 0x644]
push eax
mov ecx, esi
call fcn.0042c970
mov ecx, dword [esp + 0x14]
push ecx
push str.Point_Ready_d
lea edx, [esp + 0x30]
push 0x40
push edx
call edi
mov edx, dword [esp + 0x28]
add esp, 0x10
lea eax, [esp + 0xa8]
push eax
lea ecx, [esp + 0x2c]
push ecx
push str.Position
push edx
mov ecx, esi
call fcn.0042ca50
mov eax, dword [esp + 0x14]
push eax
push str.DrawStyle_d
lea ecx, [esp + 0x30]
push 0x40
push ecx
call edi
add esp, 0x10
lea edx, [esp + 0xa8]
push edx
push 0
lea eax, [esp + 0x30]
push eax
push str.Position
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
push edx
push str.Point_Chair_d
mov dword [ecx], eax
lea eax, [esp + 0x30]
push 0x40
push eax
call edi
add esp, 0x10
lea ecx, [esp + 0xa8]
push ecx
lea edx, [esp + 0x2c]
push edx
push str.Position
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
call fcn.0042ca50
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov dword [ebx - 4], ecx
mov dword [ebx], eax
mov edx, dword [esi + 4]
add edx, ecx
mov dword [ebx + 4], edx
mov ecx, dword [esi + 8]
add ecx, eax
mov dword [ebx + 8], ecx
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
add eax, 8
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
add edi, 4
inc edx
add ebx, 0x10
dec eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
jne 0x430ad0
mov al, 1
jmp 0x430c1e
xor al, al
mov ecx, dword [esp + 0x8dc]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x8d4]
call fcn.00433621
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc