Function at 0x40da70
Capabilities:
Contain obfuscated stackstrings
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x44c773
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x43c
mov eax, dword [0x464834]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x45c]
mov dword [esp + 0x448], eax
lea eax, [esp + 0x1c]
push edi
xor ebx, ebx
push eax
mov esi, ecx
mov dword [esp + 0x1c], ebx
call fcn.0040f9f0
add esp, 8
cmp dword [esi + 0x13c], ebx
mov dword [esp + 0x454], ebx
je 0x40db2c
lea ecx, [esi + 0x40]
call fcn.0043987f
lea ecx, [esi + 0x18]
call fcn.0043987f
lea ecx, [esi + 0x20]
call fcn.0043987f
lea ecx, [esi + 0x28]
call fcn.0043987f
lea ecx, [esi + 0x30]
call fcn.0043987f
lea ecx, [esi + 0x7c]
call fcn.0043987f
lea ecx, [esi + 0x8c]
call fcn.0043987f
lea ecx, [esi + 0x74]
call fcn.0043987f
lea ecx, [esi + 0x84]
call fcn.0043987f
mov eax, 0xcfcfcf
mov dword [esi + 0x120], eax
mov dword [esi + 0x124], eax
mov dword [esi + 0x13c], ebx
mov edx, dword [str.Personality]
push edi
push 0x3e8
lea ecx, [esp + 0x68]
push ecx
push 0x4559f0
push str.DialogBmp
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, byte [esp + 0x60]
test al, al
je 0x40dc38
push 1
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.0040faa0
mov ebp, eax
push 0x44f85c
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x38]
push eax
mov byte [esp + 0x46c], 1
call fcn.0040a800
push ebp
push eax
lea ecx, [esp + 0x48]
push ecx
mov byte [esp + 0x478], 2
call fcn.0040a750
add esp, 0x24
mov edx, dword [eax]
lea ebp, [esi + 0x40]
mov ecx, ebp
mov byte [esp + 0x454], 3
mov dword [esp + 0x20], edx
call fcn.0043987f
mov eax, dword [esp + 0x20]
push 0
push eax
mov ecx, ebp
call fcn.00403bf0
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x454], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dbec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x454], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dc12
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x454], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dc38
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [str.Personality]
push edi
push 0x3e8
lea eax, [esp + 0x68]
push eax
push 0x4559f0
push 0x4508cc
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, byte [esp + 0x60]
test al, al
je 0x40dcfa
push 1
lea edx, [esp + 0x64]
push edx
lea eax, [esp + 0x20]
push eax
call fcn.0040faa0
mov ebx, eax
push 0x44f85c
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x38]
push edx
mov byte [esp + 0x46c], 4
mov dword [esp + 0x2c], 1
call fcn.0040a800
push ebx
push eax
lea eax, [esp + 0x48]
push eax
mov dword [esp + 0x478], 5
mov dword [esp + 0x38], 3
call fcn.0040a750
add esp, 0x24
mov ecx, dword [eax]
mov dword [esp + 0x20], ecx
lea ebp, [esi + 0x18]
mov ebx, 7
mov ecx, ebp
mov dword [esp + 0x454], 6
mov dword [esp + 0x14], ebx
call fcn.0043987f
mov edx, dword [esp + 0x20]
push 0
push edx
mov ecx, ebp
call fcn.00403bf0
test eax, eax
mov byte [esp + 0x13], 0
jne 0x40dcff
mov byte [esp + 0x13], 1
test bl, 4
mov dword [esp + 0x454], 5
je 0x40dd34
mov eax, dword [esp + 0x28]
and ebx, 0xfffffffb
add eax, 0xfffffff0
mov dword [esp + 0x14], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dd34
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, 2
mov dword [esp + 0x454], 4
je 0x40dd69
mov eax, dword [esp + 0x24]
and ebx, 0xfffffffd
add eax, 0xfffffff0
mov dword [esp + 0x14], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dd69
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, 1
mov dword [esp + 0x454], 0
je 0x40dd9a
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
and ebx, 0xfffffffe
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dd9a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov al, byte [esp + 0x13]
test al, al
jne 0x40ec55
mov ecx, dword [str.Personality]
push edi
push 0x3e8
lea eax, [esp + 0x68]
push eax
push 0x4559f0
push str.Left
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, byte [esp + 0x60]
test al, al
je 0x40de64
push 1
lea edx, [esp + 0x64]
push edx
lea eax, [esp + 0x20]
push eax
call fcn.0040faa0
mov ebp, eax
push 0x44f85c
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x38]
or ebx, 8
push edx
mov byte [esp + 0x46c], 7
mov dword [esp + 0x2c], ebx
call fcn.0040a800
push ebp
push eax
lea eax, [esp + 0x48]
or ebx, 0x10
push eax
mov dword [esp + 0x478], 8
mov dword [esp + 0x38], ebx
call fcn.0040a750
add esp, 0x24
mov ecx, dword [eax]
mov dword [esp + 0x20], ecx
lea ebp, [esi + 0x20]
or ebx, 0x20
mov ecx, ebp
mov dword [esp + 0x454], 9
mov dword [esp + 0x14], ebx
call fcn.0043987f
mov edx, dword [esp + 0x20]
push 0
push edx
mov ecx, ebp
call fcn.00403bf0
test eax, eax
mov byte [esp + 0x13], 0
jne 0x40de69
mov byte [esp + 0x13], 1
test bl, 0x20
mov dword [esp + 0x454], 8
je 0x40de9e
mov eax, dword [esp + 0x28]
and ebx, 0xffffffdf
add eax, 0xfffffff0
mov dword [esp + 0x14], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40de9e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, 0x10
mov dword [esp + 0x454], 7
je 0x40ded3
mov eax, dword [esp + 0x24]
and ebx, 0xffffffef
add eax, 0xfffffff0
mov dword [esp + 0x14], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ded3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, 8
mov dword [esp + 0x454], 0
je 0x40df04
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
and ebx, 0xfffffff7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40df04
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov al, byte [esp + 0x13]
test al, al
jne 0x40ec55
mov ecx, dword [str.Personality]
push edi
push 0x3e8
lea eax, [esp + 0x68]
push eax
push 0x4559f0
push str.Right
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, byte [esp + 0x60]
test al, al
je 0x40dfd4
push 1
lea edx, [esp + 0x64]
push edx
lea eax, [esp + 0x20]
push eax
call fcn.0040faa0
mov ebp, eax
push 0x44f85c
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x38]
or ebx, 0x40
push edx
mov byte [esp + 0x46c], 0xa
mov dword [esp + 0x2c], ebx
call fcn.0040a800
push ebp
push eax
lea eax, [esp + 0x48]
or ebx, 0x80
push eax
mov dword [esp + 0x478], 0xb
mov dword [esp + 0x38], ebx
call fcn.0040a750
add esp, 0x24
mov ecx, dword [eax]
mov dword [esp + 0x20], ecx
lea ebp, [esi + 0x28]
or ebx, 0x100
mov ecx, ebp
mov dword [esp + 0x454], 0xc
mov dword [esp + 0x14], ebx
call fcn.0043987f
mov edx, dword [esp + 0x20]
push 0
push edx
mov ecx, ebp
call fcn.00403bf0
test eax, eax
mov byte [esp + 0x13], 0
jne 0x40dfd9
mov byte [esp + 0x13], 1
test bh, 1
mov dword [esp + 0x454], 0xb
je 0x40e011
mov eax, dword [esp + 0x28]
and ebx, 0xfffffeff
add eax, 0xfffffff0
mov dword [esp + 0x14], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e011
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
mov dword [esp + 0x454], 0xa
jns 0x40e048
mov eax, dword [esp + 0x24]
and ebx, 0xffffff7f
add eax, 0xfffffff0
mov dword [esp + 0x14], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e048
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, 0x40
mov dword [esp + 0x454], 0
je 0x40e079
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
and ebx, 0xffffffbf
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e079
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov al, byte [esp + 0x13]
test al, al
jne 0x40ec55
mov ecx, dword [str.Personality]
push edi
push 0x3e8
lea eax, [esp + 0x68]
push eax
push 0x4559f0
push str.Bottom
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, byte [esp + 0x60]
test al, al
je 0x40e14c
push 1
lea edx, [esp + 0x64]
push edx
lea eax, [esp + 0x20]
push eax
call fcn.0040faa0
mov ebp, eax
push 0x44f85c
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x38]
or ebx, 0x200
push edx
mov byte [esp + 0x46c], 0xd
mov dword [esp + 0x2c], ebx
call fcn.0040a800
push ebp
push eax
lea eax, [esp + 0x48]
or ebx, 0x400
push eax
mov dword [esp + 0x478], 0xe
mov dword [esp + 0x38], ebx
call fcn.0040a750
add esp, 0x24
mov ecx, dword [eax]
mov dword [esp + 0x20], ecx
lea ebp, [esi + 0x30]
or ebx, 0x800
mov ecx, ebp
mov dword [esp + 0x454], 0xf
mov dword [esp + 0x14], ebx
call fcn.0043987f
mov edx, dword [esp + 0x20]
push 0
push edx
mov ecx, ebp
call fcn.00403bf0
test eax, eax
mov byte [esp + 0x13], 0
jne 0x40e151
mov byte [esp + 0x13], 1
test bh, 8
mov dword [esp + 0x454], 0xe
je 0x40e189
mov eax, dword [esp + 0x28]
and ebx, 0xfffff7ff
add eax, 0xfffffff0
mov dword [esp + 0x14], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e189
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bh, 4
mov dword [esp + 0x454], 0xd
je 0x40e1c1
mov eax, dword [esp + 0x24]
and ebx, 0xfffffbff
add eax, 0xfffffff0
mov dword [esp + 0x14], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e1c1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bh, 2
mov dword [esp + 0x454], 0
je 0x40e1ef
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e1ef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov al, byte [esp + 0x13]
test al, al
jne 0x40ec55
lea ebx, [esi + 0x18]
mov ecx, ebx
call fcn.00407c40
cdq
sub eax, edx
sar eax, 1
lea ecx, [esi + 0x20]
mov dword [esi + 0xfc], eax
call fcn.00407c00
cdq
sub eax, edx
sar eax, 1
lea ecx, [esi + 0x28]
mov dword [esi + 0x100], eax
call fcn.00407c00
cdq
sub eax, edx
sar eax, 1
lea ecx, [esi + 0x30]
mov dword [esi + 0x104], eax
call fcn.00407c40
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cdq
sub eax, edx
push edi
sar eax, 1
push 0
mov dword [esi + 0x108], eax
mov eax, dword [str.Personality]
push str.TopTopHeight
push eax
call ebp
mov ecx, dword [str.Personality]
push edi
push 0
push str.TopBotHeight
push ecx
mov dword [esi + 0x54], eax
call ebp
mov ecx, ebx
mov dword [esp + 0x20], eax
call fcn.00407c00
mov ecx, dword [esp + 0x20]
sub eax, ecx
mov ecx, dword [esi + 0x54]
cmp eax, ecx
mov dword [esi + 0x58], eax
jg 0x40e292
inc ecx
mov dword [esi + 0x58], ecx
mov edx, dword [str.Personality]
push edi
push 0
push str.LeftTopHeight
push edx
call ebp
push edi
push 0
mov dword [esi + 0x5c], eax
mov eax, dword [str.Personality]
push str.LeftBotHeight
push eax
call ebp
lea ecx, [esi + 0x20]
mov ebx, eax
call fcn.00407c40
mov ecx, dword [esi + 0x5c]
sub eax, ebx
cmp eax, ecx
mov dword [esi + 0x60], eax
jg 0x40e2d0
inc ecx
mov dword [esi + 0x60], ecx
mov ecx, dword [str.Personality]
push edi
push 0
push str.RightTopHeight
push ecx
call ebp
mov edx, dword [str.Personality]
push edi
push 0
push str.RightBotHeight
push edx
mov dword [esi + 0x64], eax
call ebp
lea ecx, [esi + 0x28]
mov ebx, eax
call fcn.00407c40
mov ecx, dword [esi + 0x64]
sub eax, ebx
cmp eax, ecx
mov dword [esi + 0x68], eax
jg 0x40e30f
inc ecx
mov dword [esi + 0x68], ecx
mov eax, dword [str.Personality]
push edi
push 0
push str.BottomTopHeight
push eax
call ebp
mov ecx, dword [str.Personality]
push edi
push 0
push str.BottomBotHeight
push ecx
mov dword [esi + 0x6c], eax
call ebp
lea ecx, [esi + 0x30]
mov ebx, eax
call fcn.00407c00
mov ecx, dword [esi + 0x6c]
sub eax, ebx
cmp eax, ecx
mov dword [esi + 0x70], eax
jg 0x40e34d
inc ecx
mov dword [esi + 0x70], ecx
mov edx, dword [str.Personality]
push edi
push 0
push str.ButtonCount
push edx
call ebp
push edi
push 3
mov ebx, eax
mov eax, dword [str.Personality]
push str.ButtonImgCount
push eax
mov dword [esp + 0x6c], ebx
call ebp
test ebx, ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], 0
jle 0x40e858
call fcn.00432ee8
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
push str.Button_d
push ecx
mov byte [esp + 0x460], 0x10
call fcn.00404e10
mov ebx, dword [esp + 0x20]
add esp, 0xc
push edi
push 0x3e8
lea edx, [esp + 0x68]
push edx
push 0x4559f0
push str.ButtonImage
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push edi
push 0
push str.Action
push ebx
call ebp
push edi
push 0
mov ebx, eax
mov eax, dword [esp + 0x1c]
push str.XCoord
push eax
call ebp
mov ecx, dword [esp + 0x14]
push edi
push 0
push str.YCoord
push ecx
mov dword [esp + 0x38], eax
call ebp
test ebx, ebx
mov dword [esp + 0x18], eax
jne 0x40e543
push 1
lea edx, [esp + 0x64]
push edx
lea eax, [esp + 0x58]
push eax
call fcn.0040faa0
mov ebx, eax
push 0x44f85c
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x5c]
push edx
mov byte [esp + 0x46c], 0x11
call fcn.0040a800
push ebx
push eax
lea eax, [esp + 0x5c]
push eax
mov byte [esp + 0x478], 0x12
call fcn.0040a750
add esp, 0x24
mov ebx, dword [eax]
lea ebp, [esi + 0x84]
mov ecx, ebp
mov byte [esp + 0x454], 0x13
call fcn.0043987f
push 0
push ebx
mov ecx, ebp
call fcn.00403bf0
mov ebx, eax
mov eax, dword [esp + 0x3c]
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
mov byte [esp + 0x454], 0x12
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e4aa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
mov byte [esp + 0x454], 0x11
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e4d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
mov byte [esp + 0x454], 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e4f6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
jne 0x40ec2f
mov ecx, ebp
call fcn.00407c40
mov ebx, dword [esp + 0x18]
add eax, ebx
mov ecx, ebp
mov dword [esp + 0x18], eax
call fcn.00407c00
cdq
idiv dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edx, ecx
sub edx, eax
lea eax, [esi + 0xb4]
mov dword [eax], edx
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x18]
mov dword [eax + 0xc], ecx
jmp 0x40e81d
cmp ebx, 2
jne 0x40e677
push 1
lea edx, [esp + 0x64]
push edx
lea eax, [esp + 0x4c]
push eax
call fcn.0040faa0
mov ebx, eax
push 0x44f85c
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x6c]
push edx
mov byte [esp + 0x46c], 0x14
call fcn.0040a800
push ebx
push eax
lea eax, [esp + 0x54]
push eax
mov byte [esp + 0x478], 0x15
call fcn.0040a750
add esp, 0x24
mov ebx, dword [eax]
lea ebp, [esi + 0x74]
mov ecx, ebp
mov byte [esp + 0x454], 0x16
call fcn.0043987f
push 0
push ebx
mov ecx, ebp
call fcn.00403bf0
mov ebx, eax
mov eax, dword [esp + 0x34]
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
mov byte [esp + 0x454], 0x15
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e5de
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x58]
add eax, 0xfffffff0
mov byte [esp + 0x454], 0x14
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e604
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
mov byte [esp + 0x454], 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e62a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
jne 0x40ec82
mov ecx, ebp
call fcn.00407c40
mov ebx, dword [esp + 0x18]
add eax, ebx
mov ecx, ebp
mov dword [esp + 0x18], eax
call fcn.00407c00
cdq
idiv dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edx, ecx
sub edx, eax
lea eax, [esi + 0x94]
mov dword [eax], edx
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x18]
mov dword [eax + 0xc], ecx
jmp 0x40e81d
cmp ebx, 1
jne 0x40e81d
lea eax, [esi + 0x7c]
test eax, eax
je 0x40e692
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x40e74e
push 1
lea edx, [esp + 0x64]
push edx
lea eax, [esp + 0x40]
push eax
call fcn.0040faa0
mov ebx, eax
push 0x44f85c
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x60]
push edx
mov byte [esp + 0x46c], 0x17
call fcn.0040a800
push ebx
push eax
lea eax, [esp + 0x74]
push eax
mov byte [esp + 0x478], 0x18
call fcn.0040a750
add esp, 0x24
mov eax, dword [eax]
push eax
lea ecx, [esi + 0x7c]
mov byte [esp + 0x458], 0x19
call fcn.004094c0
mov ebx, eax
neg ebx
sbb bl, bl
lea ecx, [esp + 0x54]
inc bl
call fcn.004016a0
lea ecx, [esp + 0x4c]
call fcn.004016a0
lea ecx, [esp + 0x38]
mov byte [esp + 0x454], 0x10
call fcn.004016a0
test bl, bl
jne 0x40ec82
lea ecx, [esi + 0x7c]
call fcn.00407c40
mov ebx, eax
mov eax, dword [esp + 0x18]
lea ecx, [esi + 0x7c]
add ebx, eax
call fcn.00407c00
cdq
idiv dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov ecx, edx
sub ecx, eax
lea eax, [esi + 0xa4]
jmp 0x40e80e
push 1
lea edx, [esp + 0x64]
push edx
lea eax, [esp + 0x34]
push eax
call fcn.0040faa0
mov ebx, eax
push 0x44f85c
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x44]
push edx
mov byte [esp + 0x46c], 0x1a
call fcn.0040a800
push ebx
push eax
lea eax, [esp + 0x60]
push eax
mov byte [esp + 0x478], 0x1b
call fcn.0040a750
add esp, 0x24
mov eax, dword [eax]
lea ecx, [esi + 0x8c]
push eax
mov byte [esp + 0x458], 0x1c
call fcn.004094c0
mov ebx, eax
neg ebx
sbb bl, bl
lea ecx, [esp + 0x40]
inc bl
call fcn.004016a0
lea ecx, [esp + 0x30]
call fcn.004016a0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x454], 0x10
call fcn.004016a0
test bl, bl
jne 0x40ec82
lea ecx, [esi + 0x8c]
call fcn.00407c40
mov ebx, eax
mov eax, dword [esp + 0x18]
lea ecx, [esi + 0x8c]
add ebx, eax
call fcn.00407c00
cdq
idiv dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov ecx, edx
sub ecx, eax
lea eax, [esi + 0xc4]
mov dword [eax], ecx
mov ecx, dword [esp + 0x18]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x454], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40e843
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x5c]
inc eax
cmp eax, ecx
mov dword [esp + 0x20], eax
jl 0x40e388
mov eax, dword [str.Personality]
push edi
push 0
push str.TextShift
push eax
call ebp
mov ecx, dword [str.Personality]
push edi
push 0
push str.TextShiftVert
push ecx
mov dword [esi + 0x10c], eax
call ebp
mov ebx, dword [sym.imp.USER32.dll_GetSysColor]
push 9
mov dword [esi + 0x110], eax
call ebx
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x64], esp
push edi
call fcn.00401e30
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push str.TitleText
mov byte [esp + 0x464], 0x1d
call fcn.00401e30
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push str.Colours
mov byte [esp + 0x468], 0x1e
call fcn.00401e30
mov byte [esp + 0x464], 0
call fcn.0040cd10
add esp, 0x10
push 9
mov dword [esi + 0x114], eax
call ebx
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x64], esp
push edi
call fcn.00401e30
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push str.InactiveTitleText
mov byte [esp + 0x464], 0x1f
call fcn.00401e30
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push str.Colours
mov byte [esp + 0x468], 0x20
call fcn.00401e30
mov byte [esp + 0x464], 0
call fcn.0040cd10
mov edx, dword [str.Personality]
add esp, 0x10
push edi
push 0
push str.UsesTran
push edx
mov dword [esi + 0x118], eax
call ebp
test eax, eax
mov dword [esi + 0x138], eax
je 0x40e9b4
push 0xff00ff
push ecx
mov ecx, esp
mov dword [esp + 0x64], esp
push edi
call fcn.00401e30
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push str.TransColor
mov byte [esp + 0x464], 0x21
call fcn.00401e30
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push str.Colours
mov byte [esp + 0x468], 0x22
call fcn.00401e30
mov byte [esp + 0x464], 0
call fcn.0040cd10
add esp, 0x10
mov dword [esi + 0x11c], eax
push 0xcfcfcf
push ecx
mov ecx, esp
mov dword [esp + 0x64], esp
push edi
call fcn.00401e30
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push str.BarColor
mov byte [esp + 0x464], 0x23
call fcn.00401e30
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push str.Colours
mov byte [esp + 0x468], 0x24
call fcn.00401e30
mov byte [esp + 0x464], 0
call fcn.0040cd10
add esp, 0x10
push 0xcfcfcf
push ecx
mov ecx, esp
mov dword [esp + 0x64], esp
push edi
mov dword [esi + 0x120], eax
call fcn.00401e30
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push str.MenuColor
mov byte [esp + 0x464], 0x25
call fcn.00401e30
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push str.Colours
mov byte [esp + 0x468], 0x26
call fcn.00401e30
mov byte [esp + 0x464], 0
call fcn.0040cd10
add esp, 0x10
push 0xf
mov dword [esi + 0x124], eax
call ebx
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x64], esp
push edi
call fcn.00401e30
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push str.ButtonFace
mov byte [esp + 0x464], 0x27
call fcn.00401e30
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push str.Colours
mov byte [esp + 0x468], 0x28
call fcn.00401e30
mov byte [esp + 0x464], 0
call fcn.0040cd10
add esp, 0x10
push 0x12
mov dword [esi + 0x128], eax
call ebx
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x64], esp
push edi
call fcn.00401e30
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push str.ButtonText
mov byte [esp + 0x464], 0x29
call fcn.00401e30
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push str.Colours
mov byte [esp + 0x468], 0x2a
call fcn.00401e30
mov byte [esp + 0x464], 0
call fcn.0040cd10
add esp, 0x10
push 0xf
mov dword [esi + 0x12c], eax
call ebx
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x64], esp
push edi
call fcn.00401e30
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push str.ButtonHilight
mov byte [esp + 0x464], 0x2b
call fcn.00401e30
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push str.Colours
mov byte [esp + 0x468], 0x2c
call fcn.00401e30
mov byte [esp + 0x464], 0
call fcn.0040cd10
add esp, 0x10
push 0xf
mov dword [esi + 0x130], eax
call ebx
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x64], esp
push edi
call fcn.00401e30
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push str.ButtonFocus
mov byte [esp + 0x464], 0x2d
call fcn.00401e30
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push str.Colours
mov byte [esp + 0x468], 0x2e
call fcn.00401e30
mov byte [esp + 0x464], 0
call fcn.0040cd10
mov dword [esi + 0x134], eax
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 0x10
mov dword [esi + 0x13c], 1
mov dword [esp + 0x454], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ec03
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
mov ecx, dword [esp + 0x44c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x448]
call fcn.0041cfab
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x448
ret 4
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x454], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ec55
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov dword [esp + 0x454], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ec7e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
jmp 0x40ec08
lea ecx, [esp + 0x14]
call fcn.004016a0
lea ecx, [esp + 0x1c]
call fcn.004016a0
xor eax, eax
jmp 0x40ec08