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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x61e8d0
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 0x4d14aa
lea eax, [ebx + 8]
push eax
lea ecx, [esp + 0x48]
call fcn.004b6660
mov edi, dword [esp + 0x58]
cmp edi, 2
mov byte [esp + 0x7c], 1
mov esi, edi
jb 0x4d109c
mov esi, 2
mov ecx, dword [esp + 0x5c]
cmp ecx, 8
mov edx, dword [esp + 0x48]
jae 0x4d10ad
lea edx, [esp + 0x48]
test esi, esi
mov eax, 0x648674
jbe 0x4d10cd
mov bx, word [edx]
cmp bx, word [eax]
jne 0x4d10f3
add edx, 2
add eax, 2
sub esi, 1
jne 0x4d10b6
mov ebx, dword [esp + 0x24]
cmp edi, 2
jb 0x4d1109
xor eax, eax
cmp edi, 2
setne al
test eax, eax
jne 0x4d1109
push 1
push 0x6462c4
lea ecx, [esp + 0x30]
call fcn.004ab9d0
jmp 0x4d1485
mov dx, bx
cmp dx, word [eax]
sbb eax, eax
and eax, 0xfffffffe
add eax, 1
je 0x4d10c9
mov ebx, dword [esp + 0x24]
jmp 0x4d10da
cmp edi, 1
mov edx, edi
jb 0x4d1115
mov edx, 1
cmp ecx, 8
mov ecx, dword [esp + 0x48]
jae 0x4d1122
lea ecx, [esp + 0x48]
test edx, edx
mov eax, 0x6479a0
jbe 0x4d1155
jmp 0x4d1130
mov si, word [ecx]
cmp si, word [eax]
jne 0x4d1145
add ecx, 2
add eax, 2
sub edx, 1
jne 0x4d1130
jmp 0x4d1155
mov cx, si
cmp cx, word [eax]
sbb eax, eax
and eax, 0xfffffffe
add eax, 1
jne 0x4d1162
cmp edi, 1
jb 0x4d11ae
xor eax, eax
cmp edi, 1
setne al
test eax, eax
jne 0x4d11ae
mov edx, dword [esp + 0x14]
cmp byte [edx + 0x6f], al
jne 0x4d1485
cmp byte [esp + 0x60], al
je 0x4d118e
push 3
push 0x646ec0
lea ecx, [esp + 0x30]
call fcn.004ab9d0
jmp 0x4d1485
cmp byte [esp + 0x61], 0
je 0x4d1485
push 4
push 0x646ea8
lea ecx, [esp + 0x30]
call fcn.004ab9d0
jmp 0x4d1485
push 1
push 0x64798c
push edi
push 0
lea ecx, [esp + 0x54]
call fcn.004ce890
test eax, eax
jne 0x4d120d
mov eax, dword [esp + 0x14]
cmp byte [eax + 0x6f], 0
jne 0x4d1485
cmp byte [esp + 0x60], 0
je 0x4d11ef
push 3
push 0x646e74
lea ecx, [esp + 0x30]
call fcn.004ab9d0
jmp 0x4d1485
cmp byte [esp + 0x61], 0
je 0x4d1485
push str.__i_
lea ecx, [esp + 0x2c]
call fcn.004ad090
jmp 0x4d1485
mov ecx, dword [esp + 0x58]
push 4
push str.font
push ecx
push 0
lea ecx, [esp + 0x54]
call fcn.004ce890
test eax, eax
jne 0x4d1460
mov edx, dword [esp + 0x14]
cmp byte [edx + 0x6c], al
jne 0x4d1485
cmp byte [esp + 0x60], al
je 0x4d1447
push str._font
lea ecx, [esp + 0x2c]
call fcn.004ad090
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 0x4d1273
lea ecx, [esp + 0x64]
cmp edi, ecx
je 0x4d1278
call fcn.005dd003
cmp esi, ebx
je 0x4d1433
mov edx, dword [esp + 0x14]
cmp byte [edx + 0x6d], 0
je 0x4d12b6
test edi, edi
jne 0x4d1293
call fcn.005dd003
cmp esi, dword [edi + 4]
jne 0x4d129d
call fcn.005dd003
lea eax, [esi + 0xc]
push str.size
push eax
call fcn.004ceba0
add esp, 8
test al, al
jne 0x4d141d
mov ecx, dword [esp + 0x14]
cmp byte [ecx + 0x6e], 0
je 0x4d12ec
test edi, edi
jne 0x4d12c9
call fcn.005dd003
cmp esi, dword [edi + 4]
jne 0x4d12d3
call fcn.005dd003
lea edx, [esi + 0xc]
push str.color
push edx
call fcn.004ceba0
add esp, 8
test al, al
jne 0x4d141d
mov eax, dword [esp + 0x14]
cmp byte [eax + 0x70], 0
je 0x4d1322
test edi, edi
jne 0x4d12ff
call fcn.005dd003
cmp esi, dword [edi + 4]
jne 0x4d1309
call fcn.005dd003
lea ecx, [esi + 0xc]
push str.face
push ecx
call fcn.004ceba0
add esp, 8
test al, al
jne 0x4d141d
test edi, edi
jne 0x4d132b
call fcn.005dd003
cmp esi, dword [edi + 4]
jne 0x4d1335
call fcn.005dd003
lea ebx, [esi + 0xc]
push str.size
push ebx
call fcn.004ceba0
add esp, 8
test al, al
je 0x4d13ba
lea ecx, [esp + 0x18]
call fcn.004ceb50
add eax, 0x1c
cmp dword [eax + 0x14], 0
jbe 0x4d13ba
push 0
lea ecx, [esp + 0x1c]
call fcn.004ceb50
mov ecx, eax
add ecx, 0x1c
call fcn.004ce900
movzx edx, word [eax]
push edx
call fcn.005de8e1
add esp, 4
test eax, eax
je 0x4d13ba
lea ecx, [esp + 0x18]
call fcn.004ceb50
add eax, 0x1c
cmp dword [eax + 0x18], 8
jb 0x4d1398
mov eax, dword [eax + 4]
jmp 0x4d139b
add eax, 4
push eax
call fcn.005e10b2
add esp, 4
test eax, eax
jle 0x4d13b1
mov ecx, dword [esp + 0x14]
cmp eax, dword [ecx + 0x74]
jl 0x4d141d
mov edx, dword [esp + 0x14]
cmp eax, dword [edx + 0x78]
jg 0x4d141d
push 1
push 0x646e3c
lea ecx, [esp + 0x30]
call fcn.004ab9d0
cmp esi, dword [edi + 4]
jne 0x4d13d4
call fcn.005dd003
push 0xffffffffffffffff
push 0
push ebx
lea ecx, [esp + 0x34]
call fcn.004aa890
push 2
push 0x648890
lea ecx, [esp + 0x30]
call fcn.004ab9d0
cmp esi, dword [edi + 4]
jne 0x4d13fc
call fcn.005dd003
push 0xffffffffffffffff
push 0
add esi, 0x28
push esi
lea ecx, [esp + 0x34]
call fcn.004aa890
push 1
push 0x6470f0
lea ecx, [esp + 0x30]
call fcn.004ab9d0
lea ecx, [esp + 0x18]
call fcn.004a92b0
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
jmp 0x4d1263
push 1
push 0x64888c
lea ecx, [esp + 0x30]
call fcn.004ab9d0
mov ebx, dword [esp + 0x24]
cmp byte [esp + 0x61], 0
je 0x4d1485
push 7
push str.__font_
lea ecx, [esp + 0x30]
call fcn.004ab9d0
jmp 0x4d1485
cmp byte [esp + 0x63], 0
je 0x4d1485
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x34]
call fcn.004aa890
cmp dword [esp + 0x58], 0
je 0x4d1485
mov byte [esp + 0x13], 0
lea ecx, [esp + 0x44]
mov byte [esp + 0x7c], 0
call fcn.004b36a0
mov ecx, dword [ebp + 0xc]
cmp ebx, dword [ecx + 4]
jne 0x4d14a0
call fcn.005dd003
mov ebx, dword [ebx]
mov ecx, dword [ebp + 0xc]
jmp 0x4d106d
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 0x4d14de
push eax
push 0x634f64
call fcn.004cee30
cmp dword [esp + 0x40], 8
jb 0x4d14ff
mov edx, dword [esp + 0x2c]
push edx
jmp 0x4d14f7
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x30]
push eax
call fcn.004ab8e0
cmp dword [esp + 0x40], 8
jb 0x4d14ff
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.005b465e
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