Function at 0x43e820
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x459a6c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8d0
mov eax, dword [0x4781d0]
push ebx
mov dword [esp + 0x8cc], eax
mov eax, dword [ebp + 8]
test eax, eax
push esi
push edi
mov esi, ecx
je 0x43ea22
cmp word [ebp + 0xc], 0x12c
ja 0x43ea22
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 + 0x3fb0]
je 0x43e8bb
mov ecx, dword [ebp + 8]
push ecx
lea edx, [esp + 0x2b4]
push edx
push str._s_sAvertCheatMode
jmp 0x43e8cc
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 0x43ea4d
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 0x43e9d7
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
push ebx
push str._sWaitDistribute.bmp
lea ecx, [esp + 0x4c0]
push 0x104
push ecx
call dword [sym.imp.MSVCR71.dll__snwprintf]
add esp, 0x10
lea edx, [esp + 0x4b8]
push edx
lea ecx, [esi + 0x4838]
call fcn.0043df10
test eax, eax
lea ecx, [esp + 0x6c0]
mov dword [esp + 0x8e4], 0xffffffff
jge 0x43ea47
call dword [sym.imp.WHImage.dll_public_virtual:_void___thiscall_CPngImage::destructor_void_]
xor al, al
mov ecx, dword [esp + 0x8dc]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x8d4]
call fcn.0044247b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.WHImage.dll_public_virtual:_void___thiscall_CPngImage::destructor_void_]
lea eax, [esp + 0xa8]
push eax
push str.Color_Name
push str.Color
lea ecx, [esi + 0x3af4]
push ecx
mov ecx, esi
call fcn.0043a190
lea edx, [esp + 0xa8]
push edx
push str.Color_Member
push str.Color
lea eax, [esi + 0x3af8]
push eax
mov ecx, esi
call fcn.0043a190
lea ecx, [esp + 0xa8]
push ecx
push str.Color_Master
push str.Color
lea edx, [esi + 0x3afc]
push edx
mov ecx, esi
call fcn.0043a190
lea eax, [esp + 0xa8]
push eax
push str.Point_Lock
push str.Position
lea ecx, [esi + 0x44]
push ecx
mov ecx, esi
call fcn.0043a0d0
lea edx, [esp + 0xa8]
push edx
push str.Point_Enter
push str.Position
lea eax, [esi + 0x4c]
push eax
mov ecx, esi
call fcn.0043a0d0
lea ecx, [esp + 0xa8]
push ecx
push str.Point_TableID
push str.Position
lea edx, [esi + 0x54]
push edx
mov ecx, esi
call fcn.0043a0d0
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea eax, [esp + 0xa8]
push eax
push 1
push str.ShowUser
push str.Attribute
call edi
dec eax
lea ecx, [esp + 0xa8]
push ecx
neg eax
push 1
sbb al, al
push str.ShowChair
inc al
push str.Attribute
mov byte [esi + 0x2c], al
call edi
dec eax
lea edx, [esp + 0xa8]
push edx
neg eax
push 1
sbb al, al
push str.ShowTable
inc al
push str.Attribute
mov byte [esi + 0x2e], al
call edi
dec eax
neg eax
sbb al, al
inc al
mov byte [esi + 0x2f], al
lea eax, [esp + 0xa8]
push eax
push 1
push str.ShowFocus
push str.Attribute
call edi
dec eax
lea ecx, [esp + 0xa8]
push ecx
neg eax
push 0
sbb al, al
push str.ShowEnter
inc al
push str.Attribute
mov byte [esi + 0x30], al
call edi
dec eax
lea edx, [esp + 0xa8]
push edx
neg eax
push 0
sbb al, al
push str.CustomUser
inc al
push str.Attribute
mov byte [esi + 0x2d], al
call edi
dec eax
neg eax
sbb al, al
inc al
mov byte [esi + 0x31], al
lea eax, [esp + 0xa8]
push eax
push 1
push str.ShowTableID
push str.Attribute
call edi
dec eax
lea ecx, [esp + 0xa8]
push ecx
neg eax
push 1
sbb al, al
push str.RenderImage
inc al
push str.Attribute
mov byte [esi + 0x32], al
call edi
dec eax
lea edx, [esp + 0xa8]
push edx
neg eax
push 0
sbb al, al
push str.ShowCellScore
inc al
push str.Attribute
mov byte [esi + 0x33], al
call edi
dec eax
neg eax
sbb al, al
inc al
mov byte [esi + 0x34], al
lea eax, [esp + 0xa8]
push eax
push 1
push str.ShowTableFrame
push str.Attribute
call edi
dec eax
neg eax
sbb al, al
lea ecx, [esp + 0xa8]
inc al
push ecx
mov byte [esi + 0x35], al
push 2
push str.TableItemCount
push str.Attribute
call edi
mov ebx, dword [ebp + 0xc]
mov word [esi + 0x38], ax
movzx eax, bx
lea edx, [esp + 0xa8]
push edx
push eax
push str.ChairItemCount
push str.Attribute
mov dword [esp + 0x20], eax
call edi
mov word [esi + 0x3a], ax
lea eax, [esp + 0xa8]
push eax
push 1
push str.UserGenreCount
push str.Attribute
call edi
lea ecx, [esp + 0xa8]
push ecx
push 1
push str.TableGenreCount
push str.Attribute
mov word [esi + 0x3c], ax
call edi
lea edx, [esp + 0xa8]
push edx
push 1
push str.ChairGenreCount
push str.Attribute
mov word [esi + 0x3e], ax
call edi
mov word [esi + 0x40], ax
mov eax, dword [ebp + 0x10]
push eax
push ebx
call dword [sym.imp.SkinControl.dll_public:_static_class_CSkinRenderManager____cdecl_CSkinRenderManager::GetInstance_void_]
push eax
mov ecx, esi
call fcn.0043dfc0
test al, al
je 0x43ea22
lea edi, [esi + 0x41b8]
mov ecx, edi
call dword [sym.imp.WHImage.dll_public:_bool___thiscall_CPngImage::IsNull_void_]
test al, al
jne 0x43ed23
mov ecx, edi
call dword [sym.imp.WHImage.dll_public:_int___thiscall_CPngImage::GetHeight_void_]
mov ecx, edi
mov ebx, eax
call dword [sym.imp.WHImage.dll_public:_int___thiscall_CPngImage::GetWidth_void_]
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ebx
mov eax, dword [esi + 0x43cc]
test eax, eax
je 0x43ed4f
movzx ecx, word [esi + 0x40]
mov eax, dword [esi + 0x43d8]
cdq
idiv ecx
movzx edi, word [esi + 0x3a]
mov ecx, eax
mov eax, dword [esi + 0x43d4]
cdq
idiv edi
mov dword [esi + 8], ecx
mov dword [esi + 4], eax
mov eax, dword [esi + 0x4604]
test eax, eax
je 0x43ed7b
movzx ecx, word [esi + 0x3e]
mov eax, dword [esi + 0x4610]
cdq
idiv ecx
movzx edi, word [esi + 0x38]
mov ecx, eax
mov eax, dword [esi + 0x460c]
cdq
idiv edi
mov dword [esi + 0x10], ecx
mov dword [esi + 0xc], eax
lea edi, [esi + 0x4ca8]
mov ecx, edi
call dword [sym.imp.WHImage.dll_public:_bool___thiscall_CPngImage::IsNull_void_]
test al, al
jne 0x43edb3
mov ecx, edi
call dword [sym.imp.WHImage.dll_public:_int___thiscall_CPngImage::GetHeight_void_]
movzx ecx, word [esi + 0x3c]
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 + 0x3a]
cdq
idiv ecx
mov dword [esi + 8], ebx
mov dword [esi + 4], eax
cmp byte [esi + 0x2f], 1
jne 0x43efb6
cmp word [ebp + 0xc], 0
jbe 0x43efb6
lea edx, [esi + 0x131c]
lea eax, [esi + 0x2838]
mov dword [esp + 0x1c], edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x10]
lea ecx, [esi + 0x3b00]
lea edx, [esi + 0x9bc]
mov ebx, 1
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
lea ecx, [ecx]
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 + 0x2c], 1
jne 0x43ef7a
mov edi, dword [sym.imp.MSVCR71.dll__snwprintf]
push ebx
push str.Rect_Name_d
lea ecx, [esp + 0x30]
push 0x40
push ecx
call edi
mov ecx, dword [esp + 0x1c]
add esp, 0x10
lea edx, [esp + 0xa8]
push edx
lea eax, [esp + 0x2c]
push eax
add ecx, 0xffffed3c
push str.Position
push ecx
mov ecx, esi
call fcn.00439ff0
push ebx
push str.Point_Ready_d
lea edx, [esp + 0x30]
push 0x40
push edx
call edi
mov edx, dword [esp + 0x24]
add esp, 0x10
lea eax, [esp + 0xa8]
push eax
lea ecx, [esp + 0x2c]
push ecx
push str.Position
add edx, 0xfffff6a0
push edx
mov ecx, esi
call fcn.0043a0d0
push ebx
push str.Point_P_d
lea eax, [esp + 0x30]
push 0x40
push eax
call edi
mov eax, dword [esp + 0x24]
add esp, 0x10
lea ecx, [esp + 0xa8]
push ecx
lea edx, [esp + 0x2c]
push edx
push str.Position
push eax
mov ecx, esi
call fcn.0043a0d0
push ebx
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 ecx, dword [esp + 0x18]
push ebx
push str.Point_Chair_d
lea edx, [esp + 0x30]
push 0x40
push edx
mov dword [ecx], eax
call edi
add esp, 0x10
lea eax, [esp + 0xa8]
push eax
lea ecx, [esp + 0x2c]
push ecx
push str.Position
lea edx, [esp + 0x2c]
push edx
mov ecx, esi
call fcn.0043a0d0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov dword [eax - 4], edx
mov dword [eax], ecx
mov edx, dword [esi + 4]
add edx, dword [esp + 0x20]
push ebx
mov dword [eax + 4], edx
mov edx, dword [esi + 8]
add edx, ecx
push str.Head_Index_d
mov dword [eax + 8], edx
lea eax, [esp + 0x30]
push 0x40
push eax
call edi
add esp, 0x10
lea ecx, [esp + 0xa8]
push ecx
push 0
lea edx, [esp + 0x30]
push edx
push str.Position
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [esp + 0x1c]
mov word [ecx], ax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
add eax, 2
add ecx, 4
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
add edi, 8
add edx, 0x10
inc ebx
dec eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], eax
jne 0x43ee00
mov al, 1
jmp 0x43ea24