Function at 0x437710
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4b4
mov eax, dword [0x457194]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
push esi
mov dword [esp + 0x4b8], eax
push edi
mov esi, ecx
je 0x437c90
cmp word [ebp + 0xc], 0x64
ja 0x437c90
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_]
push ebx
lea ecx, [esp + 0x2bc]
push ecx
push 0x44c218
lea edx, [esi + 0x1184]
push 0x104
push edx
call dword [sym.imp.MSVCR71.dll__snwprintf]
xor eax, eax
mov word [esp + 0xc4], 0
mov ecx, 0x81
lea edi, [esp + 0xc6]
rep stosd dword es:[edi], eax
push ebx
stosw word es:[edi], ax
lea eax, [esp + 0x2d0]
push eax
push str._s_sTableResource.INI
lea ecx, [esp + 0xd0]
push 0x104
push ecx
call dword [sym.imp.MSVCR71.dll__snwprintf]
add esp, 0x30
lea edx, [esp + 0xa8]
push edx
push str.Color_Name
push str.Color
lea eax, [esi + 0xfe8]
push eax
mov ecx, esi
call fcn.00433780
lea ecx, [esp + 0xa8]
push ecx
push str.Color_Member
push str.Color
lea edx, [esi + 0xfec]
push edx
mov ecx, esi
call fcn.00433780
lea eax, [esp + 0xa8]
push eax
push str.Color_Master
push str.Color
lea ecx, [esi + 0xff0]
push ecx
mov ecx, esi
call fcn.00433780
lea edx, [esp + 0xa8]
push edx
push str.Point_Lock
push str.Position
lea eax, [esi + 0x30]
push eax
mov ecx, esi
call fcn.004336c0
lea ecx, [esp + 0xa8]
push ecx
push str.Point_Enter
push str.Position
lea edx, [esi + 0x38]
push edx
mov ecx, esi
call fcn.004336c0
lea eax, [esp + 0xa8]
push eax
push str.Point_TableID
push str.Position
lea ecx, [esi + 0x40]
push ecx
mov ecx, esi
call fcn.004336c0
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea edx, [esp + 0xa8]
push edx
push 1
push str.ShowUser
push str.Attribute
call ebx
dec eax
neg eax
sbb al, al
inc al
mov byte [esi + 0x1c], al
lea eax, [esp + 0xa8]
push eax
push 1
push str.ShowChair
push str.Attribute
call ebx
dec eax
lea ecx, [esp + 0xa8]
push ecx
neg eax
push 1
sbb al, al
push str.ShowTable
inc al
push str.Attribute
mov byte [esi + 0x1e], al
call ebx
dec eax
lea edx, [esp + 0xa8]
push edx
neg eax
push 1
sbb al, al
push str.ShowFocus
inc al
push str.Attribute
mov byte [esi + 0x1f], al
call ebx
dec eax
neg eax
sbb al, al
inc al
mov byte [esi + 0x20], al
lea eax, [esp + 0xa8]
push eax
push 0
push str.ShowEnter
push str.Attribute
call ebx
dec eax
lea ecx, [esp + 0xa8]
push ecx
neg eax
push 0
sbb al, al
push str.CustomUser
inc al
push str.Attribute
mov byte [esi + 0x1d], al
call ebx
dec eax
lea edx, [esp + 0xa8]
push edx
neg eax
push 1
sbb al, al
push str.ShowTableID
inc al
push str.Attribute
mov byte [esi + 0x21], al
call ebx
dec eax
neg eax
sbb al, al
inc al
mov byte [esi + 0x22], al
lea eax, [esp + 0xa8]
push eax
push 1
push str.RenderImage
push str.Attribute
call ebx
dec eax
lea ecx, [esp + 0xa8]
push ecx
neg eax
push 2
sbb al, al
push str.TableItemCount
inc al
push str.Attribute
mov byte [esi + 0x23], al
call ebx
movzx edi, word [ebp + 0xc]
lea edx, [esp + 0xa8]
push edx
push edi
push str.ChairItemCount
push str.Attribute
mov word [esi + 0x24], ax
call ebx
mov word [esi + 0x26], ax
lea eax, [esp + 0xa8]
push eax
push 1
push str.UserGenreCount
push str.Attribute
call ebx
lea ecx, [esp + 0xa8]
push ecx
push 1
push str.TableGenreCount
push str.Attribute
mov word [esi + 0x28], ax
call ebx
lea edx, [esp + 0xa8]
push edx
push 1
push str.ChairGenreCount
push str.Attribute
mov word [esi + 0x2a], ax
call ebx
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.00437200
test al, al
je 0x437c90
lea ebx, [esi + 0x138c]
mov ecx, ebx
call dword [sym.imp.WHImage.dll_public:_bool___thiscall_CPngImage::IsNull_void_]
test al, al
jne 0x437a63
mov ecx, ebx
call dword [sym.imp.WHImage.dll_public:_int___thiscall_CPngImage::GetHeight_void_]
mov ecx, ebx
mov dword [esp + 0x10], 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 eax, dword [esp + 0x10]
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x1398]
test eax, eax
je 0x437a8f
movzx ecx, word [esi + 0x2c]
mov eax, dword [esi + 0x13a4]
cdq
idiv ecx
movzx ebx, word [esi + 0x26]
mov ecx, eax
mov eax, dword [esi + 0x13a0]
cdq
idiv ebx
mov dword [esi + 8], ecx
mov dword [esi + 4], eax
mov eax, dword [esi + 0x13c8]
test eax, eax
je 0x437abb
movzx ecx, word [esi + 0x2a]
mov eax, dword [esi + 0x13d4]
cdq
idiv ecx
movzx ebx, word [esi + 0x24]
mov ecx, eax
mov eax, dword [esi + 0x13d0]
cdq
idiv ebx
mov dword [esi + 0x10], ecx
mov dword [esi + 0xc], eax
lea ebx, [esi + 0x1424]
mov ecx, ebx
call dword [sym.imp.WHImage.dll_public:_bool___thiscall_CPngImage::IsNull_void_]
test al, al
jne 0x437af9
mov ecx, ebx
call dword [sym.imp.WHImage.dll_public:_int___thiscall_CPngImage::GetHeight_void_]
movzx ecx, word [esi + 0x28]
cdq
idiv ecx
mov ecx, ebx
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
cmp byte [esi + 0x1f], 1
jne 0x437c79
cmp word [ebp + 0xc], 0
jbe 0x437c79
lea eax, [esi + 0xff4]
lea ecx, [esi + 0x48]
mov dword [esp + 0x14], 1
lea ebx, [esi + 0x9ac]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], edi
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 0x437c48
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.004335e0
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 + 0x2c]
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.004336c0
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 + 0x18]
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.004336c0
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 + 0x1c]
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
add eax, 8
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
add edi, 4
inc edx
add ebx, 0x10
dec eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
jne 0x437b31
mov al, 1
mov ecx, dword [esp + 0x4bc]
call fcn.0043bb6f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esp + 0x4bc]
xor al, al
call fcn.0043bb6f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8