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

Disassembly:
sub esp, 0x80
push ebx
push ebp
push edi
mov edx, esi
call fcn.100e34a0
mov edi, eax
xor ebp, ebp
mov dword [esp + 0x18], edi
mov dword [esp + 0xc], ebp
mov dword [esp + 0x14], ebp
cmp edi, 0xffffffff
je 0x100d5cf8
mov eax, dword [esi + 0x158]
cmp eax, ebp
je 0x100d5cf8
cmp dword [esi + 0x15c], ebp
je 0x100d5cf8
cmp dword [esi + 0x160], ebp
je 0x100d5cf8
mov edx, dword [esi + 0x114]
push ebp
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [edx + edi*4]
push ecx
call eax
add esp, 0xc
test eax, eax
jne 0x100d5ce8
mov eax, dword [esp + 0xc]
cmp eax, ebp
jbe 0x100d5ce8
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1003de3e
mov ecx, dword [esi + 0x114]
mov edx, dword [ecx + edi*4]
mov ebx, eax
push ebx
lea eax, [esp + 0x14]
push eax
mov eax, dword [esi + 0x158]
push edx
mov dword [esp + 0x2c], ebx
call eax
add esp, 0x10
test eax, eax
jne 0x100d5cdf
xor edi, edi
mov dword [esp + 0x10], edi
cmp dword [esp + 0xc], ebp
jbe 0x100d5cdf
jmp 0x100d5a20
xor eax, eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov eax, dword [esi + 0x15c]
lea ecx, [esp + 0x64]
mov dword [esp + 0x64], 0xc
mov edx, dword [ebx + edi*4]
push ecx
push edx
call eax
add esp, 8
test eax, eax
jne 0x100d5cd0
mov eax, dword [esp + 0x90]
sub eax, ebp
je 0x100d5b9a
sub eax, 2
jne 0x100d5cd0
cmp dword [esp + 0x6c], 2
jne 0x100d5cd0
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov eax, dword [esi + 0x160]
lea ecx, [esp + 0x70]
mov dword [esp + 0x70], 0x18
mov edx, dword [ebx + edi*4]
push ecx
push edx
call eax
add esp, 8
test eax, eax
jne 0x100d5cd0
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0x18c]
mov ebx, dword [esp + 0x78]
shl eax, 6
mov edx, dword [eax + ecx + 0x18]
or edx, dword [eax + ecx + 0x1c]
jne 0x100d5ad9
fld1
jmp 0x100d5b5e
mov edx, ecx
lea ecx, [eax + edx]
mov edx, dword [esp + 0x7c]
mov edi, ebx
sub edi, dword [ecx + 0x10]
mov dword [esp + 0x28], ebp
sbb edx, dword [ecx + 0x14]
mov dword [esp + 0x20], edi
mov edi, edx
and edx, 0x7fffffff
and edi, 0x80000000
mov dword [esp + 0x24], edx
fild qword [esp + 0x20]
mov edx, dword [esp + 0x84]
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x80]
fild qword [esp + 0x28]
sub edi, dword [ecx + 0x18]
mov dword [esp + 0x38], ebp
sbb edx, dword [ecx + 0x1c]
fchs
faddp st(1)
mov dword [esp + 0x30], edi
mov edi, dword [esp + 0x10]
mov ecx, edx
fmul qword [0x101f6c38]
and edx, 0x7fffffff
and ecx, 0x80000000
mov dword [esp + 0x34], edx
fild qword [esp + 0x30]
mov dword [esp + 0x3c], ecx
fild qword [esp + 0x38]
fchs
faddp st(1)
fdivp st(1)
mov ecx, dword [esp + 0x94]
fstp dword [ecx]
mov ecx, dword [esi + 0x18c]
mov dword [eax + ecx + 0x10], ebx
mov edx, dword [esp + 0x7c]
mov dword [eax + ecx + 0x14], edx
mov edx, dword [esp + 0x80]
mov ecx, dword [esi + 0x18c]
mov dword [eax + ecx + 0x18], edx
mov edx, dword [esp + 0x84]
mov dword [eax + ecx + 0x1c], edx
jmp 0x100d5cc4
cmp dword [esp + 0x6c], ebp
jne 0x100d5cd0
mov edx, dword [esi + 0x160]
xor eax, eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
lea eax, [esp + 0x70]
mov dword [esp + 0x70], 0x18
mov ecx, dword [ebx + edi*4]
push eax
push ecx
call edx
add esp, 8
test eax, eax
jne 0x100d5cd0
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0x18c]
mov ebx, dword [esp + 0x78]
shl eax, 6
mov edx, dword [eax + ecx + 8]
or edx, dword [eax + ecx + 0xc]
jne 0x100d5c0a
fld1
jmp 0x100d5c8e
mov edx, ecx
lea ecx, [eax + edx]
mov edx, dword [esp + 0x7c]
mov edi, ebx
sub edi, dword [ecx]
mov dword [esp + 0x48], ebp
sbb edx, dword [ecx + 4]
mov dword [esp + 0x40], edi
mov edi, edx
and edx, 0x7fffffff
and edi, 0x80000000
mov dword [esp + 0x44], edx
fild qword [esp + 0x40]
mov edx, dword [esp + 0x84]
mov dword [esp + 0x4c], edi
mov edi, dword [esp + 0x80]
fild qword [esp + 0x48]
sub edi, dword [ecx + 8]
mov dword [esp + 0x58], ebp
sbb edx, dword [ecx + 0xc]
fchs
faddp st(1)
mov dword [esp + 0x50], edi
mov edi, dword [esp + 0x10]
mov ecx, edx
fmul qword [0x101f6c38]
and edx, 0x7fffffff
and ecx, 0x80000000
mov dword [esp + 0x54], edx
fild qword [esp + 0x50]
mov dword [esp + 0x5c], ecx
fild qword [esp + 0x58]
fchs
faddp st(1)
fdivp st(1)
mov ecx, dword [esp + 0x94]
fstp dword [ecx]
mov ecx, dword [esi + 0x18c]
mov dword [eax + ecx], ebx
mov edx, dword [esp + 0x7c]
mov dword [eax + ecx + 4], edx
mov edx, dword [esp + 0x80]
mov ecx, dword [esi + 0x18c]
mov dword [eax + ecx + 8], edx
mov edx, dword [esp + 0x84]
mov dword [eax + ecx + 0xc], edx
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x14], 1
inc edi
mov dword [esp + 0x10], edi
cmp edi, dword [esp + 0xc]
jb 0x100d5a20
push ebx
call fcn.1003e211
add esp, 4
mov eax, dword [esp + 0x14]
pop edi
pop ebp
pop ebx
add esp, 0x80
ret 8
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x80
ret 8