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

Disassembly:
sub esp, 0x60
push ebx
push ebp
push esi
mov esi, dword [esp + 0x74]
xor ebx, ebx
push edi
xor ebp, ebp
inc ebx
push 0x73746465
push dword [esp + 0x80]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], ebp
mov dword [esi + 0x138], ebp
mov dword [esi + 0x13c], ebp
call fcn.100559a6
movsd xmm0, qword [0x1008a080]
mov edi, ebp
movsd qword [esp + 0x68], xmm0
pop ecx
pop ecx
test eax, eax
je 0x10050cb4
push 0x74736c65
push eax
call fcn.100559a6
pop ecx
pop ecx
test eax, eax
je 0x10050cb4
mov ebp, dword [eax]
push ebp
call fcn.100334ce
mov ebx, eax
pop ecx
cmp ebx, 0x10
jb 0x10050cae
mov cl, byte [ebp + 8]
push 0xc
pop eax
push 0x14
pop edx
cmp cl, 1
mov dword [esp + 0x50], eax
mov byte [esp + 0x78], cl
cmove eax, edx
mov dword [esp + 0x54], eax
lea eax, [ebp + 0xc]
push eax
call fcn.100334ce
mov edi, eax
pop ecx
cmp edi, 0x186a0
jg 0x10050ca8
imul eax, dword [esp + 0x54]
add eax, 0x10
cmp ebx, eax
jb 0x10050ca8
xor eax, eax
inc eax
cmp edi, eax
push 0x38
cmovg eax, edi
push eax
call sub.glib_lite.dll_Ordinal_201
and dword [esp + 0x44], 0
xorps xmm0, xmm0
add ebp, 0x10
mov dword [esi + 0x13c], eax
movlpd qword [esp + 0x50], xmm0
movlpd qword [esp + 0x3c], xmm0
mov dword [esp + 0x60], ebp
pop ecx
pop ecx
test edi, edi
jle 0x10050c95
mov al, byte [esp + 0x78]
lea ecx, [ebp + 4]
movsd xmm0, qword [0x1009a598]
xor ebx, ebx
push 4
cmp al, 1
mov dword [esp + 0x1c], ecx
pop edx
cmove edx, dword [esp + 0x50]
mov dword [esp + 0x5c], edx
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x48]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x34]
movsd qword [esp + 0x68], xmm0
mov dword [esp + 0x20], edx
and dword [esp + 0x1c], 0
or dword [esp + 0x30], 0xffffffff
or dword [esp + 0x34], 0xffffffff
cmp al, 1
jne 0x10050aa1
lea eax, [ecx + 4]
push eax
call fcn.100334ce
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
add eax, 8
push eax
call fcn.100334ce
xor ecx, ecx
or ecx, eax
push ebp
mov dword [esp + 0x34], ecx
call fcn.100334ce
push dword [esp + 0x24]
xor ebp, ebp
mov dword [esp + 0x24], eax
call fcn.100334ce
mov edx, dword [esp + 0x38]
or ebp, eax
mov ecx, dword [esp + 0x20]
mov eax, edx
and eax, ecx
mov dword [esp + 0x58], ebp
add esp, 0x10
cmp eax, 0xffffffff
jmp 0x10050ad0
push ecx
call fcn.100334ce
and dword [esp + 0x14], 0
push ebp
mov dword [esp + 0x30], eax
call fcn.100334ce
and dword [esp + 0x1c], 0
mov edx, dword [esp + 0x30]
mov dword [esp + 0x50], eax
pop ecx
pop ecx
mov ecx, dword [esp + 0x10]
cmp edx, 0xffffffff
jne 0x10050adb
test ecx, ecx
jne 0x10050adb
xor ecx, ecx
inc ecx
mov dword [esp + 0x1c], ecx
jmp 0x10050afd
push 0
push dword [esi + 0x40]
push 0
push 0x3b9aca00
push ecx
push edx
call fcn.1004e9af
mov ecx, dword [esp + 0x34]
add esp, 0x18
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
mov ebp, dword [esi + 0x13c]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x48]
mov dword [ebx + ebp], eax
mov eax, dword [esp + 0x24]
mov dword [ebx + ebp + 4], eax
mov eax, edx
or eax, dword [esp + 0x14]
jne 0x10050b36
test ecx, ecx
jne 0x10050b36
mov edi, dword [esp + 0x3c]
or edx, 0xffffffff
mov dword [esp + 0x20], edx
inc edi
mov dword [esp + 0x24], edx
mov eax, edx
jmp 0x10050b7c
mov eax, dword [esp + 0x74]
add dword [esp + 0x2c], edx
mov ecx, dword [esp + 0x50]
adc ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x2c]
push 0
push dword [eax + 0x104]
mov dword [esp + 0x58], ecx
push 0
push 0x3b9aca00
push ecx
push edx
call fcn.1004e9af
add esp, 0x18
mov dword [esp + 0x20], eax
sub eax, dword [ebx + ebp]
mov ecx, edx
mov dword [esp + 0x24], ecx
sbb edx, dword [ebx + ebp + 4]
mov ecx, dword [esp + 0x1c]
mov dword [ebx + ebp + 0x10], eax
mov eax, dword [esp + 0x20]
mov dword [ebx + ebp + 0x14], edx
mov dword [ebx + ebp + 8], eax
mov eax, dword [esp + 0x24]
mov dword [ebx + ebp + 0xc], eax
mov eax, dword [esp + 0x28]
mov dword [ebx + ebp + 0x30], eax
test ecx, ecx
jne 0x10050bd3
mov eax, dword [esp + 0x30]
mov ecx, dword [ebx + ebp + 0x10]
mov dword [ebx + ebp + 0x18], eax
mov eax, dword [esp + 0x34]
mov dword [ebx + ebp + 0x1c], eax
mov eax, ecx
and eax, edx
cmp eax, 0xffffffff
je 0x10050bc7
add ecx, dword [esp + 0x30]
adc edx, dword [esp + 0x34]
jmp 0x10050bcd
or ecx, 0xffffffff
or edx, 0xffffffff
inc dword [esp + 0x40]
jmp 0x10050be2
or eax, 0xffffffff
mov dword [ebx + ebp + 0x18], eax
mov ecx, eax
mov dword [ebx + ebp + 0x1c], eax
mov edx, eax
mov eax, dword [esp + 0x18]
add eax, dword [esp + 0x5c]
mov dword [ebx + ebp + 0x20], ecx
push eax
mov dword [ebx + ebp + 0x24], edx
call fcn.100334ce
pop ecx
cmp eax, 1
ja 0x10050c06
movsd xmm0, qword [esp + 0x60]
jmp 0x10050c20
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1008a090]
mulsd xmm0, qword [esp + 0x68]
mov eax, dword [esp + 0x74]
movsd qword [ebx + ebp + 0x28], xmm0
mov edx, dword [ebx + ebp + 0xc]
mov ecx, dword [ebx + ebp + 8]
cmp edx, dword [eax + 0x154]
jb 0x10050c65
ja 0x10050c44
cmp ecx, dword [eax + 0x150]
jbe 0x10050c65
cmp dword [eax + 0x228], 0
jne 0x10050c65
mov dword [eax + 0x168], ecx
mov dword [eax + 0x16c], edx
mov dword [eax + 0x150], ecx
mov dword [eax + 0x154], edx
mov ebp, dword [esp + 0x58]
add ebx, 0x38
mov ecx, dword [esp + 0x18]
add ebp, dword [esp + 0x54]
add ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x3c]
inc eax
mov dword [esp + 0x58], ebp
mov dword [esp + 0x3c], eax
cmp eax, edi
mov al, byte [esp + 0x78]
mov dword [esp + 0x18], ecx
jl 0x10050a3d
xor ebp, ebp
mov dword [esi + 0x138], edi
cmp dword [esp + 0x40], 1
je 0x10050cb0
mov ebx, ebp
jmp 0x10050cb4
xor ebp, ebp
mov edi, ebp
jmp 0x10050cb0
xor ebp, ebp
mov ebx, dword [esp + 0x44]
mov eax, dword [esp + 0x74]
cmp dword [eax + 0xc0], ebp
jne 0x10050cde
test ebx, ebx
jne 0x10050cde
push dword [esi + 0x13c]
call sub.glib_lite.dll_Ordinal_109
pop ecx
mov dword [esi + 0x13c], ebp
mov edi, ebp
mov dword [esi + 0x138], ebp
test edi, edi
jne 0x10050d8b
push ebp
push dword [esi + 0x40]
push ebp
push 0x3b9aca00
push dword [esi + 0x3c]
push dword [esi + 0x38]
call fcn.1004e9af
mov ecx, dword [esi + 0x13c]
add esp, 0x18
mov edi, eax
mov ebx, edx
test ecx, ecx
jne 0x10050d1f
push 0x38
push 1
call sub.glib_lite.dll_Ordinal_201
pop ecx
pop ecx
mov ecx, eax
mov dword [esi + 0x13c], ecx
mov eax, edi
or eax, ebx
jne 0x10050d2b
or edi, 0xffffffff
or ebx, 0xffffffff
mov dword [ecx], ebp
mov dword [ecx + 4], ebp
mov eax, dword [esi + 0x13c]
movsd xmm0, qword [esp + 0x60]
mov dword [eax + 8], edi
mov dword [eax + 0xc], ebx
mov eax, dword [esi + 0x13c]
mov dword [eax + 0x10], edi
mov dword [eax + 0x14], ebx
mov eax, dword [esi + 0x13c]
mov dword [eax + 0x18], ebp
mov dword [eax + 0x1c], ebp
mov eax, dword [esi + 0x13c]
mov dword [eax + 0x20], edi
mov dword [eax + 0x24], ebx
xor eax, eax
mov ecx, dword [esi + 0x13c]
inc eax
movsd qword [ecx + 0x28], xmm0
mov ecx, dword [esi + 0x13c]
mov dword [ecx + 0x30], ebp
mov dword [esi + 0x138], eax
mov dword [esi + 0x140], eax
jmp 0x10050d8e
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret