Function at 0x499650
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x69d8be
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
xor ebx, ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x18], esi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], 1
mov dword [esi + 0x24], ebx
mov dword [esi], 0x6ae1e4
mov dword [esp + 0x24], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
lea ecx, [esi + 0x5c]
mov byte [esp + 0x24], 3
call fcn.00511260
lea ecx, [esi + 0x530]
mov byte [esp + 0x24], 4
call fcn.00514f30
lea edi, [esi + 0x1480]
mov ecx, edi
mov byte [esp + 0x24], 5
call fcn.00514f30
lea ebp, [esi + 0x23d0]
mov ecx, ebp
mov byte [esp + 0x24], 6
call fcn.00514f30
lea ecx, [esi + 0x3324]
mov byte [esp + 0x24], 7
call fcn.00511260
lea ecx, [esi + 0x37f8]
mov byte [esp + 0x24], 8
call fcn.00511260
lea ecx, [esi + 0x3ccc]
mov byte [esp + 0x24], 9
call fcn.00511260
lea ecx, [esi + 0x41a0]
mov byte [esp + 0x24], 0xa
call fcn.00511260
lea ecx, [esi + 0x4674]
mov byte [esp + 0x24], 0xb
call fcn.00511260
lea ecx, [esi + 0x4b48]
mov byte [esp + 0x24], 0xc
call fcn.00511260
lea ecx, [esi + 0x501c]
mov byte [esp + 0x24], 0xd
call fcn.00517610
mov dword [esi + 0x50bc], ebx
mov dword [esi + 0x50b8], ebx
mov dword [esi + 0x50c0], ebx
mov dword [esi + 0x50c4], ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x3f800000
push ebx
push 0x3f400000
push 0x3f000000
push 0x3f800000
push ebx
push 0x3f000000
push 0x3e800000
push 0x3f800000
push ebx
push 0x3e800000
push ebx
push 1
push 0x20
push 0x80
mov dword [esi + 0x58], 3
mov eax, dword [0x6f355c]
cdq
sub eax, edx
push str.talk1_close_button.tga
sar eax, 1
push ebx
sub eax, 0x125
push 0x16
mov dword [esi + 4], eax
mov eax, dword [0x6f3560]
mov ecx, dword [esi + 4]
push 0x16
push 0x20
cdq
push 0x20
sub eax, edx
push 0xe
sar eax, 1
sub eax, 0xfa
push 0x22f
push eax
push ecx
lea ecx, [esi + 0x5c]
mov byte [esp + 0xa8], 0xf
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0x24a
mov dword [esi + 0x10], 0x200
mov dword [esi + 0x508c], ebx
mov dword [esi + 0x5090], ebx
mov byte [esi + 0x5094], bl
mov byte [esi + 0x50b6], bl
mov dword [esi + 0x3320], ebx
mov dword [esi + 0x50c8], ebx
call fcn.00512a00
push 1
push 0x40800000
push 0x40800000
push 0x3f000000
push ebx
push 0x3f200000
push 0x3f000000
push 0x3f000000
push 0x3f000000
push 0x3f000000
push 0x3ec00000
push 0x3f000000
push ebx
push 0x3f000000
push 0x3ec00000
push 0x3f800000
push 0x3f000000
push 0x3ec00000
push 0x3e800000
push 0x3f800000
push 0x3f000000
push 0x3e800000
push 0x3e000000
push 0x3f800000
push 0x3f000000
push 0x3e000000
push ebx
push 0x3f000000
push ebx
push 0x3ec00000
push 0x3e800000
push 0x3f000000
push ebx
push 0x3e800000
push 0x3e000000
push 0x3f000000
push ebx
push 0x3e000000
push ebx
push 0x40
push 0x80
push str.scrollbar.tga
push 0x43010000
push 0x41500000
mov edx, dword [esi + 8]
push 0x41980000
mov eax, dword [esi + 4]
push ebx
push 1
push 0x13
push 0xd
push 0x20
push 0x10
push 0xa7
push 0xd
push 0x5c
push 0xe5
push edx
push eax
mov ecx, edi
call fcn.005166b0
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
push 0x42f00000
push ebx
push 0xa9
push 0xe1
add ecx, 0x5b
push ecx
add edx, 0xf
push edx
mov ecx, edi
call fcn.005152b0
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push 0xff
push 0xff
push 0xff
push 0xa
push 0xc8
push 0x66
push 0x1a
push eax
push ecx
lea ecx, [esi + 0x501c]
call fcn.005171a0
fild dword [esi + 0x5044]
sub esp, 8
mov ecx, edi
fstp dword [esp + 4]
fild dword [esi + 0x5080]
fstp dword [esp]
call fcn.00515110
push 1
push 0x40800000
push 0x40800000
push 0x3f000000
push ebx
push 0x3f200000
push 0x3f000000
push 0x3f000000
push 0x3f000000
push 0x3f000000
push 0x3ec00000
push 0x3f000000
push ebx
push 0x3f000000
push 0x3ec00000
push 0x3f800000
push 0x3f000000
push 0x3ec00000
push 0x3e800000
push 0x3f800000
push 0x3f000000
push 0x3e800000
push 0x3e000000
push 0x3f800000
push 0x3f000000
push 0x3e000000
push ebx
push 0x3f000000
push ebx
push 0x3ec00000
push 0x3e800000
push 0x3f000000
push ebx
push 0x3e800000
push 0x3e000000
push 0x3f000000
push ebx
push 0x3e000000
push ebx
push 0x40
push 0x80
push str.scrollbar.tga
push 0x439d0000
push 0x41500000
mov edx, dword [esi + 8]
push 0x41980000
mov eax, dword [esi + 4]
push ebx
push 1
push 0x13
push 0xd
push 0x20
push 0x10
push 0x160
push 0xd
push 0x53
push 0x234
push edx
push eax
mov ecx, ebp
call fcn.005166b0
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
push 0x42f00000
push ebx
push 0x160
push 0x130
add ecx, 0x50
push ecx
add edx, 0x10f
push edx
mov ecx, ebp
call fcn.005152b0
push 0x40e00000
push ebx
mov ecx, ebp
call fcn.00515110
mov ecx, esi
call fcn.00497d10
mov eax, dword [0x8494ac]
mov ecx, dword [eax + 0x2c8]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
mov dword [esp + 0x14], ecx
push eax
mov ecx, 0x21ec5a0
call fcn.0054e1d0
mov eax, dword [esp + 0x14]
cmp eax, dword [0x21ec5a4]
je 0x499b06
mov eax, dword [eax + 0x10]
cmp eax, ebx
je 0x499b06
mov cl, byte [eax + 0x73]
mov byte [esi + 0x5094], cl
call fcn.0058d520
mov ecx, dword [esp + 0x1c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret