Function at 0x4910f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x510540
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x65d4c0]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov esi, ecx
mov edi, edx
mov eax, dword [edi + 0xc]
sub eax, 0x10
push eax
call fcn.004018e0
add eax, 0x10
add esp, 4
mov dword [esp + 0x2c], eax
xor ebx, ebx
push 0x20
lea ecx, [esp + 0x30]
mov dword [esp + 0x84], ebx
call fcn.00489830
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x38]
push ecx
push 1
lea edx, [esp + 0x38]
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 8]
push edx
push eax
push edi
mov byte [esp + 0x94], 1
call fcn.00490e60
add esp, 0x14
test eax, eax
jne 0x4911ef
mov eax, dword [esp + 0x38]
mov byte [esp + 0x80], bl
cmp eax, ebx
je 0x4911af
mov ecx, dword [eax - 4]
lea esi, [eax - 4]
push fcn.0047a8b0
push ecx
push 0x10
push eax
call fcn.004cec6d
push esi
call fcn.004ae2c3
add esp, 4
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov dword [esp + 0x80], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4911da
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x30]
cmp word [ecx], 0x3d
je 0x491246
mov eax, dword [esp + 0x38]
mov byte [esp + 0x80], bl
cmp eax, ebx
je 0x491225
mov edx, dword [eax - 4]
lea esi, [eax - 4]
push fcn.0047a8b0
push edx
push 0x10
push eax
call fcn.004cec6d
push esi
call fcn.004ae2c3
add esp, 4
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov dword [esp + 0x80], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x4911ce
mov eax, dword [ebp + 8]
add dword [esp + 0x30], 2
lea ecx, [esp + 0x38]
push ecx
push 0xffffffffffffffff
lea edx, [esp + 0x38]
push edx
push eax
push edi
call fcn.00490e60
add esp, 0x14
test eax, eax
je 0x491183
fld qword [edi + 0x38]
add edi, 0x38
mov dword [esp + 0x34], edi
call fcn.004ced60
push eax
lea edi, [esp + 0x3c]
call fcn.004910a0
mov ecx, dword [ebp + 0xc]
add esp, 4
cmp ecx, ebx
je 0x491291
mov dword [ecx], eax
mov ecx, dword [esp + 0x34]
fld qword [ecx]
sub esp, 8
lea ebx, [esp + 0x40]
fstp qword [esp]
mov eax, esi
call fcn.0048abf0
mov eax, dword [esi + 8]
xor ebx, ebx
add esp, 8
cmp eax, ebx
ja 0x4912e2
lea ecx, [esp + 0x38]
mov byte [esp + 0x80], bl
call fcn.00489a70
lea ecx, [esp + 0x2c]
call fcn.004051e0
xor eax, eax
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esi]
mov ecx, eax
mov edi, eax
shl edi, 4
mov edi, dword [edi + edx - 8]
cmp ecx, 1
jbe 0x491315
cmp edi, ebx
jge 0x491324
xor ecx, ecx
cmp eax, ebx
jbe 0x491324
xor edx, edx
mov eax, dword [esi]
sub dword [edx + eax + 8], edi
lea eax, [edx + eax + 8]
inc ecx
add edx, 0x10
cmp ecx, dword [esi + 8]
jb 0x491300
jmp 0x491324
cmp edi, ebx
jge 0x491324
shl eax, 4
sub dword [eax + edx - 8], edi
lea eax, [eax + edx - 8]
fldz
mov ecx, dword [esi]
fcomp qword [ecx]
fnstsw ax
test ah, 0x41
jne 0x491356
xor ecx, ecx
cmp dword [esi + 8], ebx
jbe 0x491356
fld qword [0x61fa30]
xor edx, edx
mov eax, dword [esi]
fld qword [eax + edx]
add eax, edx
fmul st(1)
inc ecx
add edx, 0x10
fstp qword [eax]
cmp ecx, dword [esi + 8]
jb 0x491340
fstp st(0)
mov eax, dword [esp + 0x38]
mov byte [esp + 0x80], bl
cmp eax, ebx
je 0x491382
mov ecx, dword [eax - 4]
lea esi, [eax - 4]
push fcn.0047a8b0
push ecx
push 0x10
push eax
call fcn.004cec6d
push esi
call fcn.004ae2c3
add esp, 4
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov dword [esp + 0x80], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4913ad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret