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

Disassembly:
push 0xffffffffffffffff
push 0x4bafc8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x4e3f80]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esp + 0x30]
add eax, 0xfffffffd
cmp eax, 0x2c
ja case.0x4219ee.4
movzx eax, byte [eax + 0x421ef4]
jmp dword [eax*4 + 0x421ec4]
mov edx, dword [esi]
mov eax, dword [edx + 0x78]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x7c]
mov ecx, esi
call eax
mov dword [esi + 0x178], 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x20
ret 0xc
mov eax, dword [esi + 0x120]
test eax, eax
je 0x421a33
cmp dword [eax + 0x2c], 0x28
je 0x421a4c
mov eax, esi
call fcn.004233d0
mov ecx, dword [0x4ee74c]
cmp dword [ecx + 0x288], eax
jne case.0x4219ee.4
mov edx, dword [esi]
mov eax, dword [edx + 0x78]
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x7c]
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x74]
mov ecx, esi
call eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x20
ret 0xc
mov ecx, dword [esp + 0x34]
push ecx
lea ecx, [esp + 0x34]
call fcn.004019b0
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x40]
push edx
mov dword [esp + 0x38], 0
call fcn.0041ec20
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 2
call fcn.00401a70
lea eax, [esp + 0x34]
push 0x4c3af8
push eax
call fcn.00411640
add esp, 8
test al, al
je 0x421ae5
lea ecx, [esp + 0x34]
lea eax, [esi + 0x124]
push ecx
call fcn.00411710
add esp, 4
test al, al
jne 0x421b0b
mov edx, dword [esi]
mov eax, dword [edx + 0x60]
mov ecx, esi
call eax
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov eax, dword [esi]
add dword [esi + 0xa8], ecx
add dword [esi + 0xac], edx
mov edx, dword [eax + 0x60]
mov ecx, esi
call edx
lea ecx, [esp + 0x34]
call fcn.00401a70
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x20
ret 0xc
mov eax, dword [esi + 8]
test eax, eax
je case.0x4219ee.4
push eax
call fcn.0049081d
mov eax, dword [esi + 0x10]
add esp, 4
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x421b42
sub eax, edx
sar eax, 1
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00490828
mov dword [esi + 8], eax
mov esi, dword [esi + 0x10]
add esp, 4
mov ecx, eax
movzx eax, word [esi]
mov word [ecx], ax
add esi, 2
add ecx, 2
test ax, ax
jne 0x421b73
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x20
ret 0xc
mov eax, dword [esi + 0x160]
test eax, eax
je case.0x4219ee.4
cmp dword [esi + 0x168], 0
je case.0x4219ee.4
push eax
call fcn.0046ccd0
mov ecx, dword [esi + 0x164]
mov edi, eax
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x421be7
test dx, dx
je 0x421be3
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x421be7
add eax, 4
add ecx, 4
test dx, dx
jne 0x421bc1
xor eax, eax
jmp 0x421bec
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x421c48
lea ecx, [esp + 0x34]
call fcn.0041c470
mov dword [esp + 0x28], 3
mov eax, dword [esi + 0x164]
mov ecx, dword [esi + 0x160]
push eax
push ecx
lea edx, [esp + 0x3c]
push 0x4c8868
push edx
call fcn.0040a120
mov ecx, dword [0x4ee74c]
mov edx, dword [esp + 0x44]
mov eax, dword [ecx]
mov eax, dword [eax + 0x64]
add esp, 0x10
push 0
push edx
push 0x1e
call eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x28], 0xffffffff
call fcn.00401a70
push edi
mov dword [esi + 0x168], 0
call fcn.0049081d
add esp, 4
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x20
ret 0xc
cmp dword [esi + 0x160], 0
je 0x421ca3
mov ecx, dword [esi + 0x164]
push ecx
call fcn.0049081d
mov edx, dword [esi + 0x160]
add esp, 4
push edx
call fcn.0046ccd0
mov dword [esi + 0x164], eax
mov dword [esi + 0x168], 1
mov eax, dword [esi]
mov edx, dword [eax + 0x78]
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x7c]
mov ecx, esi
call edx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x20
ret 0xc
and dword [esi + 0xc8], 0xffffffdf
cmp dword [esi + 0x50], 0
jne case.0x4219ee.4
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
call edx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x20
ret 0xc
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
mov eax, dword [esi]
mov eax, dword [eax + 0x64]
push ecx
push edx
push 0x1b
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0xcc]
mov ecx, esi
call eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x20
ret 0xc
mov edx, dword [esi]
mov eax, dword [edx + 0xc8]
call eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x20
ret 0xc
push str.scrollUp
add esi, 0x124
push esi
call fcn.00408510
add esp, 8
test al, al
je case.0x4219ee.4
push 0x4c6a84
lea ecx, [esp + 0x3c]
call fcn.004019b0
push 1
lea ecx, [esp + 0x3c]
mov dword [esp + 0x2c], 4
push ecx
mov ecx, dword [0x4ee74c]
call fcn.0043de40
lea ecx, [esp + 0x38]
mov esi, eax
mov dword [esp + 0x28], 0xffffffff
call fcn.00401a70
push str.scrollUp
lea ecx, [esp + 0x10]
call fcn.004019b0
push 1
lea edx, [esp + 0x10]
mov dword [esp + 0x2c], 5
mov ecx, dword [0x4ee74c]
push edx
call fcn.0043de40
lea ecx, [esp + 0xc]
mov edi, eax
mov dword [esp + 0x28], 0xffffffff
call fcn.00401a70
test esi, esi
je case.0x4219ee.4
test edi, edi
je case.0x4219ee.4
mov ecx, dword [edi + 0xac]
add ecx, 0x15
jmp 0x421e9b
push str.scrollDown
add esi, 0x124
push esi
call fcn.00408510
add esp, 8
test al, al
je case.0x4219ee.4
push 0x4c6a84
lea ecx, [esp + 0x14]
call fcn.004019b0
push 1
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 6
push ecx
mov ecx, dword [0x4ee74c]
call fcn.0043de40
lea ecx, [esp + 0x10]
mov esi, eax
mov dword [esp + 0x28], 0xffffffff
call fcn.00401a70
push str.scrollDown
lea ecx, [esp + 0x18]
call fcn.004019b0
push 1
lea edx, [esp + 0x18]
mov dword [esp + 0x2c], 7
mov ecx, dword [0x4ee74c]
push edx
call fcn.0043de40
lea ecx, [esp + 0x14]
mov edi, eax
mov dword [esp + 0x28], 0xffffffff
call fcn.00401a70
test esi, esi
je case.0x4219ee.4
test edi, edi
je case.0x4219ee.4
mov ecx, dword [edi + 0xac]
sub ecx, 0xa
mov edx, dword [edi + 0xa8]
mov eax, dword [esi]
mov eax, dword [eax + 0x1c]
push ecx
push edx
push 1
mov ecx, esi
call eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x20
ret 0xc