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

Disassembly:
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
sub esp, 0x5c
test edx, edx
push ebx
push ebp
push esi
push edi
mov ebx, ecx
jle 0x4dd067
mov edi, dword [ebx + eax*4 + 0x30c]
mov esi, dword [esp + 0x7c]
mov ecx, dword [ebx + 0x36c]
imul edi, esi
mov ecx, dword [ecx + eax*4]
add ecx, edi
cmp byte [ecx + edx - 1], 0
jle 0x4dd0cd
jmp 0x4dd06b
mov esi, dword [esp + 0x7c]
test esi, esi
jle 0x4dd08b
mov edi, dword [ebx + eax*4 + 0x30c]
lea ecx, [esi - 1]
imul edi, ecx
mov ecx, dword [ebx + 0x36c]
add edi, dword [ecx + eax*4]
cmp byte [edi + edx], 0
jle 0x4dd0cd
mov ecx, dword [ebx + eax*4 + 0x30c]
cmp edx, ecx
jge 0x4dd0ad
mov edi, dword [ebx + 0x36c]
mov ebp, ecx
imul ebp, esi
mov edi, dword [edi + eax*4]
add edi, ebp
cmp byte [edi + edx + 1], 0
jle 0x4dd0cd
cmp esi, dword [ebx + eax*4 + 0x32c]
jge 0x4dd0e8
mov edi, dword [ebx + 0x36c]
lea ebp, [esi + 1]
imul ebp, ecx
mov ecx, dword [edi + eax*4]
add ecx, ebp
cmp byte [ecx + edx], 0
jg 0x4dd0e8
push esi
push edx
mov edx, dword [esp + 0x78]
push eax
push edx
mov ecx, ebx
call fcn.004dc590
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x5c
ret 0x10
mov eax, dword [ebx + eax*4 + 0x34c]
mov ebp, dword [esp + 0x70]
mov ecx, eax
imul ecx, edx
mov edx, eax
mov dword [esp + 0x40], ecx
imul edx, esi
lea esi, [eax + ecx]
add eax, edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov eax, dword [ebx + ebp*4 + 0x1c8]
mov dword [esp + 0x30], edx
mov dword [esp + 0x74], eax
xor eax, eax
mov dword [esp + 0x44], esi
mov dword [esp + 0x34], edx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x60], eax
mov dword [esp + 0x70], eax
jmp 0x4dd13d
mov eax, dword [esp + 0x70]
mov esi, dword [esp + eax + 0x30]
mov edi, dword [esp + eax + 0x40]
push esi
lea ecx, [esp + 0x28]
push edi
push ecx
mov ecx, ebx
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], edi
call fcn.004dd790
mov edx, dword [eax]
push esi
mov dword [esp + 0x1c], edx
push edi
mov ecx, dword [eax + 4]
mov dword [esp + 0x24], ecx
mov ecx, ebx
mov edx, dword [eax + 8]
mov dword [esp + 0x28], edx
call fcn.004df140
fild dword [ebx + 0xed8]
fild dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
or eax, 0xff000000
mov dword [esp + 0x54], edx
fdiv st(1)
mov dword [esp + 0x5c], eax
mov eax, dword [ebx + ebp*4 + 0x1c8]
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x20]
lea edx, [eax*8]
mov dword [esp + 0x58], ecx
sub edx, eax
mov eax, dword [ebx + ebp*4 + 0x188]
mov ecx, 7
lea esi, [esp + 0x50]
lea edi, [eax + edx*4]
mov eax, dword [esp + 0x70]
add eax, 4
mov dword [esp + 0x70], eax
fstp dword [esp + 0x64]
fild dword [esp + 0x14]
fdiv st(1)
fstp dword [esp + 0x68]
rep movsd dword es:[edi], dword [esi]
fstp st(0)
mov esi, dword [ebx + ebp*4 + 0x1c8]
inc esi
cmp eax, 0x10
mov dword [ebx + ebp*4 + 0x1c8], esi
jl 0x4dd139
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x7c]
add ecx, edx
and ecx, 0x80000001
jns 0x4dd214
dec ecx
or ecx, 0xfffffffe
inc ecx
jne 0x4dd24a
xor edx, edx
mov ecx, 0x5ce954
mov eax, dword [ebx + ebp*4 + 0x1e8]
mov si, word [ecx]
add si, word [esp + 0x74]
add ecx, 4
lea edi, [edx + eax*2]
add eax, edi
mov edi, dword [ebx + ebp*4 + 0x1a8]
inc edx
cmp ecx, 0x5ce96c
mov word [edi + eax*2], si
jl 0x4dd21d
jmp 0x4dd27c
xor edx, edx
mov ecx, 0x5ce96c
mov eax, dword [ebx + ebp*4 + 0x1e8]
mov si, word [ecx]
add si, word [esp + 0x74]
add ecx, 4
lea edi, [edx + eax*2]
add eax, edi
mov edi, dword [ebx + ebp*4 + 0x1a8]
inc edx
cmp ecx, str.Too_large_texture_cover___d__or_it_is_not_a_power_of_2__The_max_is_16_
mov word [edi + eax*2], si
jl 0x4dd251
mov eax, dword [ebx + ebp*4 + 0x1e8]
pop edi
add eax, 2
pop esi
mov dword [ebx + ebp*4 + 0x1e8], eax
pop ebp
mov al, 1
pop ebx
add esp, 0x5c
ret 0x10