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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1010178d
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x10155700]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], edi
cmp byte [ebx + 0x5c], 0
jne 0x1003816c
mov eax, dword [ebx + 0x44]
cmp eax, dword [ebx + 0x40]
jae 0x1003816c
lea esi, [ebx + 0x78]
mov dword [ebp - 0x38], 0
push esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x38], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
cmp byte [ebx + 0x5c], 0
jne 0x10038157
mov eax, dword [ebx + 0x44]
cmp eax, dword [ebx + 0x40]
jae 0x10038157
mov ecx, dword [ebx + 0x34]
xor edx, edx
mov eax, dword [edi + 8]
div ecx
mov dword [ebp - 0x1c], ecx
xor ecx, ecx
test edx, edx
mov dword [ebp - 0x28], 0
setne cl
xor edx, edx
inc ecx
add eax, ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
mov eax, dword [edi + 0xc]
div ecx
test edx, edx
mov edx, dword [ebp - 0x28]
setne dl
inc eax
add edx, eax
cmp dword [ebx + 0x44], 0
mov dword [ebp - 0x28], edx
ja 0x10037e52
cmp byte [ebx + 0x2d], 0
je 0x10037e52
xor edi, edi
mov dword [ebp - 0x20], ecx
xor eax, eax
mov dword [ebp - 0x14], eax
jmp 0x10037ea0
mov eax, dword [edi + 8]
lea eax, [eax + ecx*2]
cmp eax, dword [ebx + 0x24]
ja 0x10038157
mov ecx, dword [ebx + 0x60]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x24]
call fcn.10037610
mov ecx, dword [ebx + 0x34]
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x34], eax
inc edx
inc eax
imul edx, ecx
imul eax, ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 0xc]
add eax, ecx
add eax, edx
cmp eax, dword [ebx + 0x28]
ja 0x10038157
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x34]
mov ecx, dword [ebx + 0x60]
add eax, edx
push eax
push dword [ebp - 0x24]
push edi
call fcn.100378f0
mov ecx, dword [ebx + 0x34]
mov eax, ecx
mov edi, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x28]
dec edi
shr eax, 0x1f
dec ebx
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
imul edi, ecx
addsd xmm0, qword [eax*8 + 0x1010f9a0]
imul ebx, ecx
mov ecx, dword [ebp - 0x30]
cvtpd2ps xmm5, xmm0
mov eax, dword [ecx + 0x24]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
mulss xmm5, dword [0x1010f97c]
addsd xmm0, qword [eax*8 + 0x1010f9a0]
mov eax, dword [ecx + 0x28]
cvtpd2ps xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1010f9a0]
mov eax, dword [ebp - 0x2c]
movss xmm3, dword [eax]
movss xmm4, dword [eax + 4]
mov eax, dword [ecx + 0x44]
mov edx, eax
cvtpd2ps xmm2, xmm0
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ecx + 0x3c]
shl edx, 5
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1010f9a0]
mov eax, dword [ebp - 0x20]
cvtpd2ps xmm0, xmm0
subss xmm0, xmm5
divss xmm0, xmm1
movss dword [ecx + edx], xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1010f9a0]
mov eax, dword [ebp - 0x1c]
add eax, edi
cvtpd2ps xmm0, xmm0
subss xmm0, xmm5
divss xmm0, xmm2
movss dword [ecx + edx + 4], xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1010f9a0]
mov eax, dword [ebp - 0x20]
add eax, ebx
cvtpd2ps xmm0, xmm0
addss xmm0, xmm5
divss xmm0, xmm1
movss dword [ecx + edx + 8], xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1010f9a0]
cvtpd2ps xmm0, xmm0
addss xmm0, xmm5
divss xmm0, xmm2
movss dword [ecx + edx + 0xc], xmm0
movaps xmm0, xmm3
subss xmm0, xmm5
movss dword [ecx + edx + 0x10], xmm0
movaps xmm0, xmm4
subss xmm0, xmm5
movss dword [ecx + edx + 0x14], xmm0
movd xmm0, edi
cvtdq2pd xmm0, xmm0
shr edi, 0x1f
addsd xmm0, qword [edi*8 + 0x1010f9a0]
mov edi, dword [ebp - 0x2c]
cvtpd2ps xmm0, xmm0
addss xmm0, xmm3
addss xmm0, xmm5
movss dword [ecx + edx + 0x18], xmm0
movd xmm0, ebx
cvtdq2pd xmm0, xmm0
shr ebx, 0x1f
addsd xmm0, qword [ebx*8 + 0x1010f9a0]
cvtpd2ps xmm0, xmm0
addss xmm0, xmm4
addss xmm0, xmm5
movss dword [ecx + edx + 0x1c], xmm0
xor ecx, ecx
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x24], ecx
cmp dword [edi + 0xc], ecx
jbe 0x100380a6
mov eax, dword [edx + 0x28]
mov ebx, dword [ebp - 0x20]
sub eax, ebx
cmp ecx, eax
jae 0x100380a3
add ebx, ecx
xor ecx, ecx
imul ebx, dword [edx + 0x24]
add ebx, dword [edx + 0x38]
add ebx, dword [ebp - 0x1c]
cmp dword [edi + 8], ecx
jbe 0x10038091
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp - 0x2c]
mov eax, dword [edx + 0x24]
sub eax, dword [ebp - 0x1c]
cmp ecx, eax
jae 0x1003808f
mov al, byte [edi]
add edi, dword [ebp + 0x18]
mov byte [ecx + ebx], al
inc ecx
cmp ecx, dword [esi + 8]
jb 0x10038077
mov edi, esi
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp + 0x14]
inc ecx
add dword [ebp + 0x10], eax
mov dword [ebp - 0x24], ecx
cmp ecx, dword [edi + 0xc]
jb 0x10038052
mov esi, dword [ebp - 0x18]
cmp dword [edx + 0x64], 0
mov ecx, dword [ebp - 0x1c]
jne 0x100380e0
mov eax, ecx
sub eax, dword [edx + 0x34]
mov dword [edx + 0x68], eax
mov eax, dword [ebp - 0x20]
sub eax, dword [edx + 0x34]
mov dword [edx + 0x6c], eax
mov eax, dword [edi + 8]
add eax, dword [edx + 0x34]
add ecx, eax
cmp dword [edx + 0x24], ecx
cmovb ecx, dword [edx + 0x24]
mov dword [edx + 0x70], ecx
mov ecx, dword [edi + 0xc]
lea edi, [edx + 0x74]
add ecx, dword [edx + 0x34]
add ecx, dword [ebp - 0x20]
jmp 0x1003813a
sub ecx, dword [edx + 0x34]
lea ebx, [edx + 0x70]
mov eax, dword [edx + 0x68]
cmp ecx, eax
cmovb eax, ecx
mov ecx, dword [ebp - 0x20]
sub ecx, dword [edx + 0x34]
mov dword [edx + 0x68], eax
mov eax, dword [edx + 0x6c]
cmp ecx, eax
cmovb eax, ecx
lea ecx, [ebp - 0x3c]
mov dword [edx + 0x6c], eax
mov eax, dword [edi + 8]
add eax, dword [edx + 0x34]
add eax, dword [ebp - 0x1c]
cmp dword [ebx], eax
mov dword [ebp - 0x3c], eax
cmovae ecx, ebx
mov ecx, dword [ecx]
cmp dword [edx + 0x24], ecx
cmovb ecx, dword [edx + 0x24]
mov dword [ebx], ecx
lea ecx, [ebp - 0x40]
mov eax, dword [edi + 0xc]
lea edi, [edx + 0x74]
add eax, dword [edx + 0x34]
add eax, dword [ebp - 0x20]
cmp dword [edi], eax
mov dword [ebp - 0x40], eax
cmovae ecx, edi
mov ecx, dword [ecx]
cmp dword [edx + 0x28], ecx
cmovb ecx, dword [edx + 0x28]
mov dword [edi], ecx
nop
xor ecx, ecx
lea eax, [ebp - 0x18]
lock or dword [eax], ecx
inc dword [edx + 0x44]
inc dword [edx + 0x64]
mov edi, dword [ebp - 0x34]
jmp 0x1003815a
or edi, 0xffffffff
mov dword [ebp - 4], 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
jmp 0x1003816f
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100b18d1
mov esp, ebp
pop ebp
ret 0x14