Function at 0x4602f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4cc5ec
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x500770]
xor eax, esp
mov dword [esp + 0xc8], eax
push ebx
push esi
push edi
mov eax, dword [0x500770]
xor eax, esp
push eax
lea eax, [esp + 0xe0]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov ebx, ecx
push 0xffffffffffffffff
push 0
lea eax, [edi + 4]
lea ecx, [ebx + 0x28]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], 0
call fcn.00406430
mov eax, dword [edi + 0x20]
mov dword [ebx + 0x44], eax
mov esi, dword [ebx]
push 0
push edi
mov ecx, 0x4e57fc
add esi, 0xc
call fcn.0046ce60
mov edx, dword [esi]
push eax
mov ecx, ebx
call edx
lea eax, [esp + 0x24]
push eax
push edi
mov edx, 0x4d97fc
mov ecx, 0x4e58d8
call fcn.0046cc70
mov dword [esp + 0xe8], 0
cmp dword [eax + 0x18], 8
jb 0x46039a
mov eax, dword [eax + 4]
jmp 0x46039d
add eax, 4
mov edx, dword [ebx]
push eax
mov eax, dword [edx + 0x14]
mov ecx, ebx
call eax
mov esi, 8
mov dword [esp + 0xe8], 0xffffffff
cmp dword [esp + 0x3c], esi
jb 0x4603ca
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00488fd0
add esp, 4
lea edx, [esp + 0x24]
push edx
push edi
mov edx, 0x4d97fc
mov ecx, 0x4e5fb0
call fcn.0046cc70
push 0xffffffffffffffff
push 0
lea ecx, [ebx + 0x70]
mov dword [esp + 0xf0], 1
call fcn.00406430
mov dword [esp + 0xe8], 0xffffffff
cmp dword [esp + 0x3c], esi
jb 0x460414
mov eax, dword [esp + 0x28]
push eax
call fcn.00488fd0
add esp, 4
lea ecx, [esp + 0x24]
push ecx
push edi
mov edx, 0x4d97fc
mov ecx, str.tooltip
call fcn.0046cc70
mov dword [esp + 0xe8], 2
cmp dword [eax + 0x18], esi
jb 0x46043e
mov eax, dword [eax + 4]
jmp 0x460441
add eax, 4
mov edx, dword [ebx]
push eax
mov eax, dword [edx + 0x24]
mov ecx, ebx
call eax
mov dword [esp + 0xe8], 0xffffffff
cmp dword [esp + 0x3c], esi
jb 0x460469
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00488fd0
add esp, 4
push 1
push edi
mov ecx, str.visible
call fcn.0046d260
mov esi, dword [ebx]
push 1
push edi
mov ecx, str.enable
mov byte [ebx + 0xa8], al
add esi, 0x6c
call fcn.0046d260
mov edx, dword [esi]
mov ecx, ebx
push eax
call edx
sub esp, 0x1c
mov eax, esp
mov dword [esp + 0x38], esp
push eax
push edi
mov edx, str.LEFTTOP
mov ecx, str.align
call fcn.0046cc70
call fcn.00464ce0
add esp, 0x1c
lea ecx, [esp + 0x24]
push ecx
push edi
mov edx, 0x4d97fc
mov ecx, str.cursor
mov dword [ebx + 0xbc], eax
call fcn.0046cc70
mov dword [esp + 0xe8], 3
cmp dword [eax + 0x18], 8
jb 0x4604e8
mov edx, dword [eax + 4]
jmp 0x4604eb
lea edx, [eax + 4]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4604f0
sub eax, esi
sar eax, 1
push eax
push edx
lea esi, [ebx + 0x100]
call fcn.00406b80
mov dword [esp + 0xe8], 0xffffffff
cmp dword [esp + 0x3c], 8
jb 0x46052b
mov edx, dword [esp + 0x28]
push edx
call fcn.00488fd0
add esp, 4
mov esi, dword [ebx]
push 0
push edi
mov ecx, str.alpha
add esi, 0x40
call fcn.0046ce60
push eax
mov eax, dword [esi]
mov ecx, ebx
call eax
lea ecx, [esp + 0x24]
push ecx
push edi
mov edx, 0x4d97fc
mov ecx, str.bkcolor
call fcn.0046cc70
mov esi, 8
mov dword [esp + 0xe8], 4
cmp dword [eax + 0x18], esi
jb 0x460573
mov eax, dword [eax + 4]
jmp 0x460576
add eax, 4
mov edx, dword [ebx]
push eax
mov eax, dword [edx + 0x78]
mov ecx, ebx
call eax
mov dword [esp + 0xe8], 0xffffffff
cmp dword [esp + 0x3c], esi
jb 0x46059e
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00488fd0
add esp, 4
mov esi, dword [esp + 0x20]
mov ebx, dword [esi]
push 0
push edi
mov ecx, str.transparentbk
add ebx, 0x48
call fcn.0046d260
mov edx, dword [ebx]
mov ecx, esi
push eax
call edx
xor ebx, ebx
push ebx
push edi
mov ecx, 0x4dd30c
call fcn.0046ce60
push ebx
push edi
mov ecx, 0x4dd324
mov dword [esi + 0xac], eax
call fcn.0046ce60
push ebx
push edi
mov ecx, str.width
mov dword [esi + 0xb0], eax
call fcn.0046ce60
add eax, dword [esi + 0xac]
push ebx
push edi
mov ecx, str.height
mov dword [esi + 0xb4], eax
call fcn.0046ce60
add eax, dword [esi + 0xb0]
mov dword [esp + 0x98], vtable.OrayUI::CXMLAttribute.0
mov dword [esi + 0xb8], eax
mov dword [esp + 0xb4], 7
mov dword [esp + 0xb0], ebx
mov word [esp + 0xa0], bx
mov dword [esp + 0xb8], ebx
lea eax, [esp + 0x98]
push eax
mov eax, edi
mov dword [esp + 0xec], 5
call fcn.0046d6e0
test al, al
mov dword [esp + 0x1c], ebx
je 0x461359
jmp 0x460670
lea ecx, [esp + 0x7c]
lea eax, [esp + 0x98]
call fcn.0046c8e0
mov ecx, eax
mov byte [esp + 0xe8], 6
mov eax, dword [ecx + 0x14]
push 0x4e4e58
mov edi, 5
call fcn.004484f0
test eax, eax
mov esi, 8
sete byte [esp + 0x17]
mov byte [esp + 0xe8], 5
cmp dword [esp + 0x94], esi
jb 0x4606c9
mov ecx, dword [esp + 0x80]
push ecx
call fcn.00488fd0
add esp, 4
cmp byte [esp + 0x17], 0
je 0x460a77
push 0x88
call fcn.00488fa5
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0xe8], 7
je 0x4606fb
push eax
call fcn.00466700
mov esi, eax
jmp 0x4606fd
xor esi, esi
lea edx, [esp + 0x7c]
push edx
lea eax, [esp + 0x9c]
mov byte [esp + 0xec], 5
push eax
mov edx, 0x4d97fc
mov ecx, str.picfile
mov dword [esp + 0x24], esi
mov dword [esi + 4], 1
call fcn.0046cc70
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x3c]
mov byte [esp + 0xf0], 8
call fcn.00406430
mov edi, 8
mov byte [esp + 0xe8], 5
cmp dword [esp + 0x94], edi
jb 0x460766
mov ecx, dword [esp + 0x80]
push ecx
call fcn.00488fd0
add esp, 4
lea edx, [esp + 0x7c]
push edx
lea eax, [esp + 0x9c]
push eax
mov edx, 0x4d97fc
mov ecx, 0x4e58d8
call fcn.0046cc70
push 0xffffffffffffffff
push 0
lea ecx, [esi + 8]
mov byte [esp + 0xf0], 9
call fcn.00406430
mov byte [esp + 0xe8], 5
cmp dword [esp + 0x94], edi
jb 0x4607b7
mov ecx, dword [esp + 0x80]
push ecx
call fcn.00488fd0
add esp, 4
sub esp, 0x10
mov eax, esp
xor edi, edi
xor ebx, ebx
mov dword [eax], ebx
mov dword [eax + 4], edi
mov dword [eax + 8], edi
lea edx, [esp + 0x7c]
mov dword [eax + 0xc], edi
push edx
lea eax, [esp + 0xac]
push eax
mov ecx, str.rectpos
call fcn.0046d460
mov ecx, dword [eax]
mov dword [esi + 0x58], ecx
mov edx, dword [eax + 4]
mov dword [esi + 0x5c], edx
mov ecx, dword [eax + 8]
mov dword [esi + 0x60], ecx
mov edx, dword [eax + 0xc]
sub esp, 0x10
mov eax, esp
mov dword [eax], ebx
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0xac]
push ecx
mov ecx, str.rectmargin
mov dword [esi + 0x64], edx
call fcn.0046d460
mov edx, dword [eax]
mov dword [esi + 0x68], edx
mov ecx, dword [eax + 4]
mov dword [esi + 0x6c], ecx
mov edx, dword [eax + 8]
mov dword [esi + 0x70], edx
mov eax, dword [eax + 0xc]
push edi
lea ecx, [esp + 0x9c]
push ecx
mov ecx, str.onlyborder
mov dword [esi + 0x74], eax
call fcn.0046d260
push edi
lea edx, [esp + 0x9c]
push edx
mov ecx, str.alpha
mov byte [esi + 0x7c], al
call fcn.0046ce60
mov dword [esi + 0x80], eax
push edi
lea eax, [esp + 0x9c]
push eax
mov ecx, str.transparent
call fcn.0046d260
lea ecx, [esp + 0xbc]
push ecx
lea edx, [esp + 0x9c]
push edx
mov edx, str.stretchall
mov ecx, str.paintmode
mov byte [esi + 0x84], al
call fcn.0046cc70
mov byte [esp + 0xe8], 0xa
mov eax, dword [esp + 0xd0]
push 0x4dce74
lea edi, [ebx + 6]
lea ecx, [esp + 0xc0]
call fcn.004484f0
test eax, eax
jne 0x4608ca
mov dword [esi + 0x78], eax
jmp 0x460918
mov eax, dword [esp + 0xd0]
push str.tiles
mov edi, 5
lea ecx, [esp + 0xc0]
call fcn.004484f0
test eax, eax
jne 0x4608f4
mov dword [esi + 0x78], 1
jmp 0x460918
mov eax, dword [esp + 0xd0]
push str.stretchall
mov edi, 0xa
lea ecx, [esp + 0xc0]
call fcn.004484f0
mov dword [esi + 0x78], 2
mov byte [esp + 0xe8], 5
cmp dword [esp + 0xd4], 8
jb 0x46093a
mov eax, dword [esp + 0xc0]
push eax
call fcn.00488fd0
add esp, 4
mov ebx, dword [esp + 0x1c]
lea ecx, [esp + 0x40]
lea eax, [esp + 0x98]
call fcn.0046c8e0
mov ecx, eax
mov byte [esp + 0xe8], 0x18
mov eax, dword [ecx + 0x14]
or dword [esp + 0x18], 1
push 0x4e4e58
mov edi, 5
call fcn.004484f0
test eax, eax
je 0x460a26
lea ecx, [esp + 0x7c]
lea eax, [esp + 0x98]
call fcn.0046c8e0
mov ecx, eax
mov dword [esp + 0xe8], 0x19
mov eax, dword [ecx + 0x14]
or dword [esp + 0x18], 2
push 0x4e5fb0
mov edi, 4
call fcn.004484f0
test eax, eax
je 0x460a26
lea ecx, [esp + 0x24]
lea eax, [esp + 0x98]
call fcn.0046c8e0
mov ecx, eax
mov dword [esp + 0xe8], 0x1a
or dword [esp + 0x18], edi
mov eax, dword [ecx + 0x14]
push 0x4e6148
mov edi, 9
call fcn.004484f0
test eax, eax
je 0x460a26
lea ecx, [esp + 0xbc]
lea eax, [esp + 0x98]
call fcn.0046c8e0
mov ecx, eax
mov dword [esp + 0xe8], 0x1b
mov eax, dword [ecx + 0x14]
or dword [esp + 0x18], 8
push 0x4e61b4
mov edi, 4
call fcn.004484f0
test eax, eax
mov byte [esp + 0x17], 0
jne 0x460a2b
mov byte [esp + 0x17], 1
test byte [esp + 0x18], 8
je 0x461130
and dword [esp + 0x18], 0xfffffff7
cmp dword [esp + 0xd4], 8
jb 0x460a55
mov eax, dword [esp + 0xc0]
push eax
call fcn.00488fd0
add esp, 4
xor edi, edi
mov esi, 7
mov dword [esp + 0xd4], esi
mov dword [esp + 0xd0], edi
mov word [esp + 0xc0], di
jmp 0x461135
lea ecx, [esp + 0x7c]
lea eax, [esp + 0x98]
call fcn.0046c8e0
mov ecx, eax
mov byte [esp + 0xe8], 0xb
mov eax, dword [ecx + 0x14]
push 0x4e5fb0
mov edi, 4
call fcn.004484f0
test eax, eax
sete byte [esp + 0x17]
mov byte [esp + 0xe8], 5
cmp dword [esp + 0x94], esi
jb 0x460acb
mov ecx, dword [esp + 0x80]
push ecx
call fcn.00488fd0
add esp, 4
cmp byte [esp + 0x17], 0
je 0x460dd5
push 0x88
call fcn.00488fa5
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0xe8], 0xc
je 0x460afd
push eax
call fcn.004665b0
mov esi, eax
jmp 0x460aff
xor esi, esi
lea edx, [esp + 0x7c]
push edx
lea eax, [esp + 0x9c]
mov byte [esp + 0xec], 5
mov ebx, esi
push eax
mov edx, 0x4d97fc
mov ecx, 0x4db470
mov dword [esp + 0x24], ebx
mov dword [esi + 4], 2
call fcn.0046cc70
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x3c]
mov byte [esp + 0xf0], 0xd
call fcn.00406430
mov edi, 8
mov byte [esp + 0xe8], 5
cmp dword [esp + 0x94], edi
jb 0x460b6a
mov ecx, dword [esp + 0x80]
push ecx
call fcn.00488fd0
add esp, 4
push 1
lea edx, [esp + 0x9c]
push edx
mov ecx, str.singleline
call fcn.0046d260
mov byte [esi + 0x60], al
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x9c]
push ecx
mov edx, 0x4d97fc
mov ecx, str.textcolor
call fcn.0046cc70
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x64]
mov byte [esp + 0xf0], 0xe
call fcn.00406430
mov byte [esp + 0xe8], 5
cmp dword [esp + 0x94], edi
jb 0x460bd2
mov edx, dword [esp + 0x80]
push edx
call fcn.00488fd0
add esp, 4
push 0
lea eax, [esp + 0x9c]
push eax
mov ecx, str.ellipsis
call fcn.0046d260
push 0
lea ecx, [esp + 0x9c]
push ecx
mov ecx, str.light
mov byte [esi + 0x80], al
call fcn.0046d260
push 3
lea edx, [esp + 0x9c]
push edx
mov ecx, str.glowsize
mov byte [esi + 0x81], al
call fcn.0046ce60
mov dword [esi + 0x84], eax
push 0
lea eax, [esp + 0x9c]
push eax
mov ecx, str.ellipsis
call fcn.0046d260
lea ecx, [esp + 0xbc]
push ecx
lea edx, [esp + 0x9c]
push edx
mov edx, 0x4dd30c
mov ecx, str.horzalign
mov byte [esi + 0x80], al
call fcn.0046cc70
mov byte [esp + 0xe8], 0xf
mov eax, dword [esp + 0xd0]
push 0x4dd30c
mov edi, 4
lea ecx, [esp + 0xc0]
call fcn.004484f0
test eax, eax
jne 0x460c87
mov dword [esi + 0x5c], eax
jmp 0x460cdb
mov eax, dword [esp + 0xd0]
push 0x4db490
mov edi, 6
lea ecx, [esp + 0xc0]
call fcn.004484f0
test eax, eax
jne 0x460cb1
mov dword [esi + 0x5c], 4
jmp 0x460cdb
mov eax, dword [esp + 0xd0]
push str.right
mov edi, 5
lea ecx, [esp + 0xc0]
call fcn.004484f0
neg eax
sbb eax, eax
and eax, 0xfffffffe
add eax, 2
mov dword [esi + 0x5c], eax
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x9c]
push ecx
mov edx, 0x4db490
mov ecx, str.vertalign
call fcn.0046cc70
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0xc4]
mov byte [esp + 0xf0], 0x10
call fcn.00406430
mov byte [esp + 0xe8], 0xf
cmp dword [esp + 0x94], 8
jb 0x460d31
mov edx, dword [esp + 0x80]
push edx
call fcn.00488fd0
add esp, 4
mov eax, dword [esp + 0xd0]
push 0x4dd324
mov edi, 3
lea ecx, [esp + 0xc0]
call fcn.004484f0
test eax, eax
jne 0x460d5b
mov dword [esi + 0x58], 1
jmp 0x460daa
mov eax, dword [esp + 0xd0]
push 0x4db490
mov edi, 6
lea ecx, [esp + 0xc0]
call fcn.004484f0
test eax, eax
jne 0x460d85
mov dword [esi + 0x58], 5
jmp 0x460daa
mov eax, dword [esp + 0xd0]
push str.bottom
lea ecx, [esp + 0xc0]
call fcn.004484f0
neg eax
sbb eax, eax
and eax, 2
add eax, 3
mov dword [esi + 0x58], eax
mov byte [esp + 0xe8], 5
cmp dword [esp + 0xd4], 8
jb 0x46093a
mov eax, dword [esp + 0xc0]
push eax
call fcn.00488fd0
add esp, 4
jmp 0x46093e
lea ecx, [esp + 0x7c]
lea eax, [esp + 0x98]
call fcn.0046c8e0
mov ecx, eax
mov byte [esp + 0xe8], 0x11
mov eax, dword [ecx + 0x14]
push 0x4e6148
mov edi, 9
call fcn.004484f0
test eax, eax
sete byte [esp + 0x17]
mov byte [esp + 0xe8], 5
cmp dword [esp + 0x94], esi
jb 0x460e29
mov ecx, dword [esp + 0x80]
push ecx
call fcn.00488fd0
add esp, 4
cmp byte [esp + 0x17], 0
je 0x460fb1
push 0x8c
call fcn.00488fa5
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0xe8], 0x12
je 0x460e5b
push eax
call fcn.004664f0
mov esi, eax
jmp 0x460e5d
xor esi, esi
push 0
lea edx, [esp + 0x9c]
mov byte [esp + 0xec], 5
mov ebx, esi
push edx
mov ecx, str.linetype
mov dword [esp + 0x24], ebx
mov dword [esi + 4], 3
call fcn.0046ce60
mov dword [esi + 0x3c], eax
push 1
lea eax, [esp + 0x9c]
push eax
mov ecx, str.linewidth
call fcn.0046ce60
lea ecx, [esp + 0x7c]
push ecx
lea edx, [esp + 0x9c]
push edx
mov edx, 0x4d97fc
mov ecx, str.bordercolor
mov dword [esi + 0x40], eax
call fcn.0046cc70
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
mov byte [esp + 0xf0], 0x13
call fcn.00406430
mov edi, 8
mov byte [esp + 0xe8], 5
cmp dword [esp + 0x94], edi
jb 0x460ef6
mov eax, dword [esp + 0x80]
push eax
call fcn.00488fd0
add esp, 4
push 0
lea ecx, [esp + 0x9c]
push ecx
mov ecx, str.roundwidth
call fcn.0046ce60
push 0
lea edx, [esp + 0x9c]
push edx
mov ecx, str.roundheight
mov dword [esi + 0x7c], eax
call fcn.0046ce60
mov dword [esi + 0x80], eax
push 0
lea eax, [esp + 0x9c]
push eax
mov ecx, str.transparent
call fcn.0046d260
lea ecx, [esp + 0x7c]
push ecx
lea edx, [esp + 0x9c]
push edx
mov edx, 0x4d97fc
mov ecx, str.bkcolor
mov byte [esi + 0x84], al
call fcn.0046cc70
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x60]
mov byte [esp + 0xf0], 0x14
call fcn.00406430
mov byte [esp + 0xe8], 5
cmp dword [esp + 0x94], edi
jb 0x460f92
mov eax, dword [esp + 0x80]
push eax
call fcn.00488fd0
add esp, 4
push 0
lea ecx, [esp + 0x9c]
push ecx
mov ecx, str.alpha
call fcn.0046ce60
mov dword [esi + 0x88], eax
jmp 0x46093e
lea ecx, [esp + 0x7c]
lea eax, [esp + 0x98]
call fcn.0046c8e0
mov ecx, eax
mov byte [esp + 0xe8], 0x15
mov eax, dword [ecx + 0x14]
push 0x4e61b4
mov edi, 4
call fcn.004484f0
test eax, eax
sete byte [esp + 0x17]
mov byte [esp + 0xe8], 5
cmp dword [esp + 0x94], esi
jb 0x461005
mov edx, dword [esp + 0x80]
push edx
call fcn.00488fd0
add esp, 4
cmp byte [esp + 0x17], 0
je 0x46093e
push 0x70
call fcn.00488fa5
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0xe8], 0x16
je 0x461034
push eax
call fcn.004663e0
mov esi, eax
jmp 0x461036
xor esi, esi
push 0
lea eax, [esp + 0x9c]
mov byte [esp + 0xec], 5
mov ebx, esi
push eax
mov ecx, str.linetype
mov dword [esp + 0x24], ebx
mov dword [esi + 4], 4
call fcn.0046ce60
push 1
lea ecx, [esp + 0x9c]
push ecx
mov ecx, str.linewidth
mov dword [esi + 0x3c], eax
call fcn.0046ce60
push 0
lea edx, [esp + 0x9c]
push edx
mov ecx, 0x4e61c0
mov dword [esi + 0x40], eax
call fcn.0046ce60
mov dword [esi + 0x44], eax
push 0
lea eax, [esp + 0x9c]
push eax
mov ecx, 0x4e61c8
call fcn.0046ce60
push 0
lea ecx, [esp + 0x9c]
push ecx
mov ecx, 0x4e61d0
mov dword [esi + 0x48], eax
call fcn.0046ce60
push 0
lea edx, [esp + 0x9c]
push edx
mov ecx, 0x4e61d8
mov dword [esi + 0x4c], eax
call fcn.0046ce60
mov dword [esi + 0x50], eax
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x9c]
push ecx
mov edx, 0x4d97fc
mov ecx, str.color
call fcn.0046cc70
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x54]
mov byte [esp + 0xf0], 0x17
call fcn.00406430
mov byte [esp + 0xe8], 5
cmp dword [esp + 0x94], 8
jb 0x46093a
mov edx, dword [esp + 0x80]
push edx
call fcn.00488fd0
add esp, 4
jmp 0x46093e
xor edi, edi
lea esi, [edi + 7]
test byte [esp + 0x18], 4
je 0x461162
and dword [esp + 0x18], 0xfffffffb
cmp dword [esp + 0x3c], 8
jb 0x461155
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00488fd0
add esp, 4
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], edi
mov word [esp + 0x28], di
test byte [esp + 0x18], 2
je 0x46119e
and dword [esp + 0x18], 0xfffffffd
cmp dword [esp + 0x94], 8
jb 0x461188
mov edx, dword [esp + 0x80]
push edx
call fcn.00488fd0
add esp, 4
mov dword [esp + 0x94], esi
mov dword [esp + 0x90], edi
mov word [esp + 0x80], di
mov dword [esp + 0xe8], 5
test byte [esp + 0x18], 1
je 0x4611c9
and dword [esp + 0x18], 0xfffffffe
cmp dword [esp + 0x58], 8
jb 0x4611c9
mov eax, dword [esp + 0x44]
push eax
call fcn.00488fd0
add esp, 4
cmp byte [esp + 0x17], 0
je 0x461333
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x9c]
push edx
mov edx, 0x4d97fc
mov ecx, 0x4e58d8
call fcn.0046cc70
push 0xffffffffffffffff
lea ecx, [ebx + 8]
push 0
mov byte [esp + 0xf0], 0x1c
call fcn.00406430
mov esi, 8
mov byte [esp + 0xe8], 5
cmp dword [esp + 0x58], esi
jb 0x461224
mov eax, dword [esp + 0x44]
push eax
call fcn.00488fd0
add esp, 4
lea ecx, [esp + 0x7c]
push ecx
lea edx, [esp + 0x9c]
push edx
mov edx, 0x4d97fc
mov ecx, str.state
call fcn.0046cc70
mov byte [esp + 0xe8], 0x1d
cmp dword [esp + 0x94], esi
mov edx, dword [esp + 0x80]
jae 0x46125f
lea edx, [esp + 0x80]
call fcn.00464f70
mov dword [ebx + 0x24], eax
push 0
lea eax, [esp + 0x9c]
push eax
mov ecx, 0x4dd30c
call fcn.0046ce60
push 0
lea ecx, [esp + 0x9c]
push ecx
mov ecx, 0x4dd324
mov dword [ebx + 0x28], eax
call fcn.0046ce60
push 0
lea edx, [esp + 0x9c]
push edx
mov ecx, str.width
mov dword [ebx + 0x2c], eax
call fcn.0046ce60
mov dword [ebx + 0x30], eax
push 0
lea eax, [esp + 0x9c]
push eax
mov ecx, str.height
call fcn.0046ce60
push 1
lea ecx, [esp + 0x9c]
push ecx
mov ecx, str.visible
mov dword [ebx + 0x34], eax
call fcn.0046d260
mov byte [ebx + 0x38], al
mov eax, dword [esp + 0x20]
mov esi, dword [eax + 0x124]
add eax, 0x120
mov eax, dword [esi + 4]
lea edx, [esp + 0x1c]
push edx
push eax
push esi
call fcn.004142d0
mov ecx, dword [esp + 0x20]
add ecx, 0x120
mov edi, eax
call fcn.004392e0
mov dword [esi + 4], edi
mov eax, dword [edi + 4]
mov dword [eax], edi
mov byte [esp + 0xe8], 5
cmp dword [esp + 0x94], 8
jb 0x461333
mov ecx, dword [esp + 0x80]
push ecx
call fcn.00488fd0
add esp, 4
mov eax, dword [esp + 0xb8]
test eax, eax
je 0x461359
mov esi, dword [eax + 0x40]
test esi, esi
je 0x461359
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
test eax, eax
jne 0x461399
mov esi, dword [esi + 0x40]
test esi, esi
jne 0x461345
cmp dword [esp + 0xb4], 8
jb 0x461373
mov ecx, dword [esp + 0xa0]
push ecx
call fcn.00488fd0
add esp, 4
mov ecx, dword [esp + 0xe0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.004a74b2
mov esp, ebp
pop ebp
ret 4
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
test eax, eax
je 0x461359
mov dword [esp + 0xb8], eax
jmp 0x460670