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

Disassembly:
sub esp, 0x2ec
mov edx, dword [0x5e8d0c]
mov eax, dword [str.SCOREBOARDFONT.BMP]
push ebx
push esi
mov esi, ecx
mov ecx, dword [0x5e8d08]
mov dword [esp + 0x78], ecx
movzx ecx, word [0x5e8d14]
mov dword [esp + 0x7c], edx
mov dl, byte [0x5e8d16]
mov word [esp + 0x84], cx
mov ecx, dword [0x5e8cf4]
mov dword [esp + 0x74], eax
mov eax, dword [0x5e8d10]
mov byte [esp + 0x86], dl
mov edx, dword [0x5e8cf8]
mov dword [esp + 0xb8], ecx
movzx ecx, word [0x5e8d00]
xor ebx, ebx
push ebx
mov dword [esp + 0x84], eax
mov eax, dword [str.SCOREBOARDBKG.BMP]
push str.ScoreboardFont
mov dword [esp + 0xc4], edx
mov dword [esp + 0xbc], eax
mov eax, dword [0x5e8cfc]
push 0x40
lea edx, [esp + 0x80]
mov word [esp + 0xd0], cx
push edx
mov ecx, 0xa18578
mov dword [esp + 0xd0], eax
call fcn.004d2500
test eax, eax
jne 0x49a8cd
lea eax, [esp + 0x74]
push eax
call fcn.0058b0cc
add esp, 4
push ebx
push str.ScoreboardBackground
push 0x40
lea ecx, [esp + 0xc0]
push ecx
mov ecx, 0xa18578
call fcn.004d2500
test eax, eax
jne 0x49a8fb
lea edx, [esp + 0xb4]
push edx
call fcn.0058b0cc
add esp, 4
fldz
push ebx
fst dword [esi + 0x44]
push str.ScoreboardMaxEntries
fstp dword [esi + 0x48]
push 0x40
fld dword [0x5aded4]
lea eax, [esp + 0x40]
fstp dword [esi + 0x4c]
push eax
fld dword [0x5bfe04]
mov ecx, 0xa18578
fstp dword [esi + 0x50]
mov dword [esi + 0x40], 0x20
fld1
fst dword [esp + 0x1c]
fstp dword [esp + 0x18]
call fcn.004d2500
test eax, eax
jne 0x49a951
lea ecx, [esp + 0x34]
push ecx
call fcn.0058acaa
add esp, 4
mov dword [esi + 0x40], eax
push ebx
push str.ScoreboardStartX
push 0x40
lea edx, [esp + 0x40]
push edx
mov ecx, 0xa18578
call fcn.004d2500
test eax, eax
jne 0x49a97c
lea eax, [esp + 0x34]
push eax
call fcn.0058ad69
fstp dword [esi + 0x44]
add esp, 4
push ebx
push str.ScoreboardIncX
push 0x40
lea ecx, [esp + 0x40]
push ecx
mov ecx, 0xa18578
call fcn.004d2500
test eax, eax
jne 0x49a9a7
lea edx, [esp + 0x34]
push edx
call fcn.0058ad69
fstp dword [esi + 0x48]
add esp, 4
push ebx
push str.ScoreboardStartY
push 0x40
lea eax, [esp + 0x40]
push eax
mov ecx, 0xa18578
call fcn.004d2500
test eax, eax
jne 0x49a9d2
lea ecx, [esp + 0x34]
push ecx
call fcn.0058ad69
fstp dword [esi + 0x4c]
add esp, 4
push ebx
push str.ScoreboardIncY
push 0x40
lea edx, [esp + 0x40]
push edx
mov ecx, 0xa18578
call fcn.004d2500
test eax, eax
jne 0x49a9fd
lea eax, [esp + 0x34]
push eax
call fcn.0058ad69
fstp dword [esi + 0x50]
add esp, 4
push ebx
push str.ScoreboardScaleX
push 0x40
lea ecx, [esp + 0x40]
push ecx
mov ecx, 0xa18578
call fcn.004d2500
test eax, eax
jne 0x49aa29
lea edx, [esp + 0x34]
push edx
call fcn.0058ad69
fstp dword [esp + 0x10]
add esp, 4
push ebx
push str.ScoreboardScaleY
push 0x40
lea eax, [esp + 0x40]
push eax
mov ecx, 0xa18578
call fcn.004d2500
test eax, eax
jne 0x49aa55
lea ecx, [esp + 0x34]
push ecx
call fcn.0058ad69
fstp dword [esp + 0xc]
add esp, 4
fldz
push edi
lea edi, [esi + 0x34]
fstp dword [esi + 0x30]
mov dword [edi], ebx
mov dword [esi + 0x3c], ebx
mov eax, dword [0x679820]
cmp eax, ebx
jne 0x49aa71
mov eax, 0x5ad73f
mov edx, dword [str.uifont.mas]
push edx
push eax
lea eax, [esp + 0x100]
push 0x5aded8
push eax
call fcn.00589571
add esp, 0x10
push ebx
lea ecx, [esp + 0xfc]
push ecx
mov ecx, dword [0xa1e7e0]
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x20], ebx
call fcn.00536720
lea ecx, [esp + 0x18]
call fcn.0056b630
mov ecx, dword [0x679850]
cmp ecx, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
jne 0x49aacf
mov ecx, 0x5ad73f
mov eax, dword [0x91d618]
cmp eax, ebx
jne 0x49aadd
mov eax, 0x5ad73f
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.004f7ae0
mov ecx, dword [0xa1e7e0]
push edi
push 1
lea eax, [esp + 0x80]
push eax
call fcn.00547d90
mov eax, dword [edi]
cmp eax, ebx
pop edi
je 0x49ab19
fld dword [esp + 0xc]
fstp dword [eax + 0x9c]
fld dword [esp + 8]
fstp dword [eax + 0xa0]
lea ecx, [esp + 0x14]
call fcn.004f7cf0
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x49ab37
mov ecx, dword [0xa1e7e0]
push ebx
push eax
call fcn.00536810
cmp dword [0xa1e864], ebx
je 0x49ab54
lea ecx, [esp + 0xb4]
push ecx
mov ecx, 0xa47ba8
call fcn.00543f80
mov dword [esi + 0x3c], eax
lea ecx, [esp + 0x14]
call fcn.004f7cf0
lea ecx, [esp + 0x14]
call fcn.00406be0
pop esi
pop ebx
add esp, 0x2ec
ret