Function at 0x10030140
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10041c18
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x1005200c]
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 ecx, dword [0x1006c4b4]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
call eax
mov ecx, dword [0x1006c4c0]
push eax
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
mov ecx, 0x1004ac54
mov dword [ebp - 0x20], eax
sub ecx, 0xe57d1c5
push ecx
lea ecx, [ebp - 0x1c]
call fcn.10033d80
push eax
mov dword [ebp - 4], 0
mov ecx, dword [0x1006c4ac]
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
mov dword [ebp - 4], 0xffffffff
xorps xmm0, xmm0
mov eax, dword [0x1006c418]
mov ecx, dword [0x1006c414]
mov edi, dword [0x10febcf8]
cdq
sub eax, edx
movq qword [ebp - 0x1c], xmm0
mov ebx, eax
mov word [ebp - 0x14], 0
mov eax, ecx
sar ebx, 1
cdq
sub eax, edx
mov dword [ebp - 0x28], ebx
mov esi, eax
sar esi, 1
cmp byte [0x10febcfc], 0
mov dword [ebp - 0x24], esi
je 0x10030272
cmp edi, 4
je 0x10030272
mov eax, 0xb60b60b7
movd xmm1, ebx
imul ecx
cvtdq2ps xmm1, xmm1
mov eax, dword [ebp - 0x20]
add edx, ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [eax + 0xbb4]
mov eax, 0xb60b60b7
imul dword [0x1006c418]
subss xmm1, xmm0
movd xmm0, esi
cvtdq2ps xmm0, xmm0
add edx, dword [0x1006c418]
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cvttss2si ebx, xmm1
movd xmm1, eax
mov eax, dword [ebp - 0x20]
cvtdq2ps xmm1, xmm1
mov dword [ebp - 0x28], ebx
mulss xmm1, dword [eax + 0xbb0]
addss xmm1, xmm0
cvttss2si esi, xmm1
mov dword [ebp - 0x24], esi
cmp edi, 1
jne 0x1003038c
mov ecx, dword [0x1006c41c]
lea edi, [esi - 1]
mov dword [ebp - 0x20], 0xff000000
lea esi, [ebx - 5]
push dword [ebp - 0x20]
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
call eax
mov ecx, dword [0x1006c41c]
lea eax, [edi + 3]
push eax
lea eax, [esi + 0xb]
push eax
mov edx, dword [ecx]
push edi
push esi
mov eax, dword [edx + 0x30]
call eax
mov ecx, dword [0x1006c41c]
lea esi, [ebx - 1]
mov edi, dword [ebp - 0x24]
mov dword [ebp - 0x20], 0xff000000
add edi, 0xfffffffb
push dword [ebp - 0x20]
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
call eax
mov ecx, dword [0x1006c41c]
lea eax, [edi + 0xb]
push eax
lea eax, [esi + 3]
push eax
mov edx, dword [ecx]
push edi
push esi
mov eax, dword [edx + 0x30]
call eax
cvttss2si eax, dword [0x10febccc]
mov ecx, dword [0x1006c41c]
lea esi, [ebx - 4]
mov byte [ebp - 0x1d], 0xff
mov byte [ebp - 0x20], al
cvttss2si eax, dword [0x10febcd0]
mov byte [ebp - 0x1f], al
cvttss2si eax, dword [0x10febcd4]
mov byte [ebp - 0x1e], al
mov eax, dword [ecx]
push dword [ebp - 0x20]
mov eax, dword [eax + 0x28]
call eax
mov edi, dword [ebp - 0x24]
mov ecx, dword [0x1006c41c]
lea eax, [edi + 1]
mov edx, dword [ecx]
push eax
lea eax, [esi + 9]
push eax
mov eax, dword [edx + 0x30]
push edi
push esi
call eax
cvttss2si eax, dword [0x10febccc]
mov ecx, dword [0x1006c41c]
lea esi, [edi - 4]
mov byte [ebp - 0x1d], 0xff
mov byte [ebp - 0x20], al
cvttss2si eax, dword [0x10febcd0]
mov byte [ebp - 0x1f], al
cvttss2si eax, dword [0x10febcd4]
mov byte [ebp - 0x1e], al
mov eax, dword [ecx]
push dword [ebp - 0x20]
mov eax, dword [eax + 0x28]
call eax
mov ecx, dword [0x1006c41c]
lea eax, [esi + 9]
push eax
lea eax, [ebx + 1]
push eax
mov edx, dword [ecx]
push esi
mov eax, dword [edx + 0x30]
push ebx
call eax
jmp 0x1003077f
cmp edi, 2
jne 0x10030420
cvttss2si eax, dword [0x10febccc]
mov ecx, dword [0x1006c41c]
add ebx, 0xfffffffe
mov byte [ebp - 0x1d], 0xff
mov byte [ebp - 0x20], al
cvttss2si eax, dword [0x10febcd0]
mov byte [ebp - 0x1f], al
cvttss2si eax, dword [0x10febcd4]
mov byte [ebp - 0x1e], al
mov eax, dword [ecx]
push dword [ebp - 0x20]
mov eax, dword [eax + 0x28]
call eax
mov ecx, dword [0x1006c41c]
lea edi, [ebx + 5]
mov edx, dword [ebp - 0x24]
add esi, 3
push esi
push edi
mov eax, dword [ecx]
add edx, 0xfffffffe
push edx
push ebx
mov eax, dword [eax + 0x30]
call eax
mov ecx, dword [0x1006c41c]
mov dword [ebp - 0x20], 0xff000000
push dword [ebp - 0x20]
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
call eax
mov ecx, dword [0x1006c41c]
lea edi, [ebx + 5]
mov edx, dword [ebp - 0x24]
push esi
push edi
mov eax, dword [ecx]
add edx, 0xfffffffe
push edx
push ebx
mov eax, dword [eax + 0x38]
call eax
jmp 0x1003077f
cmp edi, 3
jne 0x10030576
cvttss2si eax, dword [0x10febccc]
mov ecx, dword [0x1006c41c]
lea edi, [esi - 6]
mov byte [ebp - 0x1d], 0xff
add ebx, 0xfffffffa
mov byte [ebp - 0x20], al
cvttss2si eax, dword [0x10febcd0]
mov byte [ebp - 0x1f], al
cvttss2si eax, dword [0x10febcd4]
mov byte [ebp - 0x1e], al
mov eax, dword [ecx]
push dword [ebp - 0x20]
mov eax, dword [eax + 0x28]
call eax
mov ecx, dword [0x1006c41c]
lea eax, [edi + 1]
push eax
lea eax, [ebx + 0xc]
push eax
mov edx, dword [ecx]
push edi
push ebx
mov eax, dword [edx + 0x30]
call eax
cvttss2si eax, dword [0x10febccc]
mov ecx, dword [0x1006c41c]
add esi, 6
mov byte [ebp - 0x1d], 0xff
mov byte [ebp - 0x20], al
cvttss2si eax, dword [0x10febcd0]
mov byte [ebp - 0x1f], al
cvttss2si eax, dword [0x10febcd4]
mov byte [ebp - 0x1e], al
mov eax, dword [ecx]
push dword [ebp - 0x20]
mov eax, dword [eax + 0x28]
call eax
mov ecx, dword [0x1006c41c]
lea eax, [esi + 1]
push eax
lea eax, [ebx + 0xd]
push eax
mov edx, dword [ecx]
push esi
push ebx
mov eax, dword [edx + 0x30]
call eax
cvttss2si eax, dword [0x10febccc]
mov ecx, dword [0x1006c41c]
mov byte [ebp - 0x1d], 0xff
mov byte [ebp - 0x20], al
cvttss2si eax, dword [0x10febcd0]
mov byte [ebp - 0x1f], al
cvttss2si eax, dword [0x10febcd4]
mov byte [ebp - 0x1e], al
mov eax, dword [ecx]
push dword [ebp - 0x20]
mov eax, dword [eax + 0x28]
call eax
mov ecx, dword [0x1006c41c]
lea eax, [ebx + 1]
add edi, 0xc
push edi
push eax
mov edx, dword [ecx]
mov eax, dword [ebp - 0x24]
add eax, 0xfffffffa
push eax
mov eax, dword [edx + 0x30]
push ebx
call eax
cvttss2si eax, dword [0x10febccc]
mov esi, dword [ebp - 0x28]
mov ecx, dword [0x1006c41c]
add esi, 6
mov byte [ebp - 0x1d], 0xff
mov byte [ebp - 0x20], al
cvttss2si eax, dword [0x10febcd0]
mov byte [ebp - 0x1f], al
cvttss2si eax, dword [0x10febcd4]
mov byte [ebp - 0x1e], al
mov eax, dword [ecx]
push dword [ebp - 0x20]
mov eax, dword [eax + 0x28]
call eax
mov ecx, dword [0x1006c41c]
lea eax, [esi + 1]
push edi
push eax
mov eax, dword [ebp - 0x24]
mov edx, dword [ecx]
add eax, 0xfffffffa
push eax
push esi
mov eax, dword [edx + 0x30]
call eax
jmp 0x1003077f
cmp edi, 4
jne 0x10030669
cvttss2si eax, dword [0x10febccc]
mov ecx, dword [0x1006c41c]
mov byte [ebp - 0x1d], 0xff
mov byte [ebp - 0x20], al
cvttss2si eax, dword [0x10febcd0]
mov byte [ebp - 0x1f], al
cvttss2si eax, dword [0x10febcd4]
mov byte [ebp - 0x1e], al
mov eax, dword [ecx]
push dword [ebp - 0x20]
mov eax, dword [eax + 0x28]
call eax
mov ecx, dword [0x1006c41c]
lea eax, [ebx - 5]
push esi
push eax
push esi
mov edx, dword [ecx]
lea eax, [ebx - 0xa]
push eax
mov eax, dword [edx + 0x3c]
call eax
mov ecx, dword [0x1006c41c]
lea eax, [esi - 5]
push eax
push ebx
lea eax, [esi - 0xa]
mov edx, dword [ecx]
push eax
push ebx
mov eax, dword [edx + 0x3c]
call eax
mov ecx, dword [0x1006c41c]
lea eax, [ebx + 5]
push esi
push eax
push esi
mov edx, dword [ecx]
lea eax, [ebx + 0xa]
push eax
mov eax, dword [edx + 0x3c]
call eax
mov ecx, dword [0x1006c41c]
lea eax, [esi + 5]
push eax
push ebx
lea eax, [esi + 0xa]
mov edx, dword [ecx]
push eax
push ebx
mov eax, dword [edx + 0x3c]
call eax
mov dword [ebp - 0x20], 0xffffffff
lea eax, [esi - 7]
push dword [ebp - 0x20]
push 0xa
push 1
push eax
push ebx
call fcn.10020980
mov dword [ebp - 0x20], 0xffffffff
lea eax, [ebx - 7]
push dword [ebp - 0x20]
push 1
push 0xf
push esi
push eax
call fcn.10020980
mov dword [ebp - 0x20], 0xffffffff
push dword [ebp - 0x20]
push 8
push 1
push esi
push ebx
call fcn.10020980
mov dword [ebp - 0x20], 0xffffffff
push dword [ebp - 0x20]
push 1
push 7
push esi
jmp 0x10030779
cmp edi, 5
jne 0x1003077f
cvttss2si eax, dword [0x10febccc]
mov ecx, dword [0x1006c41c]
mov byte [ebp - 0x1d], 0xff
mov byte [ebp - 0x20], al
cvttss2si eax, dword [0x10febcd0]
mov byte [ebp - 0x1f], al
cvttss2si eax, dword [0x10febcd4]
mov byte [ebp - 0x1e], al
mov eax, dword [ecx]
push dword [ebp - 0x20]
mov eax, dword [eax + 0x28]
call eax
cvttss2si eax, dword [0x10febccc]
mov byte [ebp - 0x1d], 0xff
mov byte [ebp - 0x20], al
cvttss2si eax, dword [0x10febcd0]
mov byte [ebp - 0x1f], al
cvttss2si eax, dword [0x10febcd4]
mov byte [ebp - 0x1e], al
lea eax, [ebx - 0xa]
push dword [ebp - 0x20]
push 1
push 7
push esi
push eax
call fcn.10020980
cvttss2si eax, dword [0x10febccc]
mov byte [ebp - 0x1d], 0xff
mov byte [ebp - 0x20], al
cvttss2si eax, dword [0x10febcd0]
mov byte [ebp - 0x1f], al
cvttss2si eax, dword [0x10febcd4]
mov byte [ebp - 0x1e], al
lea eax, [esi - 0xa]
push dword [ebp - 0x20]
push 7
push 1
push eax
push ebx
call fcn.10020980
cvttss2si eax, dword [0x10febccc]
mov byte [ebp - 0x1d], 0xff
mov byte [ebp - 0x20], al
cvttss2si eax, dword [0x10febcd0]
mov byte [ebp - 0x1f], al
cvttss2si eax, dword [0x10febcd4]
mov byte [ebp - 0x1e], al
lea eax, [ebx + 5]
push dword [ebp - 0x20]
push 1
push 7
push esi
push eax
call fcn.10020980
cvttss2si eax, dword [0x10febccc]
mov byte [ebp - 0x1d], 0xff
mov byte [ebp - 0x20], al
cvttss2si eax, dword [0x10febcd0]
mov byte [ebp - 0x1f], al
cvttss2si eax, dword [0x10febcd4]
mov byte [ebp - 0x1e], al
lea eax, [esi + 5]
push dword [ebp - 0x20]
push 7
push 1
push eax
push ebx
call fcn.10020980
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.1003da32
mov esp, ebp
pop ebp
ret