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

Disassembly:
mov eax, 0x20
call fcn.005e6090
push ebx
push ebp
push esi
mov esi, dword [0x723df0]
push edi
mov edi, dword [esp + 0x34]
mov eax, dword [edi + 0x44]
mov ebp, dword [edi + 0x30]
mov ebx, ecx
mov dword [esp + 0x2c], eax
lea eax, [ebx + 0x64]
test eax, eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x18], esi
mov dword [esp + 0x28], ebp
jne 0x4dfd71
push eax
mov eax, dword [0x723de4]
mov ecx, dword [eax + 0x3c]
mov edx, dword [eax + 0x38]
push 0x186a0
push ecx
push edx
call fcn.005e64b0
jmp 0x4dfd80
mov ecx, dword [0x723de4]
push eax
add ecx, 0x38
call fcn.00510370
mov dword [esp + 0x10], eax
lea eax, [ebx + 0x64]
test eax, eax
mov dword [esp + 0x20], 0
jne 0x4dfdad
push eax
mov eax, dword [0x723de0]
mov ecx, dword [eax + 0x2c]
mov edx, dword [eax + 0x28]
push 0x186a0
push ecx
push edx
call fcn.005e64b0
jmp 0x4dfdbc
mov ecx, dword [0x723de0]
push eax
add ecx, 0x28
call fcn.00510370
test eax, eax
mov dword [esp + 0x14], eax
jle 0x4dfdc8
test esi, esi
jg 0x4dfde1
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x38]
push eax
push str.Could_not_draw__s._nToo_wide_or_too_high.
push 0
push 0x1b
call fcn.004edf50
add esp, 0x10
mov ecx, dword [esp + 0x14]
push 0
push 0
push 0
push ecx
mov ecx, dword [ebx + 0x78]
push 1
call fcn.005177b0
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x4dfe1b
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x38]
push eax
push str.Could_not_draw__s._nToo_wide_or_too_high.
push 0
push 0x1b
call fcn.004edf50
mov eax, dword [esp + 0x2c]
add esp, 0x10
mov ecx, dword [ebx + 0x78]
mov ecx, dword [ecx + 0x1c]
push 0
push 0
push ecx
push 1
mov ecx, eax
call fcn.00518510
test eax, eax
jne 0x4dfe4c
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x38]
push eax
push str.Could_not_draw__s._nToo_wide_or_too_high.
push 0
push 0x1b
call fcn.004edf50
add esp, 0x10
mov ecx, dword [ebx + 0x78]
push 0
push 0
push 0
push esi
push 2
call fcn.005177b0
mov ecx, dword [ebx + 0x78]
push 0
push 0
push 0
push esi
push 3
call fcn.005177b0
mov eax, 4
mov dword [esp + 0x1c], eax
mov dword [ebx + 0x7c], eax
mov eax, dword [edi + 0x34]
cmp eax, 5
jg 0x4dfe86
mov dword [esp + 0x20], esi
test eax, eax
jle 0x4e009a
jmp 0x4dfe94
mov ebx, dword [esp + 0x24]
mov ecx, dword [ebx + 0x78]
movsx eax, word [ecx + 0x3e]
movsx edx, word [ecx + 0x3c]
sub edx, eax
mov eax, dword [esp + 0x20]
lea ebx, [eax + esi]
cmp ebx, edx
jle 0x4dfebc
movsx edx, word [ecx + 0x3e]
movsx esi, word [ecx + 0x3c]
sub esi, edx
sub esi, eax
mov dword [esp + 0x18], esi
test esi, esi
jle 0x4e007a
push 0
push eax
mov eax, dword [esp + 0x24]
push 0
push esi
push eax
call fcn.005177b0
mov ebx, eax
test ebx, ebx
jne 0x4dfef2
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x38]
push eax
push str.Could_not_draw__s._nToo_wide_or_too_high.
push ebx
push 0x1b
call fcn.004edf50
add esp, 0x10
mov eax, dword [ebp + 0x30]
test eax, eax
jne 0x4e0052
mov eax, dword [ebp]
mov dword [ebx + 0x10], ebp
mov dword [ebx + 0x14], eax
cmp dword [ebp + 0x2c], 1
jne 0x4dff15
mov eax, dword [esp + 0x10]
shl eax, 2
jmp 0x4dff17
xor eax, eax
mov edi, dword [esp + 0x2c]
push 0
push 0
sub edi, eax
push edi
push 1
mov ecx, ebx
call fcn.00518510
test eax, eax
jne 0x4dff4a
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx]
call dword [eax + 0x38]
push eax
push str.Could_not_draw__s._nToo_wide_or_too_high.
push 0
push 0x1b
call fcn.004edf50
add esp, 0x10
mov ecx, dword [ebp + 0x1c]
mov esi, dword [ebp + 0x18]
mov eax, dword [ebp + 0x20]
add esi, ecx
mov ecx, dword [esp + 0x24]
add esi, eax
mov eax, dword [ecx + 0x78]
movsx edx, word [eax + 0x2a]
mov ebp, dword [eax + 0x1c]
mov ecx, dword [esp + 0x10]
sub ebp, edx
movsx edx, word [eax + 0x28]
add ecx, ecx
sub ebp, edx
lea edx, [ecx + esi]
add edx, edi
cmp edx, ebp
jle 0x4dff8f
movsx edx, word [eax + 0x2a]
mov esi, dword [eax + 0x1c]
movsx eax, word [eax + 0x28]
sub esi, edx
sub esi, eax
sub esi, ecx
sub esi, edi
test esi, esi
mov edi, dword [esp + 0x34]
jg 0x4dffb0
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x38]
push eax
push str.Could_not_draw__s._nToo_wide_or_too_high.
push 0
push 0x1b
call fcn.004edf50
add esp, 0x10
mov eax, dword [esp + 0x10]
push eax
push eax
push esi
push 2
mov ecx, ebx
call fcn.00518510
mov ebx, eax
test ebx, ebx
jne 0x4dffde
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x38]
push eax
push str.Could_not_draw__s._nToo_wide_or_too_high.
push ebx
push 0x1b
call fcn.004edf50
add esp, 0x10
mov ebp, dword [esp + 0x28]
mov eax, dword [ebp + 0x18]
test eax, eax
mov edi, 1
jle 0x4e0005
push 0
push 0
push eax
push edi
mov ecx, ebx
call fcn.00535a60
mov eax, dword [ebp + 0x18]
mov edi, 2
sub esi, eax
mov eax, dword [ebp + 0x1c]
test eax, eax
jle 0x4e0030
cmp eax, esi
mov dword [esp + 0x14], esi
jg 0x4e0018
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
push 0
push 0
push ecx
push edi
mov ecx, ebx
call fcn.00535a60
mov eax, dword [esp + 0x14]
inc edi
sub esi, eax
mov eax, dword [ebp + 0x20]
test eax, eax
jle 0x4e004a
cmp eax, esi
jg 0x4e003d
mov esi, eax
push 0
push 0
push esi
push edi
mov ecx, ebx
call fcn.00535a60
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x1c]
mov ecx, dword [edi + 0x34]
add ebp, 0x34
inc eax
mov dword [esp + 0x1c], eax
add eax, 0xfffffffc
cmp eax, ecx
mov dword [esp + 0x28], ebp
jl 0x4dfe90
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
mov eax, dword [ebp + 0x30]
test eax, eax
jne 0x4e009a
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x38]
push eax
push str.Could_not_draw__s._nToo_wide_or_too_high.
push 0
push 0x1b
call fcn.004edf50
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4