Function at 0x10031840
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009f560
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x100bc00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
mov dword [esi + 0x1fd0], edi
mov eax, dword [edi + 8]
mov dword [esi + 0x1fd4], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0x1fe0], eax
mov eax, dword [edi + 0x10]
mov dword [esi + 0x1fe4], eax
mov eax, dword [edi + 0x14]
mov dword [esi + 0x1fe8], eax
mov eax, dword [edi + 0x30]
mov dword [esi + 0x1fd8], eax
mov ecx, dword [0x10153c2c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
call eax
mov ecx, dword [0x10153c30]
push eax
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
mov dword [esi], eax
test eax, eax
je 0x10031a6f
mov ecx, dword [0x10153ec8]
add ecx, 0xffffffc7
xor ecx, 0xc528b55b
mov eax, dword [ecx + eax]
and eax, 1
add eax, 0xf
mov dword [esi + 0x1f9c], eax
mov eax, dword [0x10153c9c]
mov eax, dword [eax + 0x4cb0]
mov dword [esi + 0x1fa0], eax
mov ecx, dword [0x10153d00]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
call eax
mov ecx, dword [0x10153d04]
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 [0x10153cfc]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
fstp dword [ebp - 0x14]
call eax
fstp dword [ebp - 0x10]
movss xmm0, dword [ebp - 0x10]
maxss xmm0, dword [ebp - 0x14]
push 0
movss dword [esi + 0x1fb4], xmm0
mov ecx, dword [0x10153c94]
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
call eax
fstp dword [ebp - 0x10]
movss xmm0, dword [ebp - 0x10]
lea ecx, [esi + 0x1fb8]
comiss xmm0, dword [0x100b0f78]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x3f800000
movss dword [ecx], xmm0
cmovbe eax, ecx
movss xmm0, dword [eax]
maxss xmm0, dword [0x100b0e74]
movss dword [ecx], xmm0
mov eax, dword [0x10153c88]
divss xmm0, dword [eax + 0x20]
addss xmm0, dword [0x100b0f44]
cvttss2si ecx, xmm0
mov dword [esi + 0x1fbc], ecx
mov eax, dword [0x10153c9c]
mov eax, dword [eax + 0x16c]
mov dword [esi + 0x1fc0], eax
add eax, ecx
test dword [esi + 0x1fd8], 0x79a
mov ecx, dword [esi]
mov dword [esi + 0x1fc4], eax
setne al
mov byte [esi + 0x1f6c], al
mov eax, dword [0x10153f0c]
add eax, 0xffffffb6
xor eax, 0xc528b56c
mov eax, dword [eax + ecx]
mov dword [esi + 0x1f90], eax
test ecx, ecx
je 0x10031a6b
mov eax, dword [0x10153ebc]
add eax, 0xffffffca
xor eax, 0xc528b558
cmp dword [eax + ecx], 0
jne 0x10031a6b
push edi
mov byte [esi + 4], 1
call fcn.10033450
mov edi, dword [0x10153c9c]
cmp dword [edi + 0x174], 0
jle 0x10031a3d
mov eax, dword [edi + 0x4cb0]
add eax, dword [edi + 0x4cac]
mov ecx, dword [0x10153c44]
push eax
push dword [edi + 0x4cb4]
mov edx, dword [ecx]
push 1
push dword [edi + 0x174]
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [0x10153ec8]
mov eax, dword [esi]
add ecx, 0xffffffc7
xor ecx, 0xc528b55b
mov eax, dword [ecx + eax]
mov dword [esi + 8], eax
mov byte [esi + 0x28], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov byte [esi + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4