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

Disassembly:
push ebp
push edi
push esi
mov esi, eax
push ebx
mov ebp, esi
sub esp, 0x7c
lea eax, [eax + 0x78]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x58]
mov dword [esp + 0x38], edx
lea ebx, [esp + 0x50]
cmp eax, 4
je 0x4db0f1
cmp eax, 1
jle 0x4db050
lea esi, [esp + 0x40]
mov dword [esp], 0xffffffff
mov dword [esp + 4], 0xffffffff
mov edx, esi
mov eax, ebp
call fcn.004da790
test edx, edx
js 0x4db2f8
mov eax, dword [esp + 0x44]
shl eax, 3
mov dword [esp + 0x3c], eax
fild dword [esp + 0x3c]
fadd qword [ebp + 0x68]
mov eax, dword [ebp + 0x58]
cmp eax, 4
fstp qword [ebp + 0x68]
je 0x4db2a4
cmp eax, 2
jg 0x4db0c6
mov eax, dword [ebp + 4]
test eax, eax
je 0x4db0a0
lea esi, [esp + 0x40]
mov dword [esp], esi
call fcn.004de640
mov ecx, dword [ebp + 0x34]
mov dword [ebp + 0x5c], eax
cmp ecx, 0
jle 0x4db143
mov esi, dword [ebp + 0x40]
xor edx, edx
cmp eax, dword [esi]
jne 0x4db08e
jmp 0x4db150
cmp eax, dword [esi + edx*4]
je 0x4db150
inc edx
cmp edx, ecx
jne 0x4db085
mov eax, 0xffffff77
add esp, 0x7c
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp + 0x5c]
lea esi, [esp + 0x40]
mov ecx, dword [ebp + 0x4c]
mov edx, dword [ebp + 0x48]
mov dword [esp], eax
mov dword [esp + 4], esi
mov eax, ebp
call fcn.004da910
test eax, eax
jne 0x4db098
mov eax, dword [ebp + 0x60]
inc eax
mov dword [ebp + 0x60], eax
mov eax, ebp
call fcn.004daf50
test eax, eax
js 0x4db098
lea esi, [esp + 0x40]
mov ecx, dword [esp + 0x30]
mov dword [esp + 4], esi
mov dword [esp], ecx
call fcn.004df240
mov eax, dword [ebp + 0x58]
cmp eax, 4
jne 0x4db006
lea ecx, [ebp + 0x250]
mov dword [esp + 0x34], ebp
mov dword [esp + 0x28], ecx
mov ebp, dword [esp + 0x30]
jmp 0x4db125
test eax, eax
jle 0x4db170
mov ecx, dword [esp + 0x28]
mov dword [esp + 4], ebx
mov dword [esp], ecx
mov esi, dword [esp + 0x60]
mov edi, dword [esp + 0x64]
call fcn.004e2c90
test eax, eax
je 0x4db180
mov dword [esp + 4], ebx
mov dword [esp], ebp
call fcn.004df7b0
cmp eax, 0xffffffff
jne 0x4db105
add esp, 0x7c
mov eax, 0xfffffffd
pop ebx
pop esi
pop edi
pop ebp
ret
je 0x4db093
xor edx, edx
nop
lea esi, [esi]
mov dword [ebp + 0x60], edx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call fcn.004df720
mov dword [ebp + 0x58], 3
jmp 0x4db0c6
mov ebp, dword [esp + 0x34]
mov eax, dword [ebp + 0x58]
jmp 0x4db006
mov ebp, edi
mov edi, esi
mov esi, dword [esp + 0x34]
mov dword [esp + 4], 0
lea ebx, [esi + 0x1e0]
mov dword [esp], ebx
mov dword [esp + 0x30], ebx
call fcn.004e1340
mov edx, eax
mov eax, 0xffffff7f
test edx, edx
jne 0x4db098
mov ecx, dword [esp + 0x28]
mov dword [esp], ebx
mov dword [esp + 4], ecx
call fcn.004e0b40
fld qword [esi + 0x70]
mov dword [esp + 4], 0
mov dword [esp], ebx
fstp qword [esp + 0x28]
call fcn.004e1340
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x54]
fild dword [esp + 0x3c]
fadd qword [esp + 0x28]
shl eax, 3
fstp qword [esi + 0x70]
mov dword [esp + 0x3c], eax
mov eax, edi
fild dword [esp + 0x3c]
fadd qword [esi + 0x68]
and eax, ebp
inc eax
mov eax, 1
fstp qword [esi + 0x68]
je 0x4db098
mov edx, dword [esp + 0x5c]
test edx, edx
jne 0x4db098
mov eax, dword [esi + 4]
test eax, eax
je 0x4db302
mov eax, dword [esi + 0x60]
test eax, eax
jle 0x4db302
mov edx, dword [esi + 0x44]
mov ecx, edi
shl eax, 4
mov ebx, ebp
mov dword [esp + 0x28], eax
sub ecx, dword [edx + eax]
sbb ebx, dword [edx + eax + 4]
mov dword [esp + 0x18], ecx
mov ebp, ebx
mov dword [esp + 0x1c], ebx
sar ebp, 0x1f
mov edi, dword [esp + 0x18]
mov ebx, ebp
mov dword [esp + 4], 0
xor ebx, 0xffffffff
mov ebp, dword [esp + 0x1c]
sar ebx, 0x1f
mov ecx, ebx
and ebp, ebx
and edi, ecx
mov ecx, dword [esp + 0x30]
mov dword [esp], ecx
mov ebx, ebp
call fcn.004e1340
mov ecx, edi
mov edx, eax
mov edi, dword [esp + 0x28]
sar edx, 0x1f
sub ecx, eax
sbb ebx, edx
mov eax, dword [esi + 0x44]
add eax, 8
add edi, eax
add ecx, dword [eax]
adc ebx, dword [eax + 4]
add eax, 0x10
cmp eax, edi
jne 0x4db293
jmp 0x4db33e
mov edi, dword [ebp + 0x5c]
mov dword [esp], esi
call fcn.004de640
cmp edi, eax
je 0x4db2c9
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4db2f8
mov eax, ebp
call fcn.004da8e0
mov eax, dword [ebp + 4]
test eax, eax
je 0x4db2e0
mov eax, dword [ebp + 0x58]
cmp eax, 4
je 0x4db0d5
jmp 0x4db050
mov eax, dword [ebp + 0x48]
mov dword [esp], eax
call fcn.004e1c50
mov eax, dword [ebp + 0x4c]
mov dword [esp], eax
call fcn.004e1b30
jmp 0x4db2c9
mov eax, 0xfffffffe
jmp 0x4db098
mov ebx, ebp
mov ecx, edi
sar ebx, 0x1f
mov dword [esp + 4], 0
mov edx, ebx
mov ebx, ebp
xor edx, 0xffffffff
sar edx, 0x1f
mov eax, edx
and ebx, edx
and ecx, eax
mov eax, dword [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 0x24], ecx
call fcn.004e1340
mov ecx, dword [esp + 0x24]
mov edx, eax
sar edx, 0x1f
sub ecx, eax
sbb ebx, edx
mov dword [esi + 0x50], ecx
mov dword [esi + 0x54], ebx
mov eax, 1
jmp 0x4db098