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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x601710
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
push ebx
xor eax, eax
mov dword [esp + 0x10], eax
push esi
push edi
mov dword [esp + 0x14], ecx
mov byte [esp + 0x13], 1
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], eax
mov word [esp + 0x2c], ax
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x7c], eax
mov eax, dword [ecx + 4]
mov ebx, dword [eax]
cmp ebx, dword [ecx + 4]
mov dword [esp + 0x24], ebx
je 0x4c0caa
lea eax, [ebx + 8]
push eax
lea ecx, [esp + 0x48]
call fcn.004a5d60
mov edi, dword [esp + 0x58]
cmp edi, 2
mov byte [esp + 0x7c], 1
mov esi, edi
jb 0x4c089c
mov esi, 2
mov ecx, dword [esp + 0x5c]
cmp ecx, 8
mov edx, dword [esp + 0x48]
jae 0x4c08ad
lea edx, [esp + 0x48]
test esi, esi
mov eax, 0x629424
jbe 0x4c08cd
mov bx, word [edx]
cmp bx, word [eax]
jne 0x4c08f3
add edx, 2
add eax, 2
sub esi, 1
jne 0x4c08b6
mov ebx, dword [esp + 0x24]
cmp edi, 2
jb 0x4c0909
xor eax, eax
cmp edi, 2
setne al
test eax, eax
jne 0x4c0909
push 1
push 0x627064
lea ecx, [esp + 0x30]
call fcn.0049afc0
jmp 0x4c0c85
mov dx, bx
cmp dx, word [eax]
sbb eax, eax
and eax, 0xfffffffe
add eax, 1
je 0x4c08c9
mov ebx, dword [esp + 0x24]
jmp 0x4c08da
cmp edi, 1
mov edx, edi
jb 0x4c0915
mov edx, 1
cmp ecx, 8
mov ecx, dword [esp + 0x48]
jae 0x4c0922
lea ecx, [esp + 0x48]
test edx, edx
mov eax, 0x628750
jbe 0x4c0955
jmp 0x4c0930
mov si, word [ecx]
cmp si, word [eax]
jne 0x4c0945
add ecx, 2
add eax, 2
sub edx, 1
jne 0x4c0930
jmp 0x4c0955
mov cx, si
cmp cx, word [eax]
sbb eax, eax
and eax, 0xfffffffe
add eax, 1
jne 0x4c0962
cmp edi, 1
jb 0x4c09ae
xor eax, eax
cmp edi, 1
setne al
test eax, eax
jne 0x4c09ae
mov edx, dword [esp + 0x14]
cmp byte [edx + 0x6f], al
jne 0x4c0c85
cmp byte [esp + 0x60], al
je 0x4c098e
push 3
push 0x627c74
lea ecx, [esp + 0x30]
call fcn.0049afc0
jmp 0x4c0c85
cmp byte [esp + 0x61], 0
je 0x4c0c85
push 4
push 0x627c5c
lea ecx, [esp + 0x30]
call fcn.0049afc0
jmp 0x4c0c85
push 1
push 0x62873c
push edi
push 0
lea ecx, [esp + 0x54]
call fcn.004be070
test eax, eax
jne 0x4c0a0d
mov eax, dword [esp + 0x14]
cmp byte [eax + 0x6f], 0
jne 0x4c0c85
cmp byte [esp + 0x60], 0
je 0x4c09ef
push 3
push 0x627c28
lea ecx, [esp + 0x30]
call fcn.0049afc0
jmp 0x4c0c85
cmp byte [esp + 0x61], 0
je 0x4c0c85
push str.__i_
lea ecx, [esp + 0x2c]
call fcn.0049c720
jmp 0x4c0c85
mov ecx, dword [esp + 0x58]
push 4
push str.font
push ecx
push 0
lea ecx, [esp + 0x54]
call fcn.004be070
test eax, eax
jne 0x4c0c60
mov edx, dword [esp + 0x14]
cmp byte [edx + 0x6c], al
jne 0x4c0c85
cmp byte [esp + 0x60], al
je 0x4c0c47
push str._font
lea ecx, [esp + 0x2c]
call fcn.0049c720
mov eax, dword [esp + 0x68]
mov esi, dword [eax]
lea edi, [esp + 0x64]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], edi
test edi, edi
mov ebx, dword [esp + 0x68]
je 0x4c0a73
lea ecx, [esp + 0x64]
cmp edi, ecx
je 0x4c0a78
call fcn.005c7116
cmp esi, ebx
je 0x4c0c33
mov edx, dword [esp + 0x14]
cmp byte [edx + 0x6d], 0
je 0x4c0ab6
test edi, edi
jne 0x4c0a93
call fcn.005c7116
cmp esi, dword [edi + 4]
jne 0x4c0a9d
call fcn.005c7116
lea eax, [esi + 0xc]
push str.size
push eax
call fcn.004be380
add esp, 8
test al, al
jne 0x4c0c1d
mov ecx, dword [esp + 0x14]
cmp byte [ecx + 0x6e], 0
je 0x4c0aec
test edi, edi
jne 0x4c0ac9
call fcn.005c7116
cmp esi, dword [edi + 4]
jne 0x4c0ad3
call fcn.005c7116
lea edx, [esi + 0xc]
push str.color
push edx
call fcn.004be380
add esp, 8
test al, al
jne 0x4c0c1d
mov eax, dword [esp + 0x14]
cmp byte [eax + 0x70], 0
je 0x4c0b22
test edi, edi
jne 0x4c0aff
call fcn.005c7116
cmp esi, dword [edi + 4]
jne 0x4c0b09
call fcn.005c7116
lea ecx, [esi + 0xc]
push str.face
push ecx
call fcn.004be380
add esp, 8
test al, al
jne 0x4c0c1d
test edi, edi
jne 0x4c0b2b
call fcn.005c7116
cmp esi, dword [edi + 4]
jne 0x4c0b35
call fcn.005c7116
lea ebx, [esi + 0xc]
push str.size
push ebx
call fcn.004be380
add esp, 8
test al, al
je 0x4c0bba
lea ecx, [esp + 0x18]
call fcn.004be330
add eax, 0x1c
cmp dword [eax + 0x14], 0
jbe 0x4c0bba
push 0
lea ecx, [esp + 0x1c]
call fcn.004be330
mov ecx, eax
add ecx, 0x1c
call fcn.004be0e0
movzx edx, word [eax]
push edx
call fcn.005c3e5c
add esp, 4
test eax, eax
je 0x4c0bba
lea ecx, [esp + 0x18]
call fcn.004be330
add eax, 0x1c
cmp dword [eax + 0x18], 8
jb 0x4c0b98
mov eax, dword [eax + 4]
jmp 0x4c0b9b
add eax, 4
push eax
call fcn.005c76f2
add esp, 4
test eax, eax
jle 0x4c0bb1
mov ecx, dword [esp + 0x14]
cmp eax, dword [ecx + 0x74]
jl 0x4c0c1d
mov edx, dword [esp + 0x14]
cmp eax, dword [edx + 0x78]
jg 0x4c0c1d
push 1
push 0x627bf0
lea ecx, [esp + 0x30]
call fcn.0049afc0
cmp esi, dword [edi + 4]
jne 0x4c0bd4
call fcn.005c7116
push 0xffffffffffffffff
push 0
push ebx
lea ecx, [esp + 0x34]
call fcn.00499cc0
push 2
push 0x629660
lea ecx, [esp + 0x30]
call fcn.0049afc0
cmp esi, dword [edi + 4]
jne 0x4c0bfc
call fcn.005c7116
push 0xffffffffffffffff
push 0
add esi, 0x28
push esi
lea ecx, [esp + 0x34]
call fcn.00499cc0
push 1
push 0x627ea4
lea ecx, [esp + 0x30]
call fcn.0049afc0
lea ecx, [esp + 0x18]
call fcn.00498380
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
jmp 0x4c0a63
push 1
push 0x62965c
lea ecx, [esp + 0x30]
call fcn.0049afc0
mov ebx, dword [esp + 0x24]
cmp byte [esp + 0x61], 0
je 0x4c0c85
push 7
push str.__font_
lea ecx, [esp + 0x30]
call fcn.0049afc0
jmp 0x4c0c85
cmp byte [esp + 0x63], 0
je 0x4c0c85
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x34]
call fcn.00499cc0
cmp dword [esp + 0x58], 0
je 0x4c0c85
mov byte [esp + 0x13], 0
lea ecx, [esp + 0x44]
mov byte [esp + 0x7c], 0
call fcn.004a2da0
mov ecx, dword [ebp + 0xc]
cmp ebx, dword [ecx + 4]
jne 0x4c0ca0
call fcn.005c7116
mov ebx, dword [ebx]
mov ecx, dword [ebp + 0xc]
jmp 0x4c086d
mov esi, dword [ebp + 8]
xor eax, eax
cmp byte [esp + 0x13], al
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], eax
mov ecx, esi
mov word [esi + 4], ax
je 0x4c0cde
push eax
push 0x616034
call fcn.004be610
cmp dword [esp + 0x40], 8
jb 0x4c0cff
mov edx, dword [esp + 0x2c]
push edx
jmp 0x4c0cf7
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x30]
push eax
call fcn.0049ae00
cmp dword [esp + 0x40], 8
jb 0x4c0cff
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0059b05f
add esp, 4
mov ecx, dword [esp + 0x74]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8