Function at 0x40b4a0
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag

Disassembly:
push 0xffffffffffffffff
push 0x615a7e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
xor ebx, ebx
push esi
mov esi, ecx
push edi
or edi, 0xffffffff
mov dword [esp + 0x24], esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], 0x7fffffff
lea ecx, [esi + 0x30]
mov dword [esp + 0x30], ebx
mov dword [esi], 0x628718
call fcn.0044bac0
cmp byte [esp + 0x4c], bl
mov dword [esi + 0x48], ebx
mov dword [esi + 0x64], edi
lea edi, [esi + 0x70]
mov dword [esi + 0x68], ebx
sete al
mov byte [esi + 0x6c], al
mov byte [esi + 0x6d], bl
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 0xc], ebx
mov ebp, dword [esp + 0x38]
mov ecx, dword [ebp]
mov ecx, dword [ecx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
mov byte [esp + 0x30], 2
call eax
mov ecx, dword [ebp]
mov ecx, dword [ecx]
mov edx, dword [ecx]
mov dword [esp + 0x1c], eax
mov eax, dword [edx + 8]
call eax
cmp edi, ebp
mov dword [esp + 0x18], eax
je 0x40b597
mov ecx, dword [ebp]
mov eax, dword [ebp + 4]
mov edx, dword [edi + 0xc]
sub edx, dword [edi]
sub eax, ecx
mov dword [esp + 0x10], eax
sar eax, 2
mov dword [esp + 0x14], ecx
lea ecx, [eax*4]
cmp ecx, edx
mov dword [esp + 0x38], ecx
jbe 0x40b579
push eax
mov ecx, edi
call fcn.005ee260
mov ecx, dword [esp + 0x38]
mov eax, dword [edi]
mov edx, dword [esp + 0x14]
add ecx, eax
mov dword [edi + 4], ecx
mov ecx, dword [esp + 0x10]
push ecx
push edx
push eax
call fcn.005f7b00
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edi, dword [esp + 0x1c]
push eax
push edi
push eax
mov ecx, esi
call fcn.00407f60
push eax
call fcn.005f7b00
mov eax, dword [esp + 0x48]
add esp, 0xc
cmp eax, ebx
jne 0x40b5dc
mov eax, dword [ebp]
cmp eax, dword [ebp + 4]
je 0x40b5f4
mov ecx, dword [eax]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
push ebx
push ebx
call edx
push edx
push eax
push ebx
push ebx
lea eax, [esp + 0x64]
push eax
lea ecx, [esi + 0x30]
call fcn.0044bcf0
jmp 0x40b5f4
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x40]
push ecx
push edx
push eax
lea eax, [esi + 0x30]
push ebp
push eax
call fcn.0040b310
add esp, 0x14
cmp dword [esp + 0x48], ebx
jl 0x40b648
jg 0x40b602
cmp dword [esp + 0x44], ebx
jbe 0x40b648
fild qword [esp + 0x44]
mov eax, dword [ebp]
mov ecx, dword [eax]
mov edx, dword [ecx]
fmul qword [0x628510]
mov edx, dword [edx + 0x14]
lea eax, [esp + 0x44]
push eax
fstp qword [esp + 0x20]
call edx
lea ecx, [esp + 0x44]
call fcn.0051dc1d
fmul qword [esp + 0x1c]
sub esp, 8
fstp qword [esp]
call fcn.00519e5d
add esp, 8
push edx
push eax
push ebx
push ebx
lea ecx, [esi + 0x30]
call fcn.0044bd80
lea ecx, [esi + 0x30]
call fcn.0044b8a0
mov dword [esi + 0x24], edx
mov dword [esi + 0x20], eax
mov dword [esi + 0x28], eax
mov ecx, edx
mov edx, dword [esi + 0x34]
mov dword [esi + 0x2c], ecx
mov eax, dword [edx]
mov dword [esi + 0x48], eax
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
movzx ecx, word [edi + 0xc]
mov eax, 0x200
cdq
idiv ecx
mov ecx, dword [esp + 0x28]
pop edi
mov dword [esi + 0x60], eax
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 0x18