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

Disassembly:
push 0xffffffffffffffff
push 0x59528b
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x60aecc]
xor eax, esp
mov dword [esp + 0xac], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x60aecc]
xor eax, esp
push eax
lea eax, [esp + 0xc4]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x34], 4
mov ecx, dword [edi + 0x3c]
mov byte [esp + 0x24], 1
jne 0x470f54
xor ebp, ebp
push ebp
call fcn.004cbc20
push 0xffffffffffffffff
push ecx
mov ebx, eax
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.global
mov dword [esp + 0x2c], ebx
call fcn.00496da0
mov ecx, edi
call fcn.0049f8b0
mov esi, eax
cmp esi, ebp
je 0x470e90
call fcn.004988c0
mov eax, dword [0x60371c]
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call fcn.00496da0
call fcn.00401000
add esp, 4
test al, al
jne 0x470e90
mov eax, dword [esi + 0x28]
or eax, 0x100
push eax
mov ecx, esi
call fcn.0049f160
lea eax, [ebx - 5]
cmp dword [edi + 0x4c], eax
mov byte [esp + 0x24], 0
jle 0x470ea0
mov dword [edi + 0x4c], eax
cmp dword [edi + 0x4c], ebp
jge 0x470eaa
mov dword [edi + 0x4c], ebp
cmp ebp, ebp
push 0xffffffffffffffff
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.scrollup
jle 0x470ed1
call fcn.00496da0
mov ecx, edi
call fcn.0049f8b0
mov edx, dword [eax + 0x28]
or edx, 0x100
jmp 0x470ee6
call fcn.00496da0
mov ecx, edi
call fcn.0049f8b0
mov edx, dword [eax + 0x28]
and edx, 0xfffffeff
push edx
mov ecx, eax
call fcn.0049f160
mov ecx, dword [edi + 0x4c]
add ecx, 0xa
push 0xffffffffffffffff
push ecx
cmp ecx, ebx
mov dword [esp + 0x1c], esp
mov ecx, esp
push str.scrolldown
jge 0x470f28
call fcn.00496da0
mov ecx, edi
call fcn.0049f8b0
mov edx, dword [eax + 0x28]
or edx, 0x100
push edx
mov ecx, eax
call fcn.0049f160
jmp 0x47106f
call fcn.00496da0
mov ecx, edi
call fcn.0049f8b0
mov esi, eax
mov eax, dword [esi + 0x28]
and eax, 0xfffffeff
push eax
mov ecx, esi
call fcn.0049f160
mov edx, dword [esi]
mov eax, dword [edx + 0x4c]
mov ecx, esi
call eax
jmp 0x47106f
push 1
call fcn.004cbc20
push 0xffffffffffffffff
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.local
mov dword [esp + 0x2c], eax
call fcn.00496da0
mov ecx, edi
call fcn.0049f8b0
mov esi, eax
test esi, esi
je 0x470fb3
call fcn.004988c0
mov edx, dword [0x60371c]
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.00496da0
call fcn.00401000
add esp, 4
test al, al
jne 0x470fb3
mov eax, dword [esi + 0x28]
or eax, 0x100
push eax
mov ecx, esi
call fcn.0049f160
push 0xffffffffffffffff
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.topplayers
call fcn.00496da0
mov ecx, edi
call fcn.0049f8b0
mov esi, eax
test esi, esi
je 0x471006
call fcn.004988c0
mov eax, dword [0x60371c]
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call fcn.00496da0
call fcn.00401000
add esp, 4
test al, al
je 0x471006
mov eax, dword [esi + 0x28]
or eax, 0x100
push eax
mov ecx, esi
call fcn.0049f160
push 0xffffffffffffffff
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.scrollup
call fcn.00496da0
mov ecx, edi
call fcn.0049f8b0
mov edx, dword [eax + 0x28]
and edx, 0xfffffeff
push edx
mov ecx, eax
call fcn.0049f160
push 0xffffffffffffffff
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.scrolldown
call fcn.00496da0
mov ecx, edi
call fcn.0049f8b0
mov esi, eax
mov eax, dword [esi + 0x28]
and eax, 0xfffffeff
push eax
mov ecx, esi
call fcn.0049f160
mov edx, dword [esi]
mov eax, dword [edx + 0x4c]
mov ecx, esi
call eax
mov dword [edi + 0x4c], 0
xor ebp, ebp
mov ecx, dword [esp + 0x20]
xor ebx, ebx
cmp dword [edi + 0x4c], ecx
jge 0x471262
lea esi, [edi + 0x50]
jmp 0x471085
xor ebp, ebp
cmp ebx, 0xa
jge 0x471262
push 0x40
lea edx, [esp + 0x84]
push edx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x27]
push ecx
mov ecx, dword [edi + 0x4c]
push 0x40
lea edx, [esp + 0x54]
push edx
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x54]
push eax
add ecx, ebx
push ecx
mov ecx, dword [edi + 0x3c]
push edx
call fcn.004cbc60
mov ecx, dword [esi]
mov eax, dword [ecx + 0x28]
or eax, 0x100
push eax
call fcn.0049f160
push ecx
lea eax, [esp + 0x44]
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call fcn.00496da0
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 0x70]
call eax
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
mov ebp, 0x14
cmp ebp, 1
jle 0x471142
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esi]
call fcn.004b8e90
mov eax, dword [esi]
mov edx, dword [eax + 0x1c]
sub edx, dword [eax + 0x14]
cmp dword [esp + 0x34], edx
jge 0x471132
cmp dword [esp + 0x30], 0
jl 0x471132
mov ecx, dword [eax + 0x20]
sub ecx, dword [eax + 0x18]
cmp dword [esp + 0x38], ecx
jle 0x471142
mov eax, dword [eax + 0x34]
sub ebp, 1
push ebp
mov ecx, eax
call fcn.004b6860
jmp 0x471100
lea ecx, [esp + 0x1c]
call fcn.00496d90
mov edx, dword [esp + 0x28]
push edx
lea eax, [esp + 0x20]
push 0x5a9180
push eax
mov dword [esp + 0xd8], 0
call fcn.00498110
add esp, 8
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.004971d0
mov ecx, dword [esi + 0x28]
mov eax, dword [ecx]
mov edx, dword [eax + 0x70]
call edx
mov ecx, dword [esi + 0x28]
mov eax, dword [ecx + 0x28]
or eax, 0x100
push eax
call fcn.0049f160
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx + 0x28]
or eax, 0x100
push eax
call fcn.0049f160
mov eax, dword [esp + 0x3c]
push eax
lea ecx, [esp + 0x20]
push 0x5afcd4
push ecx
call fcn.00498110
add esp, 8
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.004971d0
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
mov edx, dword [eax + 0x70]
call edx
cmp byte [esp + 0x1b], 0
jne 0x471239
call fcn.004988c0
mov eax, dword [0x60371c]
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call fcn.00496da0
call fcn.00401000
add esp, 4
test al, al
jne 0x471239
call fcn.004988c0
mov edx, dword [0x603720]
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.00496da0
call fcn.00401000
add esp, 4
test al, al
jne 0x471239
mov ecx, dword [esi + 0x78]
mov eax, dword [ecx + 0x28]
or eax, 0x100
push eax
call fcn.0049f160
lea ecx, [esp + 0x1c]
mov dword [esp + 0xcc], 0xffffffff
call fcn.00497320
mov eax, dword [edi + 0x4c]
add ebx, 1
add eax, ebx
add esi, 4
cmp eax, dword [esp + 0x20]
jl 0x471083
mov ecx, dword [esp + 0xc4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xac]
xor ecx, esp
call fcn.0055d2d5
add esp, 0xbc
ret