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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xcc
mov ebx, dword [edx + 8]
mov edi, dword [edx + 4]
mov dword [esp + 0x38], ecx
mov dword [esp + 4], edx
lea eax, [ebx + ebx*8]
movzx edx, word [edi + 0x1ea]
mov esi, ebx
lea ebp, [ebx + 1]
lea ecx, [eax + eax*2]
not esi
add ecx, ebx
mov eax, dword [edi + ecx + 0xcc]
add esi, edx
mov dword [esp + 0x14], edx
lea edx, [esi + esi*8]
lea edx, [edx + edx*2]
mov dword [esp + 0x54], eax
add edx, esi
lea eax, [edi + ecx + 0xb4]
movsd xmm0, qword [edi + ecx + 0xc4]
movsd qword [esp + 0x4c], xmm0
movsd xmm0, qword [edi + ecx + 0xb4]
movsd xmm1, qword [edi + ecx + 0xbc]
lea ecx, [edi + ecx + 0xd0]
movsd qword [esp + 0x44], xmm1
movsd qword [esp + 0x3c], xmm0
push edx
push ecx
push eax
call fcn.004f5b80
add esp, 0xc
mov ecx, ebx
mov dword [esp + 0x34], ebp
shl esi, 4
mov dword [esp], ebx
shl ecx, 4
lea eax, [edi + ecx]
movsd xmm0, qword [edi + ecx]
movsd xmm1, qword [edi + ecx + 8]
mov ecx, ebp
mov ebp, dword [esp + 0x14]
shl ecx, 4
add ecx, edi
movsd qword [esp + 0x58], xmm0
movsd qword [esp + 0x60], xmm1
push esi
push ecx
push eax
call fcn.004f5b80
add esp, 0xc
dec ebp
mov eax, dword [esp + 4]
mov word [edi + 0x1ea], bp
cmp bp, 5
movsd xmm1, qword [esp + 0x44]
movsd xmm0, qword [esp + 0x3c]
movsd xmm2, qword [esp + 0x54]
mov edx, dword [eax]
mov eax, dword [esp + 0x64]
movsd qword [esp + 0xa8], xmm1
movsd xmm1, qword [esp + 0x4c]
movsd qword [esp + 0xa0], xmm0
movsd qword [esp + 0xb8], xmm2
mov dword [esp + 0xc8], eax
movsd qword [esp + 0xb0], xmm1
movsd xmm1, qword [esp + 0x5c]
movsd qword [esp + 0xc0], xmm1
jae 0x4d0945
mov eax, dword [edi + 0xb0]
test eax, eax
je 0x4d0721
mov ebx, edx
movzx edx, word [edi + 0x1e8]
lea ecx, [ebx + 1]
test edx, edx
je 0x4d072a
mov esi, dword [eax + edx*4 + 0x1e8]
dec edx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], edx
movzx ecx, bp
movzx eax, word [esi + 0x1ea]
lea eax, [ecx + eax + 1]
cmp eax, 0xc
jae 0x4d07a0
lea ecx, [esp + 8]
lea edx, [esp + 0x68]
push dword [esp]
push 1
jmp 0x4d0796
mov dword [esp + 8], edx
jmp 0x4d07cd
cmp word [eax + 0x1ea], 0
je 0x4d09af
mov edx, dword [eax + 0x1f0]
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], edi
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], edx
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], 0
movzx eax, bp
movzx ecx, word [edx + 0x1ea]
lea eax, [eax + ecx + 1]
cmp eax, 0xc
jae 0x4d07b8
lea ecx, [esp + 8]
lea edx, [esp + 0x84]
push dword [esp]
push 0
call fcn.004d02a0
add esp, 8
jmp 0x4d07d8
lea ecx, [esp + 0x68]
mov edx, 1
call fcn.004cf9b0
mov eax, dword [esp + 0x34]
mov dword [esp + 8], ebx
jmp 0x4d07d0
lea ecx, [esp + 0x84]
mov edx, 1
call fcn.004cfcb0
mov dword [esp + 8], ebx
mov eax, dword [esp]
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov dword [esp], edx
mov edx, dword [ecx + 0xb0]
mov dword [esp + 4], eax
mov dword [esp + 0x14], ecx
test edx, edx
je 0x4d093d
mov eax, dword [esp + 4]
lea ebp, [eax + 1]
jmp 0x4d084f
mov eax, dword [esp + 0x30]
movsd xmm0, qword [esp + 0x28]
movsd xmm2, qword [esp + 0x18]
movsd xmm1, qword [esp + 0x20]
lea ecx, [esp + 0x3c]
mov dword [esp + 0x54], eax
movsd qword [esp + 0x4c], xmm0
movsd qword [esp + 0x44], xmm1
movsd qword [esp + 0x3c], xmm2
call fcn.004cfff0
mov ebp, eax
test edx, edx
je 0x4d093d
movzx eax, word [edx + 0x1ea]
cmp eax, 4
ja 0x4d093d
mov ecx, dword [edx + 0xb0]
test ecx, ecx
je 0x4d092f
movzx edi, word [edx + 0x1e8]
lea esi, [ebp + 1]
test edi, edi
je 0x4d08d0
mov ebx, dword [ecx + edi*4 + 0x1e8]
dec edi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edi
movzx ecx, word [ebx + 0x1ea]
lea ecx, [eax + ecx + 1]
cmp ecx, 0xc
jb 0x4d0810
mov edx, 5
lea ecx, [esp + 0x18]
sub edx, eax
call fcn.004cf9b0
xor edx, edx
jmp 0x4d0847
cmp word [ecx + 0x1ea], 0
je 0x4d09af
mov edi, dword [ecx + 0x1f0]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], 0
movzx ecx, word [edi + 0x1ea]
lea ecx, [eax + ecx + 1]
cmp ecx, 0xc
jb 0x4d0810
mov edx, 5
lea ecx, [esp + 0x18]
sub edx, eax
call fcn.004cfcb0
xor edx, edx
jmp 0x4d0847
test eax, eax
jne 0x4d093d
mov eax, dword [esp + 0xe0]
mov byte [eax], 1
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 4]
mov eax, dword [esp + 0xc8]
mov ecx, dword [esp + 0x38]
movsd xmm2, qword [esp + 0xb8]
movsd xmm1, qword [esp + 0xb0]
movsd xmm0, qword [esp + 0xc0]
mov dword [ecx + 0x28], eax
movsd qword [ecx + 0x18], xmm2
movsd qword [ecx + 0x10], xmm1
movsd xmm2, qword [esp + 0xa0]
movsd xmm1, qword [esp + 0xa8]
mov eax, dword [esp]
movsd qword [ecx + 0x20], xmm0
movsd qword [ecx + 8], xmm1
movsd qword [ecx], xmm2
mov dword [ecx + 0x2c], edx
mov dword [ecx + 0x30], edi
mov dword [ecx + 0x34], eax
add esp, 0xcc
pop esi
pop edi
pop ebx
pop ebp
ret
ud2