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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x98
mov eax, dword [ebp + 0x10]
imul ecx, dword [ebp + 0x14], 0xc
mov edi, dword [ebp + 0xc]
lea esi, [esp + 0x20]
add ecx, eax
push eax
push ecx
push esi
call fcn.10085a1b
add esp, 0xc
mov eax, dword [esi]
mov ebx, dword [esi + 4]
lea ecx, [edi + 0x2d8]
mov dword [esp + 0x64], ecx
lea ecx, [edi + 0x2cc]
mov dword [esp], ecx
mov dword [esp + 0x68], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x14], eax
mov eax, edi
lea eax, [edi + 0x180]
mov dword [esp + 0x6c], eax
cmp ebx, dword [esp + 0x68]
je 0x100506b5
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x40]
mov dword [esp + 0x74], edx
call fcn.10050fca
cmp dword [esp + 0x40], 0
je 0x100503de
movsd xmm0, qword [esp + 0x48]
lea eax, [esp + 0x88]
movsd qword [esp + 0x88], xmm0
push eax
call fcn.10043820
pop ecx
push edx
push eax
push 0
push 0x7ffffffe
lea esi, [esp + 0x30]
push esi
call fcn.1009172c
add esp, 0x14
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
movsd xmm0, qword [esi + 8]
movsd xmm1, qword [esi + 0x10]
cmp ecx, 3
mov dword [esp + 8], eax
movsd qword [esp + 0x50], xmm0
movsd qword [esp + 0x58], xmm1
je 0x100503e6
jmp 0x100506c0
mov eax, dword [esp + 0x44]
mov dword [esp + 8], eax
mov dword [esp + 0x10], ebx
push ebx
call fcn.100879f0
pop ecx
mov esi, eax
mov ebx, edx
push edx
lea eax, [esp + 0x44]
push eax
call fcn.10092746
pop eax
pop ecx
cmp dword [esp + 0x40], 0
je 0x10050443
push ebx
push dword [esp + 0xc]
lea edi, [esp + 0x28]
push edi
call fcn.10091757
add esp, 0xc
mov ecx, dword [esp + 0x20]
movsd xmm0, qword [edi + 8]
movsd xmm1, qword [edi + 0x10]
mov edx, dword [esp + 0x24]
cmp ecx, 3
movsd qword [esp + 0x50], xmm0
movsd qword [esp + 0x58], xmm1
je 0x10050447
jmp 0x100506d5
mov edx, dword [esp + 0x44]
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 0x2c0]
mov ecx, dword [edi + 0x2c4]
cmp eax, ebx
cmovae eax, ebx
cmp ecx, ebx
cmovbe ecx, ebx
mov dword [edi + 0x2c0], eax
mov dword [edi + 0x2c4], ecx
mov eax, dword [edi + 0x2e0]
cmp dword [esp + 0x14], eax
mov dword [esp + 0x40], eax
jne 0x10050704
mov ecx, dword [esp + 0x64]
call fcn.10057a99
mov eax, dword [edi + 0x1a0]
cmp byte [eax + 1], 0
je 0x100504a0
push ebx
push esi
push edi
call fcn.10091f38
add esp, 0xc
mov eax, esi
add dword [esp + 0x10], 0xc
inc dword [esp + 0x14]
add eax, ebx
mov ebx, dword [edi + 0x2ac]
push esi
push eax
lea eax, [esp + 0x28]
push eax
call fcn.10085a1b
add esp, 0xc
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
mov dword [esp + 0x3c], 0
mov dword [esp + 0x70], eax
cmp esi, dword [esp + 0x70]
mov dword [esp + 4], ebx
mov dword [esp + 0xc], edi
je 0x1005065c
mov bl, byte [esi]
test byte [esp + 0x3c], 1
mov cl, 1
jne 0x10050512
mov ecx, dword [esp]
mov edx, dword [esp + 4]
push 0x1011b034
call fcn.10050faa
pop ecx
push eax
call fcn.1008efa0
pop ecx
mov ecx, eax
test cl, cl
je 0x10050528
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1a0]
cmp byte [eax], 1
je 0x1005067a
movzx edi, bl
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x18], esi
push edi
push edi
mov esi, dword [esp + 0x74]
push esi
call fcn.10091449
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1a0]
cmp byte [eax + 2], 0
je 0x10050566
push edi
call fcn.1004a889
pop ecx
movzx eax, al
push eax
push eax
push esi
call fcn.10091449
add esp, 0xc
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp]
mov edx, dword [esp + 4]
mov dword [esp + 0x1c], edi
inc esi
lea edi, [eax + 1]
push 0x1011b044
call fcn.10050faa
pop ecx
mov ecx, dword [eax + 0x10]
cmp ecx, 0x100
jne 0x100505a0
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x1c]
lea edx, [eax + ecx*8 + 4]
jmp 0x100505ba
mov eax, dword [eax + 0xc]
shl ecx, 3
add eax, 0xfffffffc
test ecx, ecx
je 0x100505c5
add ecx, 0xfffffff8
cmp byte [eax + 4], bl
lea edx, [eax + 8]
mov eax, edx
jne 0x100505a9
mov ebx, dword [edx]
cmp ebx, 1
jne 0x100504da
mov dword [esp + 0x18], edi
mov edi, esi
push dword [esp + 0xc]
mov esi, dword [ebp + 0xc]
push esi
lea eax, [esp + 0x28]
push eax
call fcn.10090010
add esp, 0xc
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
cmp ecx, 3
jne 0x10050683
mov ecx, dword [esp]
mov edx, dword [esp + 4]
push 0x1011b054
call fcn.10050faa
pop ecx
push ebx
push dword [esp + 0x20]
push eax
call fcn.1008efac
add esp, 0xc
mov eax, dword [esi + 0x1a0]
mov esi, edi
mov edi, dword [esp + 0x18]
cmp byte [eax + 2], 0
je 0x100504da
push dword [esp + 0x1c]
call fcn.1004a889
pop ecx
mov ecx, dword [esp]
mov edx, dword [esp + 4]
mov byte [esp + 0xc], al
push 0x1011b064
call fcn.10050faa
pop ecx
movzx ecx, byte [esp + 0xc]
push ebx
push ecx
push eax
call fcn.1008efac
add esp, 0xc
jmp 0x100504da
mov ecx, dword [esp]
mov edx, dword [esp + 4]
push 0x1011b074
call fcn.10050faa
pop ecx
mov edx, dword [esp + 8]
lea ecx, [eax + 0x14]
call fcn.10057bd2
mov ebx, dword [esp + 0x10]
jmp 0x1005035d
movsd xmm0, qword [esp + 0x28]
mov eax, dword [ebp + 8]
movsd xmm1, qword [esp + 0x30]
movsd qword [esp + 0x48], xmm1
movsd qword [esp + 0x40], xmm0
movsd qword [eax + 0x10], xmm1
movsd qword [eax + 8], xmm0
mov dword [eax], ecx
mov dword [eax + 4], ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp + 8]
mov dword [eax], 3
jmp 0x100506ad
movsd xmm0, qword [esp + 0x50]
movsd xmm1, qword [esp + 0x58]
mov eax, dword [ebp + 8]
mov edx, dword [esp + 8]
jmp 0x100506e4
movsd xmm0, qword [esp + 0x50]
movsd xmm1, qword [esp + 0x58]
mov eax, dword [ebp + 8]
movsd qword [esp + 0x80], xmm1
movsd qword [esp + 0x78], xmm0
movsd qword [eax + 0x10], xmm1
movsd qword [eax + 8], xmm0
mov dword [eax], ecx
mov dword [eax + 4], edx
jmp 0x100506ad
and dword [esp + 0x20], 0
mov dword [esp + 0x28], 0x1011b01c
mov dword [esp + 0x2c], 1
mov dword [esp + 0x30], 0x1011abec
and dword [esp + 0x34], 0
lea eax, [esp + 0x74]
push 0x1011b024
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x48]
push ecx
push eax
push 0
call fcn.10109f61
add esp, 0x14
ud2