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

Disassembly:
mov eax, 0x20
call fcn.00609610
push ebx
push ebp
push esi
mov esi, dword [0x75e4f0]
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 0x4dfdd1
push eax
mov eax, dword [0x75e4e4]
mov ecx, dword [eax + 0x3c]
mov edx, dword [eax + 0x38]
push 0x186a0
push ecx
push edx
call fcn.00609a20
jmp 0x4dfde0
mov ecx, dword [0x75e4e4]
push eax
add ecx, 0x38
call fcn.00510390
mov dword [esp + 0x10], eax
lea eax, [ebx + 0x64]
test eax, eax
mov dword [esp + 0x20], 0
jne 0x4dfe0d
push eax
mov eax, dword [0x75e4e0]
mov ecx, dword [eax + 0x2c]
mov edx, dword [eax + 0x28]
push 0x186a0
push ecx
push edx
call fcn.00609a20
jmp 0x4dfe1c
mov ecx, dword [0x75e4e0]
push eax
add ecx, 0x28
call fcn.00510390
test eax, eax
mov dword [esp + 0x14], eax
jle 0x4dfe28
test esi, esi
jg 0x4dfe41
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.004edf70
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.005177d0
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x4dfe7b
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.004edf70
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.00518530
test eax, eax
jne 0x4dfeac
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.004edf70
add esp, 0x10
mov ecx, dword [ebx + 0x78]
push 0
push 0
push 0
push esi
push 2
call fcn.005177d0
mov ecx, dword [ebx + 0x78]
push 0
push 0
push 0
push esi
push 3
call fcn.005177d0
mov eax, 4
mov dword [esp + 0x1c], eax
mov dword [ebx + 0x7c], eax
mov eax, dword [edi + 0x34]
cmp eax, 5
jg 0x4dfee6
mov dword [esp + 0x20], esi
test eax, eax
jle 0x4e00fa
jmp 0x4dfef4
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 0x4dff1c
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 0x4e00da
push 0
push eax
mov eax, dword [esp + 0x24]
push 0
push esi
push eax
call fcn.005177d0
mov ebx, eax
test ebx, ebx
jne 0x4dff52
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.004edf70
add esp, 0x10
mov eax, dword [ebp + 0x30]
test eax, eax
jne 0x4e00b2
mov eax, dword [ebp]
mov dword [ebx + 0x10], ebp
mov dword [ebx + 0x14], eax
cmp dword [ebp + 0x2c], 1
jne 0x4dff75
mov eax, dword [esp + 0x10]
shl eax, 2
jmp 0x4dff77
xor eax, eax
mov edi, dword [esp + 0x2c]
push 0
push 0
sub edi, eax
push edi
push 1
mov ecx, ebx
call fcn.00518530
test eax, eax
jne 0x4dffaa
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.004edf70
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 0x4dffef
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 0x4e0010
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.004edf70
add esp, 0x10
mov eax, dword [esp + 0x10]
push eax
push eax
push esi
push 2
mov ecx, ebx
call fcn.00518530
mov ebx, eax
test ebx, ebx
jne 0x4e003e
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.004edf70
add esp, 0x10
mov ebp, dword [esp + 0x28]
mov eax, dword [ebp + 0x18]
test eax, eax
mov edi, 1
jle 0x4e0065
push 0
push 0
push eax
push edi
mov ecx, ebx
call fcn.00535a70
mov eax, dword [ebp + 0x18]
mov edi, 2
sub esi, eax
mov eax, dword [ebp + 0x1c]
test eax, eax
jle 0x4e0090
cmp eax, esi
mov dword [esp + 0x14], esi
jg 0x4e0078
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
push 0
push 0
push ecx
push edi
mov ecx, ebx
call fcn.00535a70
mov eax, dword [esp + 0x14]
inc edi
sub esi, eax
mov eax, dword [ebp + 0x20]
test eax, eax
jle 0x4e00aa
cmp eax, esi
jg 0x4e009d
mov esi, eax
push 0
push 0
push esi
push edi
mov ecx, ebx
call fcn.00535a70
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 0x4dfef0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
mov eax, dword [ebp + 0x30]
test eax, eax
jne 0x4e00fa
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.004edf70
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4