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

Disassembly:
push 0xffffffffffffffff
push 0x4e8600
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push ebp
push esi
lea eax, [esp + 0x74]
push edi
mov esi, ecx
push eax
mov dword [esp + 0x54], esi
call fcn.0041676d
lea ecx, [esp + 0x7c]
push ecx
call fcn.0043f2e0
xor ebx, ebx
push 2
mov dword [esp + 0x68], ebx
call fcn.00445f00
add esp, 0xc
cmp eax, ebx
mov dword [esp + 0x5c], eax
je 0x4a15a1
mov word [eax], bx
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], ebx
push 0x4ebd38
mov dword [esp + 0x74], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
lea edx, [esi + 2]
push edx
call fcn.00445f00
mov ecx, esi
mov edx, ecx
shr ecx, 2
mov esi, 0x4ebd38
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x18], eax
push 2
call fcn.00445f00
add esp, 8
cmp eax, ebx
mov dword [esp + 0x1c], eax
je 0x4a15f5
mov word [eax], bx
push 2
call fcn.00445f00
add esp, 4
cmp eax, ebx
mov dword [esp + 0x18], eax
je 0x4a160a
mov word [eax], bx
push 2
call fcn.00445f00
add esp, 4
cmp eax, ebx
mov dword [esp + 0x28], eax
je 0x4a161f
mov word [eax], bx
push 2
call fcn.00445f00
add esp, 4
cmp eax, ebx
mov dword [esp + 0x20], eax
je 0x4a1634
mov word [eax], bx
push 1
push 0x2c
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0x68]
mov byte [esp + 0x7c], 5
call fcn.0045a420
push ebx
lea ecx, [esp + 0x24]
push ecx
push eax
call fcn.00449370
mov edi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x84]
mov eax, 0x4ebd38
add esp, 0xc
cmp word [edi], 0x2a
mov esi, edi
mov dword [esp + 0x48], ebp
mov dword [esp + 0x78], esi
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], eax
mov byte [esp + 0x13], bl
jne 0x4a16c2
lea eax, [esp + 0x78]
lea edx, [edi + 2]
push eax
mov byte [esp + 0x17], 1
mov dword [esp + 0x7c], edx
call fcn.0043f2e0
mov esi, dword [esp + 0x7c]
add esp, 4
cmp esi, ebx
mov ecx, esi
mov dword [esp + 0x24], ecx
je 0x4a16ec
xor eax, eax
mov ax, word [esi]
cmp ax, bx
je 0x4a16ec
cmp ax, 0x2c
je 0x4a16e8
mov ax, word [ecx + 2]
add ecx, 2
cmp ax, bx
jne 0x4a16d6
mov dword [esp + 0x24], ecx
mov dx, word [ecx]
mov word [ecx], bx
cmp word [esi], 0x2d
mov word [esp + 0x4c], dx
jne 0x4a184b
mov eax, esi
mov ecx, str._sps
mov edx, 3
lea ecx, [ecx]
movzx edi, word [eax]
movsx ebp, byte [ecx]
or edi, 0x20
or ebp, 0x20
add eax, 2
inc ecx
cmp ebp, edi
jne 0x4a1739
dec edx
jns 0x4a1710
mov eax, dword [esp + 0x54]
mov dword [esp + 0x54], eax
or dword [esp + 0x58], 1
jmp 0x4a17e0
mov eax, esi
mov ecx, str._font:
mov edx, 5
movzx edi, word [eax]
movsx ebp, byte [ecx]
or edi, 0x20
or ebp, 0x20
add eax, 2
inc ecx
cmp ebp, edi
jne 0x4a1768
dec edx
jns 0x4a1745
add esi, 0xc
mov dword [esp + 0x34], esi
jmp 0x4a17e0
mov eax, esi
mov ecx, str._hfont:
mov edx, 6
movzx edi, word [eax]
movsx ebp, byte [ecx]
or edi, 0x20
or ebp, 0x20
add eax, 2
inc ecx
cmp ebp, edi
jne 0x4a1794
dec edx
jns 0x4a1774
add esi, 0xe
mov dword [esp + 0x2c], esi
jmp 0x4a17e0
mov eax, esi
mov ecx, str._color:
mov edx, 6
movzx edi, word [eax]
movsx ebp, byte [ecx]
or edi, 0x20
or ebp, 0x20
add eax, 2
inc ecx
cmp ebp, edi
jne 0x4a17c0
dec edx
jns 0x4a17a0
add esi, 0xe
mov dword [esp + 0x30], esi
jmp 0x4a17e0
push 5
push esi
push str._left
call fcn.004403f0
add esp, 0xc
test al, al
je 0x4a17e0
mov dword [esp + 0x54], SysReAllocStringLen
mov dword [esp + 0x58], ebx
mov ax, word [esi]
cmp ax, bx
je 0x4a1813
cmp ax, 9
jb 0x4a17f4
cmp ax, 0xd
jbe 0x4a1808
cmp ax, 0x20
je 0x4a1808
mov ax, word [esi + 2]
add esi, 2
cmp ax, bx
jne 0x4a17e8
jmp 0x4a1813
cmp word [esi], bx
je 0x4a1813
mov word [esi], bx
add esi, 2
cmp esi, ebx
je 0x4a1831
mov ax, word [esi]
cmp ax, 9
jb 0x4a1826
cmp ax, 0xd
jbe 0x4a182c
cmp ax, 0x20
jne 0x4a1831
add esi, 2
jmp 0x4a1817
cmp word [esi], 0x2d
je 0x4a1701
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x48]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x78], esi
mov dx, word [esp + 0x4c]
mov word [ecx], dx
cmp word [esi], 0x2a
jne 0x4a1872
lea eax, [esp + 0x78]
add esi, 2
push eax
mov byte [esp + 0x17], 1
mov dword [esp + 0x7c], esi
call fcn.0043f2e0
add esp, 4
push 0x2c
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x80]
push edx
call fcn.00449370
mov esi, dword [esp + 0x5c]
add esp, 0xc
push 1
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.004152c8
cmp word [ebp], 0x2c
jne 0x4a18ef
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x50]
push ecx
push 1
push 0x2c
lea edx, [esp + 0x90]
add ebp, 2
push edx
lea ecx, [esp + 0x78]
mov dword [esp + 0x94], ebp
call fcn.0045a420
push eax
call fcn.0045d3f0
mov eax, dword [esp + 0x8c]
add esp, 0x14
cmp word [eax], 0x2c
je 0x4a1989
mov ecx, dword [0x51927c]
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
add edi, 0xfffffff8
push edi
push ebx
push ecx
call esi
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x4a1919
mov edx, dword [0x51927c]
add eax, 0xfffffff8
push eax
push ebx
push edx
call esi
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x4a192e
add eax, 0xfffffff8
push eax
mov eax, dword [0x51927c]
push ebx
push eax
call esi
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x4a1944
mov ecx, dword [0x51927c]
add eax, 0xfffffff8
push eax
push ebx
push ecx
call esi
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x4a195a
mov edx, dword [0x51927c]
add eax, 0xfffffff8
push eax
push ebx
push edx
call esi
mov eax, dword [esp + 0x5c]
cmp eax, ebx
je 0x4a196f
add eax, 0xfffffff8
push eax
mov eax, dword [0x51927c]
push ebx
push eax
call esi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
add esp, 0x64
ret 8
mov eax, dword [esp + 0x78]
push 1
push 0x2c
lea ecx, [esp + 0x80]
mov ebp, 2
add eax, ebp
push ecx
lea ecx, [esp + 0x68]
mov dword [esp + 0x84], eax
call fcn.0045a420
push ebx
lea edx, [esp + 0x20]
push edx
push eax
call fcn.00449370
mov eax, dword [esp + 0x84]
add esp, 0xc
cmp word [eax], 0x2c
jne 0x4a1a4d
push 1
push 0x2c
lea ecx, [esp + 0x80]
add eax, ebp
push ecx
lea ecx, [esp + 0x68]
mov dword [esp + 0x84], eax
call fcn.0045a420
push ebx
lea edx, [esp + 0x1c]
push edx
push eax
call fcn.00449370
mov eax, dword [esp + 0x84]
add esp, 0xc
cmp word [eax], 0x2c
jne 0x4a1a4d
mov ecx, eax
add ecx, ebp
push 1
mov dword [esp + 0x7c], ecx
push 0x2c
lea ecx, [esp + 0x80]
push ecx
lea ecx, [esp + 0x68]
call fcn.0045a420
mov edx, dword [eax]
push edx
call fcn.00449d70
mov ecx, dword [esp + 0x58]
and eax, 0x1ffffff
or ecx, eax
mov eax, dword [esp + 0x5c]
and edx, ebx
add esp, 4
or eax, edx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], eax
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x7c]
cmp al, bl
mov eax, esi
jne 0x4a1a61
mov eax, dword [ecx + 0x13c]
mov edx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x5c]
push edx
mov edx, dword [esp + 0x5c]
push edx
mov edx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x44]
push edx
lea edx, [esp + 0x2c]
push edx
lea edx, [esp + 0x34]
push edx
mov edx, dword [esp + 0x54]
push edx
mov edx, dword [esp + 0x5c]
push edx
mov edx, dword [esp + 0x64]
push edx
mov edx, dword [esp + 0x6c]
push edx
lea edx, [esp + 0x40]
push edx
push ecx
push eax
call fcn.004a0930
mov eax, dword [0x51927c]
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
add edi, 0xfffffff8
push edi
push ebx
push eax
call esi
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x4a1acd
mov ecx, dword [0x51927c]
add eax, 0xfffffff8
push eax
push ebx
push ecx
call esi
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x4a1ae3
mov edx, dword [0x51927c]
add eax, 0xfffffff8
push eax
push ebx
push edx
call esi
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x4a1af8
add eax, 0xfffffff8
push eax
mov eax, dword [0x51927c]
push ebx
push eax
call esi
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x4a1b0e
mov ecx, dword [0x51927c]
add eax, 0xfffffff8
push eax
push ebx
push ecx
call esi
mov eax, dword [esp + 0x5c]
cmp eax, ebx
je 0x4a1b24
mov edx, dword [0x51927c]
add eax, 0xfffffff8
push eax
push ebx
push edx
call esi
mov ecx, dword [esp + 0x68]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x64
ret 8