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

Disassembly:
push 0xffffffffffffffff
push 0x4ec930
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.00417de5
lea ecx, [esp + 0x7c]
push ecx
call fcn.00443850
xor ebx, ebx
push 2
mov dword [esp + 0x68], ebx
call fcn.00449130
add esp, 0xc
cmp eax, ebx
mov dword [esp + 0x5c], eax
je 0x4a1771
mov word [eax], bx
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], ebx
push 0x4efd50
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.00449130
mov ecx, esi
mov edx, ecx
shr ecx, 2
mov esi, 0x4efd50
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.00449130
add esp, 8
cmp eax, ebx
mov dword [esp + 0x1c], eax
je 0x4a17c5
mov word [eax], bx
push 2
call fcn.00449130
add esp, 4
cmp eax, ebx
mov dword [esp + 0x18], eax
je 0x4a17da
mov word [eax], bx
push 2
call fcn.00449130
add esp, 4
cmp eax, ebx
mov dword [esp + 0x28], eax
je 0x4a17ef
mov word [eax], bx
push 2
call fcn.00449130
add esp, 4
cmp eax, ebx
mov dword [esp + 0x20], eax
je 0x4a1804
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.00459430
push ebx
lea ecx, [esp + 0x24]
push ecx
push eax
call fcn.0044c770
mov edi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x84]
mov eax, 0x4efd50
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 0x4a1892
lea eax, [esp + 0x78]
lea edx, [edi + 2]
push eax
mov byte [esp + 0x17], 1
mov dword [esp + 0x7c], edx
call fcn.00443850
mov esi, dword [esp + 0x7c]
add esp, 4
cmp esi, ebx
mov ecx, esi
mov dword [esp + 0x24], ecx
je 0x4a18bc
xor eax, eax
mov ax, word [esi]
cmp ax, bx
je 0x4a18bc
cmp ax, 0x2c
je 0x4a18b8
mov ax, word [ecx + 2]
add ecx, 2
cmp ax, bx
jne 0x4a18a6
mov dword [esp + 0x24], ecx
mov dx, word [ecx]
mov word [ecx], bx
cmp word [esi], 0x2d
mov word [esp + 0x4c], dx
jne 0x4a1a1b
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 0x4a1909
dec edx
jns 0x4a18e0
mov eax, dword [esp + 0x54]
mov dword [esp + 0x54], eax
or dword [esp + 0x58], 1
jmp 0x4a19b0
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 0x4a1938
dec edx
jns 0x4a1915
add esi, 0xc
mov dword [esp + 0x34], esi
jmp 0x4a19b0
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 0x4a1964
dec edx
jns 0x4a1944
add esi, 0xe
mov dword [esp + 0x2c], esi
jmp 0x4a19b0
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 0x4a1990
dec edx
jns 0x4a1970
add esi, 0xe
mov dword [esp + 0x30], esi
jmp 0x4a19b0
push 5
push esi
push str._left
call fcn.00444970
add esp, 0xc
test al, al
je 0x4a19b0
mov dword [esp + 0x54], SysReAllocStringLen
mov dword [esp + 0x58], ebx
mov ax, word [esi]
cmp ax, bx
je 0x4a19e3
cmp ax, 9
jb 0x4a19c4
cmp ax, 0xd
jbe 0x4a19d8
cmp ax, 0x20
je 0x4a19d8
mov ax, word [esi + 2]
add esi, 2
cmp ax, bx
jne 0x4a19b8
jmp 0x4a19e3
cmp word [esi], bx
je 0x4a19e3
mov word [esi], bx
add esi, 2
cmp esi, ebx
je 0x4a1a01
mov ax, word [esi]
cmp ax, 9
jb 0x4a19f6
cmp ax, 0xd
jbe 0x4a19fc
cmp ax, 0x20
jne 0x4a1a01
add esi, 2
jmp 0x4a19e7
cmp word [esi], 0x2d
je 0x4a18d1
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 0x4a1a42
lea eax, [esp + 0x78]
add esi, 2
push eax
mov byte [esp + 0x17], 1
mov dword [esp + 0x7c], esi
call fcn.00443850
add esp, 4
push 0x2c
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x80]
push edx
call fcn.0044c770
mov esi, dword [esp + 0x5c]
add esp, 0xc
push 1
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.004166b6
cmp word [ebp], 0x2c
jne 0x4a1abf
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.00459430
push eax
call fcn.0045c3e0
mov eax, dword [esp + 0x8c]
add esp, 0x14
cmp word [eax], 0x2c
je 0x4a1b59
mov ecx, dword [0x51d3c8]
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 0x4a1ae9
mov edx, dword [0x51d3c8]
add eax, 0xfffffff8
push eax
push ebx
push edx
call esi
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x4a1afe
add eax, 0xfffffff8
push eax
mov eax, dword [0x51d3c8]
push ebx
push eax
call esi
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x4a1b14
mov ecx, dword [0x51d3c8]
add eax, 0xfffffff8
push eax
push ebx
push ecx
call esi
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x4a1b2a
mov edx, dword [0x51d3c8]
add eax, 0xfffffff8
push eax
push ebx
push edx
call esi
mov eax, dword [esp + 0x5c]
cmp eax, ebx
je 0x4a1b3f
add eax, 0xfffffff8
push eax
mov eax, dword [0x51d3c8]
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.00459430
push ebx
lea edx, [esp + 0x20]
push edx
push eax
call fcn.0044c770
mov eax, dword [esp + 0x84]
add esp, 0xc
cmp word [eax], 0x2c
jne 0x4a1c1d
push 1
push 0x2c
lea ecx, [esp + 0x80]
add eax, ebp
push ecx
lea ecx, [esp + 0x68]
mov dword [esp + 0x84], eax
call fcn.00459430
push ebx
lea edx, [esp + 0x1c]
push edx
push eax
call fcn.0044c770
mov eax, dword [esp + 0x84]
add esp, 0xc
cmp word [eax], 0x2c
jne 0x4a1c1d
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.00459430
mov edx, dword [eax]
push edx
call fcn.0044d170
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 0x4a1c31
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.004a0d60
mov eax, dword [0x51d3c8]
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 0x4a1c9d
mov ecx, dword [0x51d3c8]
add eax, 0xfffffff8
push eax
push ebx
push ecx
call esi
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x4a1cb3
mov edx, dword [0x51d3c8]
add eax, 0xfffffff8
push eax
push ebx
push edx
call esi
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x4a1cc8
add eax, 0xfffffff8
push eax
mov eax, dword [0x51d3c8]
push ebx
push eax
call esi
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x4a1cde
mov ecx, dword [0x51d3c8]
add eax, 0xfffffff8
push eax
push ebx
push ecx
call esi
mov eax, dword [esp + 0x5c]
cmp eax, ebx
je 0x4a1cf4
mov edx, dword [0x51d3c8]
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