Function at 0x452010
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x462cca
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8c8
mov eax, dword [0x47f1f0]
mov dword [ebp - 0x10], eax
push edi
mov dword [ebp - 0x8d4], ecx
cmp dword [ebp + 8], 0
je 0x45204c
movzx eax, word [ebp + 0xc]
cmp eax, 0x64
jle 0x452053
xor al, al
jmp 0x45299c
mov cx, word [0x4720a4]
mov word [ebp - 0x424], cx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x422]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea edx, [ebp - 0x424]
push edx
call dword [sym.imp.ServiceCore.dll_public:_static_bool___cdecl_CWHService::GetWorkDirectory_wchar_t__const__unsigned_short_int_]
add esp, 8
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x4520bb
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x424]
push edx
push str._s_sAvertCheatMode
push 0x104
mov eax, dword [ebp - 0x8d4]
add eax, 0x1194
push eax
call dword [sym.imp.MSVCR71.dll__snwprintf]
add esp, 0x14
jmp 0x4520e5
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x424]
push edx
push str._s_s
push 0x104
mov eax, dword [ebp - 0x8d4]
add eax, 0x1194
push eax
call dword [sym.imp.MSVCR71.dll__snwprintf]
add esp, 0x14
mov cx, word [0x4720e0]
mov word [ebp - 0x21c], cx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x21a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edx, dword [ebp - 0x8d4]
add edx, 0x1194
push edx
push 0x4720e4
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.MSVCR71.dll__snwprintf]
add esp, 0x10
movzx ecx, byte [ebp + 0x10]
test ecx, ecx
je 0x4522a3
mov dx, word [0x472110]
mov word [ebp - 0x83c], dx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x83a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp - 0x8d4]
add eax, 0x1194
push eax
push 0x472114
push 0x104
lea ecx, [ebp - 0x83c]
push ecx
call dword [sym.imp.MSVCR71.dll__snwprintf]
add esp, 0x10
lea ecx, [ebp - 0x634]
call dword [sym.imp.WHImage.dll_public:_void___thiscall_CPngImage::constructor_void_]
mov dword [ebp - 4], 0
lea edx, [ebp - 0x83c]
push edx
lea ecx, [ebp - 0x634]
call dword [sym.imp.WHImage.dll_public:_bool___thiscall_CPngImage::LoadImageW_wchar_t_const__]
movzx eax, al
test eax, eax
jne 0x452228
push 0x208
push 0
mov ecx, dword [ebp - 0x8d4]
add ecx, 0x1194
push ecx
call sub.MSVCR71.dll_memset
add esp, 0xc
lea edx, [ebp - 0x424]
push edx
push str._sAvertCheatMode
push 0x104
mov eax, dword [ebp - 0x8d4]
add eax, 0x1194
push eax
call dword [sym.imp.MSVCR71.dll__snwprintf]
add esp, 0x10
push 0x208
push 0
lea ecx, [ebp - 0x21c]
push ecx
call sub.MSVCR71.dll_memset
add esp, 0xc
mov edx, dword [ebp - 0x8d4]
add edx, 0x1194
push edx
push str._sTableResource.INI
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.MSVCR71.dll__snwprintf]
add esp, 0x10
mov ecx, dword [ebp - 0x8d4]
add ecx, 0x1194
push ecx
push str._sWaitDistribute.bmp
push 0x104
lea edx, [ebp - 0x83c]
push edx
call dword [sym.imp.MSVCR71.dll__snwprintf]
add esp, 0x10
lea eax, [ebp - 0x83c]
push eax
mov ecx, dword [ebp - 0x8d4]
add ecx, 0x1a1c
call fcn.00458410
test eax, eax
jge 0x452290
mov byte [ebp - 0x8cd], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x634]
call dword [sym.imp.WHImage.dll_public_virtual:_void___thiscall_CPngImage::destructor_void_]
mov al, byte [ebp - 0x8cd]
jmp 0x45299c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x634]
call dword [sym.imp.WHImage.dll_public_virtual:_void___thiscall_CPngImage::destructor_void_]
lea ecx, [ebp - 0x21c]
push ecx
push str.Color_Name
push 0x4721c4
mov edx, dword [ebp - 0x8d4]
add edx, 0xff8
push edx
mov ecx, dword [ebp - 0x8d4]
call fcn.00453370
lea eax, [ebp - 0x21c]
push eax
push str.Color_Member
push 0x4721ec
mov ecx, dword [ebp - 0x8d4]
add ecx, 0xffc
push ecx
mov ecx, dword [ebp - 0x8d4]
call fcn.00453370
lea edx, [ebp - 0x21c]
push edx
push str.Color_Master
push str.Color
mov eax, dword [ebp - 0x8d4]
add eax, 0x1000
push eax
mov ecx, dword [ebp - 0x8d4]
call fcn.00453370
lea ecx, [ebp - 0x21c]
push ecx
push str.Point_Lock
push 0x472238
mov edx, dword [ebp - 0x8d4]
add edx, 0x40
push edx
mov ecx, dword [ebp - 0x8d4]
call fcn.004532a0
lea eax, [ebp - 0x21c]
push eax
push str.Point_Enter
push 0x472264
mov ecx, dword [ebp - 0x8d4]
add ecx, 0x48
push ecx
mov ecx, dword [ebp - 0x8d4]
call fcn.004532a0
lea edx, [ebp - 0x21c]
push edx
push str.Point_TableID
push 0x472294
mov eax, dword [ebp - 0x8d4]
add eax, 0x50
push eax
mov ecx, dword [ebp - 0x8d4]
call fcn.004532a0
lea ecx, [ebp - 0x21c]
push ecx
push 1
push str.ShowUser
push 0x4722bc
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
sub eax, 1
neg eax
sbb eax, eax
inc eax
mov edx, dword [ebp - 0x8d4]
mov byte [edx + 0x2c], al
lea eax, [ebp - 0x21c]
push eax
push 1
push str.ShowChair
push 0x4722e4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
sub eax, 1
neg eax
sbb eax, eax
inc eax
mov ecx, dword [ebp - 0x8d4]
mov byte [ecx + 0x2e], al
lea edx, [ebp - 0x21c]
push edx
push 1
push str.ShowTable
push 0x47230c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
sub eax, 1
neg eax
sbb eax, eax
inc eax
mov ecx, dword [ebp - 0x8d4]
mov byte [ecx + 0x2f], al
lea edx, [ebp - 0x21c]
push edx
push 1
push str.ShowFocus
push 0x472334
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
sub eax, 1
neg eax
sbb eax, eax
inc eax
mov ecx, dword [ebp - 0x8d4]
mov byte [ecx + 0x30], al
lea edx, [ebp - 0x21c]
push edx
push 0
push str.ShowEnter
push 0x47235c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
sub eax, 1
neg eax
sbb eax, eax
inc eax
mov ecx, dword [ebp - 0x8d4]
mov byte [ecx + 0x2d], al
lea edx, [ebp - 0x21c]
push edx
push 0
push str.CustomUser
push 0x472388
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
sub eax, 1
neg eax
sbb eax, eax
inc eax
mov ecx, dword [ebp - 0x8d4]
mov byte [ecx + 0x31], al
lea edx, [ebp - 0x21c]
push edx
push 1
push str.ShowTableID
push 0x4723b4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
sub eax, 1
neg eax
sbb eax, eax
inc eax
mov ecx, dword [ebp - 0x8d4]
mov byte [ecx + 0x32], al
lea edx, [ebp - 0x21c]
push edx
push 1
push str.RenderImage
push 0x4723e0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
sub eax, 1
neg eax
sbb eax, eax
inc eax
mov ecx, dword [ebp - 0x8d4]
mov byte [ecx + 0x33], al
lea edx, [ebp - 0x21c]
push edx
push 2
push str.TableItemCount
push 0x472414
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [ebp - 0x8d4]
mov word [ecx + 0x34], ax
lea edx, [ebp - 0x21c]
push edx
movzx eax, word [ebp + 0xc]
push eax
push str.ChairItemCount
push 0x472448
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [ebp - 0x8d4]
mov word [ecx + 0x36], ax
lea edx, [ebp - 0x21c]
push edx
push 1
push str.UserGenreCount
push 0x47247c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [ebp - 0x8d4]
mov word [ecx + 0x38], ax
lea edx, [ebp - 0x21c]
push edx
push 1
push str.TableGenreCount
push 0x4724b0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [ebp - 0x8d4]
mov word [ecx + 0x3a], ax
lea edx, [ebp - 0x21c]
push edx
push 1
push str.ChairGenreCount
push str.Attribute
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [ebp - 0x8d4]
mov word [ecx + 0x3c], ax
call dword [sym.imp.SkinControl.dll_public:_static_class_CSkinRenderManager____cdecl_CSkinRenderManager::GetInstance_void_]
push eax
mov ecx, dword [ebp - 0x8d4]
call fcn.004529c0
movzx edx, al
test edx, edx
jne 0x4525b1
xor al, al
jmp 0x45299c
mov ecx, dword [ebp - 0x8d4]
add ecx, 0x139c
call dword [sym.imp.WHImage.dll_public:_bool___thiscall_CPngImage::IsNull_void_]
movzx eax, al
test eax, eax
jne 0x452607
mov ecx, dword [ebp - 0x8d4]
add ecx, 0x139c
call dword [sym.imp.WHImage.dll_public:_int___thiscall_CPngImage::GetHeight_void_]
push eax
mov ecx, dword [ebp - 0x8d4]
add ecx, 0x139c
call dword [sym.imp.WHImage.dll_public:_int___thiscall_CPngImage::GetWidth_void_]
cdq
and edx, 3
add eax, edx
sar eax, 2
push eax
mov ecx, dword [ebp - 0x8d4]
add ecx, 0x14
call fcn.00408380
mov ecx, dword [ebp - 0x8d4]
add ecx, 0x15ac
call fcn.004583f0
movzx ecx, al
test ecx, ecx
jne 0x45266b
mov ecx, dword [ebp - 0x8d4]
add ecx, 0x15ac
call fcn.0040bd40
mov edx, dword [ebp - 0x8d4]
movzx ecx, word [edx + 0x3c]
cdq
idiv ecx
push eax
mov ecx, dword [ebp - 0x8d4]
add ecx, 0x15ac
call fcn.0040bd60
mov edx, dword [ebp - 0x8d4]
movzx ecx, word [edx + 0x36]
cdq
idiv ecx
push eax
mov ecx, dword [ebp - 0x8d4]
add ecx, 4
call fcn.00408380
mov ecx, dword [ebp - 0x8d4]
add ecx, 0x17e4
call fcn.004583f0
movzx edx, al
test edx, edx
jne 0x4526cf
mov ecx, dword [ebp - 0x8d4]
add ecx, 0x17e4
call fcn.0040bd40
mov ecx, dword [ebp - 0x8d4]
movzx ecx, word [ecx + 0x3a]
cdq
idiv ecx
push eax
mov ecx, dword [ebp - 0x8d4]
add ecx, 0x17e4
call fcn.0040bd60
mov edx, dword [ebp - 0x8d4]
movzx ecx, word [edx + 0x34]
cdq
idiv ecx
push eax
mov ecx, dword [ebp - 0x8d4]
add ecx, 0xc
call fcn.00408380
mov ecx, dword [ebp - 0x8d4]
add ecx, 0x1e8c
call dword [sym.imp.WHImage.dll_public:_bool___thiscall_CPngImage::IsNull_void_]
movzx edx, al
test edx, edx
jne 0x452736
mov ecx, dword [ebp - 0x8d4]
add ecx, 0x1e8c
call dword [sym.imp.WHImage.dll_public:_int___thiscall_CPngImage::GetHeight_void_]
mov ecx, dword [ebp - 0x8d4]
movzx ecx, word [ecx + 0x38]
cdq
idiv ecx
push eax
mov ecx, dword [ebp - 0x8d4]
add ecx, 0x1e8c
call dword [sym.imp.WHImage.dll_public:_int___thiscall_CPngImage::GetWidth_void_]
mov edx, dword [ebp - 0x8d4]
movzx ecx, word [edx + 0x36]
cdq
idiv ecx
push eax
mov ecx, dword [ebp - 0x8d4]
add ecx, 4
call fcn.00408380
mov edx, dword [ebp - 0x8d4]
movzx eax, byte [edx + 0x2f]
cmp eax, 1
jne 0x45299a
mov word [ebp - 0x840], 0
jmp 0x452766
mov cx, word [ebp - 0x840]
add cx, 1
mov word [ebp - 0x840], cx
movzx edx, word [ebp - 0x840]
movzx eax, word [ebp + 0xc]
cmp edx, eax
jge 0x45299a
mov cx, word [0x4724f8]
mov word [ebp - 0x8c4], cx
mov ecx, 0x1f
xor eax, eax
lea edi, [ebp - 0x8c2]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edx, dword [ebp - 0x8d4]
movzx eax, byte [edx + 0x2c]
cmp eax, 1
jne 0x452995
movzx ecx, word [ebp - 0x840]
add ecx, 1
push ecx
push str.Rect_Name_d
push 0x40
lea edx, [ebp - 0x8c4]
push edx
call dword [sym.imp.MSVCR71.dll__snwprintf]
add esp, 0x10
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x8c4]
push ecx
push 0x472514
movzx edx, word [ebp - 0x840]
shl edx, 4
mov eax, dword [ebp - 0x8d4]
lea ecx, [eax + edx + 0x378]
push ecx
mov ecx, dword [ebp - 0x8d4]
call fcn.004531a0
movzx edx, word [ebp - 0x840]
add edx, 1
push edx
push str.Point_Ready_d
push 0x40
lea eax, [ebp - 0x8c4]
push eax
call dword [sym.imp.MSVCR71.dll__snwprintf]
add esp, 0x10
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x8c4]
push edx
push 0x472544
movzx eax, word [ebp - 0x840]
mov ecx, dword [ebp - 0x8d4]
lea edx, [ecx + eax*8 + 0x58]
push edx
mov ecx, dword [ebp - 0x8d4]
call fcn.004532a0
movzx eax, word [ebp - 0x840]
add eax, 1
push eax
push str.DrawStyle_d
push 0x40
lea ecx, [ebp - 0x8c4]
push ecx
call dword [sym.imp.MSVCR71.dll__snwprintf]
add esp, 0x10
lea edx, [ebp - 0x21c]
push edx
push 0
lea eax, [ebp - 0x8c4]
push eax
push 0x472570
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
movzx ecx, word [ebp - 0x840]
mov edx, dword [ebp - 0x8d4]
mov dword [edx + ecx*4 + 0x1004], eax
movzx eax, word [ebp - 0x840]
add eax, 1
push eax
push str.Point_Chair_d
push 0x40
lea ecx, [ebp - 0x8c4]
push ecx
call dword [sym.imp.MSVCR71.dll__snwprintf]
add esp, 0x10
lea edx, [ebp - 0x21c]
push edx
lea eax, [ebp - 0x8c4]
push eax
push str.Position
lea ecx, [ebp - 0x8cc]
push ecx
mov ecx, dword [ebp - 0x8d4]
call fcn.004532a0
movzx edx, word [ebp - 0x840]
shl edx, 4
mov eax, dword [ebp - 0x8d4]
mov ecx, dword [ebp - 0x8c8]
mov dword [eax + edx + 0x9bc], ecx
movzx edx, word [ebp - 0x840]
shl edx, 4
mov eax, dword [ebp - 0x8d4]
mov ecx, dword [ebp - 0x8cc]
mov dword [eax + edx + 0x9b8], ecx
movzx edx, word [ebp - 0x840]
shl edx, 4
mov eax, dword [ebp - 0x8d4]
mov ecx, dword [eax + edx + 0x9b8]
mov edx, dword [ebp - 0x8d4]
add ecx, dword [edx + 4]
movzx eax, word [ebp - 0x840]
shl eax, 4
mov edx, dword [ebp - 0x8d4]
mov dword [edx + eax + 0x9c0], ecx
movzx eax, word [ebp - 0x840]
shl eax, 4
mov ecx, dword [ebp - 0x8d4]
mov edx, dword [ecx + eax + 0x9bc]
mov eax, dword [ebp - 0x8d4]
add edx, dword [eax + 8]
movzx ecx, word [ebp - 0x840]
shl ecx, 4
mov eax, dword [ebp - 0x8d4]
mov dword [eax + ecx + 0x9c4], edx
jmp 0x452754
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
call fcn.0045d95d
pop edi
mov esp, ebp
pop ebp
ret 0xc