Function at 0x10051d4b
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 + 0x30], ebx
mov dword [esp + 0x50], ebp
mov dword [esi + 0x140], ebp
mov dword [esi + 0x144], ebp
call fcn.1005cef5
movsd xmm0, qword [0x10090fc8]
mov edi, dword [esp + 0x7c]
movsd qword [esp + 0x68], xmm0
pop ecx
pop ecx
test eax, eax
je 0x100520ee
push 0x74736c65
push eax
call fcn.1005cef5
pop ecx
pop ecx
test eax, eax
je 0x100520ee
mov ebx, dword [eax]
push ebx
call fcn.100362b3
mov dword [esp + 0x50], eax
pop ecx
cmp eax, 0x10
jb 0x100520ea
mov cl, byte [ebx + 8]
push 0xc
pop eax
push 0x14
pop edx
cmp cl, 1
mov byte [esp + 0x78], cl
cmove eax, edx
mov dword [esp + 0x50], eax
lea eax, [ebx + 0xc]
push eax
call fcn.100362b3
mov ebp, eax
pop ecx
cmp ebp, 0x186a0
jg 0x100520e8
imul eax, dword [esp + 0x50]
add eax, 0x10
cmp dword [esp + 0x4c], eax
jb 0x100520e8
xor eax, eax
inc eax
cmp ebp, eax
push 0x38
cmovg eax, ebp
push eax
call sub.glib_lite.dll_Ordinal_207
and dword [esp + 0x48], 0
xorps xmm0, xmm0
pop ecx
add ebx, 0x10
mov dword [esi + 0x144], eax
movlpd qword [esp + 0x5c], xmm0
movlpd qword [esp + 0x3c], xmm0
pop ecx
test ebp, ebp
jle 0x100520d5
mov dl, byte [esp + 0x78]
lea ecx, [ebx + 4]
and dword [esp + 0x44], 0
cmp dl, 1
movsd xmm0, qword [0x100a0ad0]
push 4
pop eax
push 0xc
pop edi
cmove eax, edi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x38]
movsd qword [esp + 0x68], xmm0
mov dword [esp + 0x1c], eax
or dword [esp + 0x34], 0xffffffff
xor eax, eax
or dword [esp + 0x38], 0xffffffff
mov dword [esp + 0x14], eax
cmp dl, 1
jne 0x10051f61
lea eax, [ecx + 4]
push eax
call fcn.100362b3
mov edi, eax
mov eax, dword [esp + 0x24]
add eax, 8
push eax
call fcn.100362b3
xor ecx, ecx
or ecx, eax
push ebx
mov dword [esp + 0x30], ecx
call fcn.100362b3
push dword [esp + 0x2c]
mov dword [esp + 0x20], eax
call fcn.100362b3
mov edx, dword [esp + 0x34]
xor ecx, ecx
or ecx, eax
add esp, 0x10
mov eax, edx
mov dword [esp + 0x2c], ecx
and eax, edi
cmp eax, 0xffffffff
jne 0x10051ef6
xor ecx, ecx
inc ecx
jmp 0x10051efa
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x14], ecx
test ecx, ecx
jne 0x10051f24
push 0
push dword [esi + 0x40]
push 0
push 0x3b9aca00
push edi
push edx
call fcn.1006185a
mov ecx, dword [esp + 0x2c]
add esp, 0x18
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], edx
mov edi, dword [esi + 0x144]
add edi, dword [esp + 0x44]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x2c]
mov dword [edi], eax
mov eax, dword [esp + 0x18]
mov dword [edi + 4], eax
mov eax, edx
or eax, dword [esp + 0x10]
jne 0x10051f93
test ecx, ecx
jne 0x10051f93
mov ebp, dword [esp + 0x40]
or edx, 0xffffffff
mov eax, edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], edx
inc ebp
mov ecx, edx
jmp 0x10051fd3
push ecx
call fcn.100362b3
push ebx
mov dword [esp + 0x2c], eax
xor edi, edi
call fcn.100362b3
and dword [esp + 0x18], edi
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x34], eax
pop ecx
pop ecx
cmp edx, 0xffffffff
jne 0x10051f02
xor ecx, ecx
inc ecx
mov dword [esp + 0x14], ecx
jmp 0x10051f24
mov eax, dword [esp + 0x74]
add dword [esp + 0x30], edx
mov ecx, dword [esp + 0x4c]
adc ecx, dword [esp + 0x10]
push 0
push dword [eax + 0x104]
mov eax, dword [esp + 0x38]
push 0
push 0x3b9aca00
push ecx
push eax
mov dword [esp + 0x64], ecx
call fcn.1006185a
add esp, 0x18
mov dword [esp + 0x18], edx
mov ecx, eax
mov dword [esp + 0x1c], eax
sub ecx, dword [edi]
sbb edx, dword [edi + 4]
cmp dword [esp + 0x14], 0
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], edx
mov dword [edi + 8], eax
mov eax, dword [esp + 0x18]
mov dword [edi + 0xc], eax
mov eax, dword [esp + 0x24]
mov dword [edi + 0x30], eax
jne 0x1005201e
mov eax, dword [esp + 0x34]
mov dword [edi + 0x18], eax
mov eax, dword [esp + 0x38]
mov dword [edi + 0x1c], eax
mov eax, ecx
and eax, edx
cmp eax, 0xffffffff
je 0x10052012
add ecx, dword [esp + 0x34]
adc edx, dword [esp + 0x38]
jmp 0x10052018
or ecx, 0xffffffff
or edx, 0xffffffff
inc dword [esp + 0x48]
jmp 0x1005202b
or eax, 0xffffffff
mov dword [edi + 0x18], eax
mov ecx, eax
mov dword [edi + 0x1c], eax
mov edx, eax
mov eax, dword [esp + 0x20]
add eax, dword [esp + 0x54]
mov dword [edi + 0x20], ecx
push eax
mov dword [edi + 0x24], edx
call fcn.100362b3
pop ecx
cmp eax, 1
ja 0x1005204d
movsd xmm0, qword [esp + 0x60]
jmp 0x10052067
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x10090fd0]
mulsd xmm0, qword [esp + 0x68]
mov ecx, dword [esp + 0x18]
movsd qword [edi + 0x28], xmm0
mov edi, dword [esp + 0x74]
cmp ecx, dword [edi + 0x154]
jb 0x100520ab
mov eax, dword [esp + 0x1c]
ja 0x1005208a
cmp eax, dword [edi + 0x150]
jbe 0x100520ab
cmp dword [edi + 0x230], 0
jne 0x100520ab
mov dword [edi + 0x168], eax
mov dword [edi + 0x16c], ecx
mov dword [edi + 0x150], eax
mov dword [edi + 0x154], ecx
mov ecx, dword [esp + 0x20]
add ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x40]
add ebx, dword [esp + 0x50]
inc edx
add dword [esp + 0x44], 0x38
cmp edx, ebp
mov dword [esp + 0x40], edx
mov dl, byte [esp + 0x78]
mov dword [esp + 0x20], ecx
jl 0x10051e8d
mov dword [esi + 0x140], ebp
xor ebp, ebp
cmp dword [esp + 0x48], 1
je 0x100520ea
mov ebx, ebp
jmp 0x100520ee
xor ebp, ebp
mov ebx, dword [esp + 0x28]
cmp dword [edi + 0xc0], ebp
jne 0x10052112
test ebx, ebx
jne 0x10052112
push dword [esi + 0x144]
call sub.glib_lite.dll_Ordinal_110
pop ecx
mov dword [esi + 0x144], ebp
mov dword [esi + 0x140], ebp
cmp dword [esi + 0x140], ebp
jne 0x100521c3
push ebp
push dword [esi + 0x40]
push ebp
push 0x3b9aca00
push dword [esi + 0x3c]
push dword [esi + 0x38]
call fcn.1006185a
mov ecx, dword [esi + 0x144]
add esp, 0x18
mov edi, eax
mov ebx, edx
test ecx, ecx
jne 0x10052157
push 0x38
push 1
call sub.glib_lite.dll_Ordinal_207
pop ecx
pop ecx
mov ecx, eax
mov dword [esi + 0x144], ecx
mov eax, edi
or eax, ebx
jne 0x10052163
or edi, 0xffffffff
or ebx, 0xffffffff
mov dword [ecx], ebp
mov dword [ecx + 4], ebp
mov eax, dword [esi + 0x144]
movsd xmm0, qword [esp + 0x60]
mov dword [eax + 8], edi
mov dword [eax + 0xc], ebx
mov eax, dword [esi + 0x144]
mov dword [eax + 0x10], edi
mov dword [eax + 0x14], ebx
mov eax, dword [esi + 0x144]
mov dword [eax + 0x18], ebp
mov dword [eax + 0x1c], ebp
mov eax, dword [esi + 0x144]
mov dword [eax + 0x20], edi
mov dword [eax + 0x24], ebx
xor eax, eax
mov ecx, dword [esi + 0x144]
inc eax
movsd qword [ecx + 0x28], xmm0
mov ecx, dword [esi + 0x144]
mov dword [ecx + 0x30], ebp
mov dword [esi + 0x140], eax
mov dword [esi + 0x148], eax
jmp 0x100521c6
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret