Function at 0x1004ea63
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 + 0x40], ebx
mov dword [esp + 0x3c], ebp
mov dword [esi + 0x138], ebp
mov dword [esi + 0x13c], ebp
call fcn.10053a2c
movsd xmm0, qword [0x10085050]
mov edi, ebp
movsd qword [esp + 0x68], xmm0
pop ecx
pop ecx
test eax, eax
je 0x1004ee65
push 0x74736c65
push eax
call fcn.10053a2c
pop ecx
pop ecx
test eax, eax
je 0x1004ee65
mov ebx, dword [eax]
push ebx
call fcn.10032849
mov dword [esp + 0x54], eax
pop ecx
cmp eax, 0x10
jb 0x1004ee61
mov al, byte [ebx + 8]
push 0xc
pop ecx
mov edi, ecx
mov byte [esp + 0x78], al
push 0x14
cmp al, 1
lea eax, [ebx + 0xc]
pop ecx
cmove edi, ecx
push eax
mov dword [esp + 0x5c], edi
call fcn.10032849
mov ebp, eax
pop ecx
cmp ebp, 0x186a0
jg 0x1004ee5d
imul eax, edi
add eax, 0x10
cmp dword [esp + 0x50], eax
jb 0x1004ee5d
xor eax, eax
inc eax
cmp ebp, eax
push 0x38
cmovg eax, ebp
push eax
call sub.glib_lite.dll_Ordinal_197
xorps xmm0, xmm0
mov dword [esi + 0x13c], eax
pop ecx
xor edi, edi
movlpd qword [esp + 0x4c], xmm0
add ebx, 0x10
movlpd qword [esp + 0x40], xmm0
pop ecx
test ebp, ebp
jle 0x1004ee4a
and dword [esp + 0x44], edi
lea ecx, [ebx + 4]
mov dl, byte [esp + 0x78]
movsd xmm0, qword [0x10095160]
cmp dl, 1
push 4
pop eax
push 0xc
pop edi
cmove eax, edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x5c], ebp
movsd qword [esp + 0x68], xmm0
mov dword [esp + 0x28], eax
or dword [esp + 0x18], 0xffffffff
or edi, 0xffffffff
mov dword [esp + 0x30], 1
mov dword [esp + 0x10], edi
cmp dl, 1
jne 0x1004ecd9
lea eax, [ecx + 4]
push eax
call fcn.10032849
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x28]
add eax, 8
push eax
call fcn.10032849
xor ecx, ecx
or ecx, eax
push ebx
mov dword [esp + 0x2c], ecx
call fcn.10032849
push dword [esp + 0x30]
mov dword [esp + 0x2c], eax
call fcn.10032849
mov ecx, dword [esp + 0x24]
xor edx, edx
or edx, eax
add esp, 0x10
mov eax, dword [esp + 0x20]
and eax, ecx
mov dword [esp + 0x3c], edx
cmp eax, 0xffffffff
je 0x1004ed14
mov eax, dword [esp + 0x20]
push 0
push dword [esi + 0x38]
push 0
push 0x3b9aca00
push ecx
push eax
call fcn.100398ed
mov edi, eax
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x54]
add esp, 0x18
mov dword [esp + 0x10], edi
mov eax, dword [esi + 0x13c]
mov ecx, dword [esp + 0x44]
add eax, ecx
add ecx, 0x38
mov dword [esp + 0x14], eax
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x28]
mov dword [eax], ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 4], ecx
mov eax, edx
or eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
jne 0x1004ed26
mov eax, edi
and eax, ecx
cmp eax, 0xffffffff
je 0x1004ed26
mov edi, dword [esp + 0x74]
push 0
push dword [edi + 0x178]
push 0
push 0x3b9aca00
push dword [edi + 0x184]
push dword [edi + 0x180]
call fcn.100398ed
mov edi, dword [esp + 0x28]
mov ecx, eax
and eax, edx
mov dword [esp + 0x40], ecx
add esp, 0x18
mov dword [esp + 0x2c], edx
cmp eax, 0xffffffff
je 0x1004ed1e
cmp dword [esp + 0x30], 0
je 0x1004ed1e
mov eax, dword [esp + 0x18]
cmp edx, eax
jb 0x1004ed1e
ja 0x1004eccc
cmp ecx, edi
jb 0x1004ed1e
sub ecx, edi
sbb edx, eax
mov eax, dword [esp + 0x14]
jmp 0x1004ed70
push ecx
call fcn.10032849
and dword [esp + 0x18], 0
push ebx
mov dword [esp + 0x28], eax
call fcn.10032849
and dword [esp + 0x24], 0
mov edx, eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x44], edx
pop ecx
pop ecx
mov ecx, dword [esp + 0x14]
cmp eax, 0xffffffff
jne 0x1004ec16
test ecx, ecx
jne 0x1004ec16
and dword [esp + 0x30], 0
jmp 0x1004ec3a
or ecx, 0xffffffff
or edx, 0xffffffff
jmp 0x1004ecd0
mov eax, dword [esp + 0x74]
mov edi, dword [esp + 0x48]
mov ecx, dword [esp + 0x50]
add edi, edx
push 0
push dword [eax + 0x178]
adc ecx, dword [esp + 0x24]
push 0
push 0x3b9aca00
push ecx
push edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x68], ecx
call fcn.100398ed
mov edi, dword [esp + 0x28]
mov ecx, eax
mov dword [esp + 0x40], eax
add esp, 0x18
mov eax, dword [esp + 0x14]
mov dword [esp + 0x2c], edx
sub ecx, dword [eax]
sbb edx, dword [eax + 4]
cmp dword [esp + 0x30], 0
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x28]
mov dword [eax + 0x14], edx
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x20]
mov dword [eax + 0x30], ecx
je 0x1004eda4
inc dword [esp + 0x34]
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
add ecx, edi
adc edx, dword [esp + 0x18]
jmp 0x1004edb2
or ecx, 0xffffffff
or edx, 0xffffffff
or edi, 0xffffffff
or dword [esp + 0x18], 0xffffffff
mov dword [eax + 0x18], edi
mov edi, dword [esp + 0x18]
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], edx
mov eax, dword [esp + 0x24]
add eax, dword [esp + 0x54]
push eax
call fcn.10032849
pop ecx
cmp eax, 1
ja 0x1004edde
movsd xmm0, qword [esp + 0x60]
jmp 0x1004edf8
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x10085060]
mulsd xmm0, qword [esp + 0x68]
mov eax, dword [esp + 0x14]
movsd qword [eax + 0x28], xmm0
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 8]
mov eax, dword [esp + 0x74]
cmp edx, dword [eax + 0x1cc]
jb 0x1004ee29
ja 0x1004ee1d
cmp ecx, dword [eax + 0x1c8]
jbe 0x1004ee29
mov dword [eax + 0x1c8], ecx
mov dword [eax + 0x1cc], edx
mov ecx, dword [esp + 0x24]
add ecx, dword [esp + 0x58]
add ebx, dword [esp + 0x58]
mov dl, byte [esp + 0x78]
mov dword [esp + 0x24], ecx
sub ebp, 1
jne 0x1004eba2
mov edi, dword [esp + 0x5c]
xor ebp, ebp
mov dword [esi + 0x138], edi
cmp dword [esp + 0x34], 1
je 0x1004ee61
mov ebx, ebp
jmp 0x1004ee65
xor ebp, ebp
mov edi, ebp
mov ebx, dword [esp + 0x38]
mov eax, dword [esp + 0x74]
cmp dword [eax + 0xc0], ebp
jne 0x1004ee8f
test ebx, ebx
jne 0x1004ee8f
push dword [esi + 0x13c]
call sub.glib_lite.dll_Ordinal_105
pop ecx
mov dword [esi + 0x13c], ebp
mov edi, ebp
mov dword [esi + 0x138], ebp
test edi, edi
jne 0x1004ef3c
push ebp
push dword [esi + 0x38]
push ebp
push 0x3b9aca00
push dword [esi + 0x34]
push dword [esi + 0x30]
call fcn.100398ed
mov ecx, dword [esi + 0x13c]
add esp, 0x18
mov edi, eax
mov ebx, edx
test ecx, ecx
jne 0x1004eed0
push 0x38
push 1
call sub.glib_lite.dll_Ordinal_197
pop ecx
pop ecx
mov ecx, eax
mov dword [esi + 0x13c], ecx
mov eax, edi
or eax, ebx
jne 0x1004eedc
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 0x1004ef3f
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret