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

Disassembly:
push ebp
push ebx
push edi
mov edx, 0x1d
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x4db7db
mov eax, dword [esp + 0x84]
mov dword [esp], eax
cmp dword [esp + 0x88], 0
je 0x4dbbab
mov ebp, dword [esp + 0x88]
movsx eax, word [ebp]
push eax
call fcn.0051b02e
mov dword [esp + 4], eax
mov ebp, dword [esp + 0x88]
movsx eax, word [ebp + 2]
push eax
call fcn.0051b02e
mov dword [esp + 8], eax
mov ebx, dword [esp + 0x88]
add ebx, 4
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 8]
and ebx, ebx
jle 0x4dbbab
mov ebp, dword [esp + 0x10]
movsx eax, word [ebp]
push eax
call fcn.0051b02e
mov dword [esp + 0x24], eax
mov ebp, dword [esp + 0x10]
movsx eax, word [ebp + 2]
push eax
call fcn.0051b02e
mov dword [esp + 0x28], eax
mov ebp, dword [esp + 0x10]
push dword [ebp + 4]
call fcn.00519c54
mov dword [esp + 0x30], eax
mov ebx, dword [esp + 0x88]
add ebx, dword [esp + 0x30]
mov dword [esp + 0x14], ebx
mov ebp, dword [esp + 0x14]
movsx eax, word [ebp]
push eax
call fcn.0051b02e
mov dword [esp + 0x2c], eax
push dword [esp + 0x24]
mov ebx, 1
cmp ebx, dword [esp]
jne 0x4db8a9
jmp 0x4db8b3
mov ebx, 3
cmp ebx, dword [esp]
jne 0x4db8b3
pop eax
push dword [esp + 0x28]
xor ebx, ebx
cmp ebx, dword [esp]
jne 0x4db8c1
jmp 0x4db933
mov ebx, 1
cmp ebx, dword [esp]
jne 0x4db8cd
jmp 0x4db933
mov ebx, 2
cmp ebx, dword [esp]
jne 0x4db8d9
jmp 0x4db933
mov ebx, 3
cmp ebx, dword [esp]
jne 0x4db8e5
jmp 0x4db933
mov ebx, 4
cmp ebx, dword [esp]
jne 0x4db8f1
jmp 0x4db933
mov ebx, 5
cmp ebx, dword [esp]
jne 0x4db8fd
jmp 0x4db933
mov ebx, 6
cmp ebx, dword [esp]
jne 0x4db909
jmp 0x4db933
mov ebx, 7
cmp ebx, dword [esp]
je 0x4db927
mov ebx, 8
cmp ebx, dword [esp]
je 0x4db927
mov ebx, 9
cmp ebx, dword [esp]
jne 0x4db929
jmp 0x4db933
mov ebx, 0xa
cmp ebx, dword [esp]
jne 0x4db933
pop eax
mov ebx, dword [esp + 0x90]
cmp ebx, 0xffffffff
je 0x4db954
mov ebx, dword [esp + 0x90]
cmp ebx, dword [esp + 0x24]
je 0x4db954
mov eax, 1
jmp 0x4db956
xor eax, eax
and eax, eax
je 0x4db973
mov ebx, dword [esp + 0x10]
add ebx, 8
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 8]
dec ebx
mov dword [esp + 8], ebx
jmp 0x4db838
mov ebx, dword [esp + 0x94]
cmp ebx, 0xffffffff
je 0x4db993
mov ebx, dword [esp + 0x94]
cmp ebx, dword [esp + 0x28]
je 0x4db993
mov eax, 1
jmp 0x4db995
xor eax, eax
and eax, eax
je 0x4db9b2
mov ebx, dword [esp + 0x10]
add ebx, 8
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 8]
dec ebx
mov dword [esp + 8], ebx
jmp 0x4db838
mov ebx, dword [esp + 0x98]
cmp ebx, 0xffffffff
je 0x4db9d2
mov ebx, dword [esp + 0x98]
cmp ebx, dword [esp + 0x2c]
je 0x4db9d2
mov eax, 1
jmp 0x4db9d4
xor eax, eax
and eax, eax
je 0x4db9f1
mov ebx, dword [esp + 0x10]
add ebx, 8
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 8]
dec ebx
mov dword [esp + 8], ebx
jmp 0x4db838
push dword [esp + 0x2c]
xor ebx, ebx
cmp ebx, dword [esp]
jne 0x4dba5e
push dword [esp + 0x18]
pop eax
mov dword [esp + 0x1c], eax
mov ebp, dword [esp + 0x1c]
movsx eax, word [ebp]
push eax
call fcn.0051b02e
mov dword [esp + 0x38], eax
mov ebp, dword [esp + 0x1c]
movsx eax, word [ebp + 2]
push eax
call fcn.0051b02e
mov dword [esp + 0x3c], eax
mov ebp, dword [esp + 0x1c]
movsx eax, word [ebp + 4]
push eax
call fcn.0051b02e
mov dword [esp + 0x40], eax
push dword [esp + 0x1c]
mov edx, dword [esp + 8]
push dword [esp + 8]
call fcn.0050d734
mov eax, 1
add esp, 4
jmp 0x4dbbad
mov ebx, 4
cmp ebx, dword [esp]
jne 0x4dbb91
push dword [esp + 0x18]
pop eax
mov dword [esp + 0x20], eax
mov ebp, dword [esp + 0x20]
movsx eax, word [ebp]
push eax
call fcn.0051b02e
mov dword [esp + 0x44], eax
mov ebp, dword [esp + 0x20]
movsx eax, word [ebp + 2]
push eax
call fcn.0051b02e
mov dword [esp + 0x48], eax
mov ebp, dword [esp + 0x20]
movsx eax, word [ebp + 4]
push eax
call fcn.0051b02e
mov dword [esp + 0x4c], eax
mov ebp, dword [esp + 0x20]
movsx eax, word [ebp + 6]
push eax
call fcn.0051b02e
mov dword [esp + 0x50], eax
mov ebx, dword [esp + 0x50]
sar ebx, 1
mov dword [esp + 0x54], ebx
mov ebp, dword [esp + 0x20]
movsx eax, word [ebp + 8]
push eax
call fcn.0051b02e
mov dword [esp + 0x58], eax
mov ebp, dword [esp + 0x20]
movsx eax, word [ebp + 0xa]
push eax
call fcn.0051b02e
mov dword [esp + 0x5c], eax
mov ebp, dword [esp + 0x20]
movsx eax, word [ebp + 0xc]
push eax
call fcn.0051b02e
mov dword [esp + 0x60], eax
mov ebx, dword [esp + 0x18]
add ebx, 0xe
mov dword [esp + 0x24], ebx
push dword [esp + 0x24]
pop eax
mov dword [esp + 0x64], eax
mov ebx, dword [esp + 0x24]
add ebx, dword [esp + 0x50]
add ebx, 2
mov dword [esp + 0x68], ebx
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x50]
add edi, edi
add edi, 2
add ebx, edi
mov dword [esp + 0x6c], ebx
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x50]
imul edi, edi, 3
add edi, 2
add ebx, edi
mov dword [esp + 0x70], ebx
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x50]
shl edi, 2
add edi, 2
add ebx, edi
mov dword [esp + 0x74], ebx
push dword [esp + 0x90]
push dword [esp + 0x78]
push dword [esp + 0x78]
push dword [esp + 0x78]
push dword [esp + 0x74]
push dword [esp + 0x7c]
push dword [esp + 0x6c]
mov edx, dword [esp + 0x20]
push dword [esp + 0x20]
call fcn.004c2f0a
mov eax, 1
add esp, 4
jmp 0x4dbbad
pop eax
mov ebx, dword [esp + 0x10]
add ebx, 8
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 8]
dec ebx
mov dword [esp + 8], ebx
jmp 0x4db838
xor eax, eax
add esp, 0x74
pop edi
pop ebx
pop ebp
ret 0x18