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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xa0
mov edi, ecx
mov ebx, dword [ebp + 0x10]
mov eax, dword [0x10243228]
xor eax, ebp
mov dword [esp + 0x98], eax
pxor xmm0, xmm0
lea eax, [esp + 0x70]
movdqu xmmword [eax + 0xc], xmm0
movdqa xmmword [eax], xmm0
push eax
call fcn.10036a60
xor edx, edx
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], edx
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 8]
cmp eax, ecx
mov dword [esp + 4], edi
jae 0x10037342
mov dword [eax], edx
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov ecx, dword [esp + 0x58]
mov dword [eax], ecx
mov ecx, dword [esp + 0x5c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x60]
mov dword [eax + 8], ecx
mov dword [esp + 0x60], edx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x58], edx
add eax, 0xc
mov dword [ebx + 4], eax
jmp 0x100373ec
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x10], xmm0
mov dword [esp + 0x20], 0xffffffff
mov esi, dword [ebx]
sub eax, esi
sar eax, 2
imul eax, eax, 0xaaaaaaab
lea edx, [eax + 1]
cmp edx, 0x15555556
jae 0x10037867
mov edi, dword [ebp + 0x10]
lea ebx, [edi + 0xc]
sub ecx, esi
sar ecx, 2
imul ecx, ecx, 0xaaaaaaab
lea esi, [ecx + ecx]
cmp esi, edx
cmovb esi, edx
cmp ecx, 0xaaaaaaa
mov edx, 0x15555555
cmovb edx, esi
lea edi, [esp + 0x10]
mov ecx, edi
push ebx
mov ebx, dword [ebp + 0x10]
push eax
push edx
call fcn.10008bc8
mov eax, dword [edi + 8]
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x58]
mov dword [eax], edx
mov edx, dword [esp + 0x5c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x60]
mov dword [eax + 8], edx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x58], ecx
add dword [edi + 8], 0xc
mov ecx, ebx
push edi
call fcn.10037f42
mov ecx, edi
call fcn.10037fc4
mov edi, dword [esp + 4]
lea ecx, [esp + 0x58]
call fcn.10036658
mov dword [esp + 0x6c], edi
mov byte [edi + 0x2c], 1
lea eax, [ebx + 0xc]
mov dword [esp + 8], eax
xor esi, esi
inc esi
mov ecx, edi
lea eax, [esp + 0x70]
push eax
call fcn.10036a60
mov eax, dword [esp + 0x70]
cmp eax, 0x28
jle 0x1003747a
cmp eax, 0x29
je 0x1003747f
cmp eax, 0x2c
jne 0x1003749c
cmp esi, 1
jne 0x1003749c
xor edx, edx
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], edx
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 8]
cmp eax, ecx
jae 0x100374ff
mov dword [eax], edx
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov ecx, dword [esp + 0x58]
mov dword [eax], ecx
mov ecx, dword [esp + 0x5c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x60]
mov dword [eax + 8], ecx
mov dword [esp + 0x60], edx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x58], edx
add eax, 0xc
mov dword [ebx + 4], eax
jmp 0x100375a3
jne 0x10037494
inc esi
jmp 0x1003749c
movq xmm0, qword [esp + 0x78]
mov eax, dword [ebp + 0x14]
movq qword [eax], xmm0
dec esi
jne 0x1003749c
jmp 0x100375b4
test eax, eax
je 0x100377bb
mov edi, dword [ebx + 4]
mov ebx, dword [edi - 8]
cmp dword [edi - 0xc], ebx
jne 0x100374b5
lea ecx, [esp + 0x70]
push 0
call fcn.100384c2
mov ebx, dword [edi - 8]
cmp ebx, dword [edi - 4]
je 0x100374dc
movdqa xmm0, xmmword [esp + 0x70]
movdqu xmmword [ebx], xmm0
lea ecx, [ebx + 0x10]
lea eax, [esp + 0x80]
push eax
call fcn.101ac41c
add ebx, 0x1c
mov dword [edi - 8], ebx
jmp 0x100374eb
add edi, 0xfffffff4
mov ecx, edi
lea eax, [esp + 0x70]
push eax
call fcn.10034d36
mov edi, dword [esp + 4]
mov ebx, dword [ebp + 0x10]
test esi, esi
jne 0x10037407
jmp 0x100375b4
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x10], xmm0
mov dword [esp + 0x20], 0xffffffff
mov esi, dword [ebx]
sub eax, esi
sar eax, 2
imul eax, eax, 0xaaaaaaab
lea edx, [eax + 1]
cmp edx, 0x15555556
jae 0x10037867
sub ecx, esi
sar ecx, 2
imul ecx, ecx, 0xaaaaaaab
lea esi, [ecx + ecx]
cmp esi, edx
cmovb esi, edx
cmp ecx, 0xaaaaaaa
mov ecx, 0x15555555
cmovae esi, ecx
lea ecx, [esp + 0x10]
push dword [esp + 8]
push eax
push esi
call fcn.10008bc8
mov eax, dword [esp + 0x18]
xor edx, edx
mov dword [eax], edx
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov ecx, dword [esp + 0x58]
mov dword [eax], ecx
mov ecx, dword [esp + 0x5c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x60]
mov dword [eax + 8], ecx
mov dword [esp + 0x60], edx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x58], edx
add dword [esp + 0x18], 0xc
mov ecx, ebx
lea esi, [esp + 0x10]
push esi
call fcn.10037f42
mov ecx, esi
call fcn.10037fc4
lea ecx, [esp + 0x58]
call fcn.10036658
xor esi, esi
inc esi
jmp 0x100374f2
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
mov edi, dword [ebx + 4]
cmp eax, ecx
jne 0x100375dc
mov esi, dword [ebx]
mov ecx, edi
sub ecx, esi
cmp ecx, 0xc
jne 0x100375da
mov ecx, dword [esi]
cmp ecx, dword [esi + 4]
je 0x10037842
mov ecx, eax
mov esi, edi
sub ecx, eax
mov ebx, dword [ebx]
sub edi, ebx
sar edi, 2
imul eax, edi, 0xaaaaaaab
sar ecx, 2
imul ecx, ecx, 0xaaaaaaab
cmp eax, ecx
jne 0x100377de
mov dword [esp + 0xc], esi
cmp ebx, esi
mov edx, dword [esp + 4]
je 0x1003783e
pxor xmm0, xmm0
xor esi, esi
mov dword [esp + 0x58], 0x102105f0
lea eax, [esp + 0x5c]
movdqu xmmword [eax], xmm0
mov eax, dword [ebx]
mov dword [ebx], 0
mov dword [esp + 0x5c], eax
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x60]
mov dword [ebx + 4], ecx
mov dword [esp + 0x60], eax
mov eax, dword [ebx + 8]
mov ecx, dword [esp + 0x64]
mov dword [ebx + 8], ecx
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x68], eax
mov eax, dword [edx + 0x28]
test eax, eax
jle 0x1003775a
pcmpeqd xmm1, xmm1
movdqa xmmword [esp + 0x30], xmm1
movdqa xmmword [esp + 0x20], xmm1
movdqa xmmword [esp + 0x10], xmm1
mov cl, byte [edx + 0x10]
mov byte [esp + 8], cl
mov edx, dword [edx + 8]
mov edi, dword [esp + 4]
mov edi, dword [edi + 0xc]
mov dword [esp + 0x10], 0x102105cc
lea ecx, [esp + 0x58]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edi
mov cl, byte [esp + 8]
mov byte [esp + 0x20], cl
dec eax
lea ecx, [esp + 0x24]
xor edx, edx
mov dword [ecx + 0x10], edx
movdqu xmmword [ecx], xmm0
mov dword [esp + 0x38], eax
mov byte [esp + 0x3c], 0
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], edx
mov ecx, ebx
call fcn.10036676
lea ecx, [esp + 0x10]
lea eax, [esp + 0x70]
push eax
call fcn.10036850
cmp dword [esp + 0x70], 0
je 0x10037776
mov edi, dword [ebx + 4]
cmp edi, dword [ebx + 8]
je 0x10037717
movdqa xmm0, xmmword [esp + 0x70]
movdqu xmmword [edi], xmm0
lea ecx, [edi + 0x10]
lea eax, [esp + 0x80]
push eax
call fcn.101ac41c
add edi, 0x1c
mov dword [ebx + 4], edi
lea edi, [esp + 0x70]
jmp 0x10037723
mov ecx, ebx
lea edi, [esp + 0x70]
push edi
call fcn.10034d36
lea ecx, [esp + 0x10]
push edi
call fcn.10036850
inc esi
mov ecx, dword [esp + 4]
mov eax, dword [ecx + 0x24]
add eax, esi
cmp eax, 0x2711
jb 0x100376de
mov ecx, dword [ecx + 0xc]
lea eax, [esp + 0x80]
push eax
lea eax, [esp + 0x7c]
push eax
push 2
call fcn.10033180
xor edi, edi
inc edi
jmp 0x10037778
mov ecx, dword [edx + 0xc]
lea eax, [esp + 0x80]
push eax
lea eax, [esp + 0x7c]
push eax
push 0x16
call fcn.10033180
xor edi, edi
inc edi
jmp 0x10037781
xor edi, edi
lea ecx, [esp + 0x10]
call fcn.100367ca
mov dword [esp + 0x58], 0x102105f0
lea ecx, [esp + 0x5c]
call fcn.10036658
lea ecx, [esp + 0x58]
call fcn.100203f0
test edi, edi
sete al
add ebx, 0xc
cmp ebx, dword [esp + 0xc]
je 0x10037800
test edi, edi
mov edx, dword [esp + 4]
pxor xmm0, xmm0
je 0x10037614
jmp 0x10037800
mov ecx, dword [edi + 0xc]
mov edx, dword [ebp + 0xc]
lea eax, [edx + 0x10]
add edx, 8
push eax
push edx
push 0x11
call fcn.10033180
mov ecx, edi
lea eax, [esp + 0x70]
push eax
call fcn.10036e78
jmp 0x100377fe
mov eax, 0x14
sbb eax, 0
mov ecx, dword [esp + 4]
mov ecx, dword [ecx + 0xc]
mov esi, dword [ebp + 0xc]
lea edx, [esi + 0x10]
add esi, 8
push edx
push esi
push eax
call fcn.10033180
xor eax, eax
mov ebx, eax
lea ecx, [esp + 0x6c]
call fcn.1003673c
cmp byte [esp + 0x8b], 0
jns 0x10037824
push dword [esp + 0x80]
call fcn.101d75d9
add esp, 4
mov ecx, dword [esp + 0x98]
xor ecx, ebp
call fcn.101d7611
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
mov al, 1
jmp 0x10037800
cmp edi, esi
je 0x10037854
add edi, 0xfffffff4
mov ecx, edi
call fcn.10036658
cmp esi, edi
jne 0x10037846
mov dword [ebx + 4], esi
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x18]
mov ecx, dword [ecx + 0x1c]
mov edi, esi
jmp 0x100375de
mov ecx, ebx
call fcn.101add4c