Function at 0x10031870
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009f8b0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x100bc008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
mov dword [edi + 0x1fd0], ebx
mov eax, dword [ebx + 8]
mov dword [edi + 0x1fd4], eax
mov eax, dword [ebx + 0xc]
mov dword [edi + 0x1fe0], eax
mov eax, dword [ebx + 0x10]
mov dword [edi + 0x1fe4], eax
mov eax, dword [ebx + 0x14]
mov dword [edi + 0x1fe8], eax
mov eax, dword [ebx + 0x30]
mov dword [edi + 0x1fd8], eax
mov ecx, dword [0x10153cf4]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
call eax
mov ecx, dword [0x10153cf8]
push eax
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
call edx
mov dword [edi], eax
test eax, eax
je 0x10031aae
mov ecx, dword [0x10153f98]
add ecx, 0xffffffc7
xor ecx, 0xccb3e6fd
mov eax, dword [ecx + eax]
and eax, 1
add eax, 0xf
mov dword [edi + 0x1f9c], eax
mov eax, dword [0x10153d64]
mov eax, dword [eax + 0x4cb0]
mov dword [edi + 0x1fa0], eax
mov ecx, dword [0x10153dc8]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x14], eax
call dword [ebp - 0x14]
mov ecx, dword [0x10153dcc]
fstp dword [ebp - 0x10]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x14], eax
call dword [ebp - 0x14]
fdivr dword [ebp - 0x10]
mov ecx, dword [0x10153dc4]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x10], eax
fstp dword [ebp - 0x14]
call dword [ebp - 0x10]
movss xmm1, dword [ebp - 0x14]
fstp dword [ebp - 0x10]
movss xmm0, dword [ebp - 0x10]
comiss xmm1, xmm0
ja 0x10031978
movss xmm0, xmm0
jmp 0x1003197c
movss xmm0, xmm1
lea esi, [edi + 0x1fb8]
push 0
movss dword [edi + 0x1fb4], xmm0
mov ecx, dword [0x10153d5c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x10], eax
call dword [ebp - 0x10]
fstp dword [esi]
movss xmm0, dword [esi]
lea eax, [ebp - 0x10]
comiss xmm0, dword [0x100b0fc8]
mov dword [ebp - 0x10], 0x3f800000
cmovbe eax, esi
movss xmm0, dword [eax]
maxss xmm0, dword [0x100b0ecc]
movss dword [esi], xmm0
mov eax, dword [0x10153d50]
divss xmm0, dword [eax + 0x20]
addss xmm0, dword [0x100b0f94]
cvttss2si ecx, xmm0
mov dword [edi + 0x1fbc], ecx
mov eax, dword [0x10153d64]
mov eax, dword [eax + 0x16c]
mov dword [edi + 0x1fc0], eax
add eax, ecx
test dword [edi + 0x1fd8], 0x79a
mov ecx, dword [edi]
mov dword [edi + 0x1fc4], eax
setne al
mov byte [edi + 0x1f6c], al
mov eax, dword [0x10153fdc]
add eax, 0xffffffb6
xor eax, 0xccb3e70e
mov eax, dword [eax + ecx]
mov dword [edi + 0x1f90], eax
test ecx, ecx
je 0x10031aaa
mov eax, dword [0x10153f8c]
add eax, 0xffffffca
xor eax, 0xccb3e6fa
cmp dword [eax + ecx], 0
jne 0x10031aaa
push ebx
mov byte [edi + 4], 1
call fcn.10033490
mov esi, dword [0x10153d64]
mov ebx, dword [esi + 0x174]
test ebx, ebx
jle 0x10031a7b
mov eax, dword [esi + 0x4cb0]
mov ecx, dword [0x10153d0c]
add eax, dword [esi + 0x4cac]
push eax
push dword [esi + 0x4cb4]
mov edx, dword [ecx]
push 1
push ebx
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [0x10153f98]
mov eax, dword [edi]
add ecx, 0xffffffc7
xor ecx, 0xccb3e6fd
mov eax, dword [ecx + eax]
mov dword [edi + 8], eax
mov byte [edi + 0x28], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov byte [edi + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4