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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4fd219
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0x1c], esi
xor ebx, ebx
mov dword [esp + 0x38], ebx
call fcn.0046b880
mov ecx, dword [ebp + 0x10]
mov dword [esi], 0x5075e8
mov dword [esi + 0x110], ebx
mov dword [esi + 0x114], ebx
lea edx, [ecx + 0x24]
mov dword [esi + 0x10c], ebx
mov dword [esi + 0xa8], ecx
lea eax, [esi + 0xa0]
mov edi, dword [edx]
mov byte [esp + 0x38], 2
mov dword [eax], edi
mov dx, word [edx + 4]
mov word [eax + 4], dx
mov edi, dword [0xceced8]
movsx eax, word [ebp + 8]
movsx edx, word [ebp + 0xa]
mov dword [esp + 0xc], eax
sub eax, edx
add eax, edi
mov dword [esp + 0x10], edx
lea edi, [eax + eax*4]
lea eax, [eax + edi*2]
mov edi, dword [0x56c7dc]
shl eax, 1
sub eax, edi
movsx edi, word [ebp + 0xc]
mov dword [esi + 0x30], eax
mov eax, dword [esp + 0xc]
add eax, edx
mov dword [esp + 0x14], edi
lea edx, [eax + eax*4]
lea eax, [eax + edx*2]
lea edx, [edi*4]
shl eax, 1
sub eax, edx
mov edx, dword [0x56c7d8]
sub eax, edx
add eax, 0x2b
mov dword [esi + 0x34], eax
fild dword [esi + 0x30]
fstp qword [esi + 0xc8]
fild dword [esi + 0x34]
fstp qword [esi + 0xd0]
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 8]
add eax, edx
sar eax, 1
mov dword [esi + 0xb0], eax
mov edx, dword [0x56c7dc]
sub eax, edx
mov dword [esi + 0xb0], eax
mov eax, dword [ecx + 0x14]
add eax, dword [ecx + 0xc]
sar eax, 1
mov dword [esi + 0xb4], eax
mov ecx, dword [0x56c7d8]
sub eax, ecx
mov dword [esi + 0xb4], eax
mov eax, dword [esi + 0xb0]
sub eax, dword [esi + 0x30]
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fstp qword [esi + 0xb8]
mov ecx, dword [esi + 0xb4]
mov edx, dword [esi + 0x34]
sub ecx, edx
mov dword [esp + 0x18], ecx
fild dword [esp + 0x18]
mov dl, byte [ebp + 0x1c]
fst qword [esi + 0xc0]
cmp dl, bl
je 0x4669c4
fstp st(0)
mov byte [esi + 0xd8], bl
jmp 0x4669e3
fld qword [esi + 0xb8]
fpatan
push ecx
fstp dword [esp]
call fcn.0040adb0
mov dl, byte [ebp + 0x1c]
add esp, 4
add al, 0x80
mov byte [esi + 0xd8], al
mov al, byte [ebp + 0x18]
mov edi, dword [ebp + 0x14]
add al, 3
mov ecx, edi
shl al, 1
and ecx, 0xffff
mov byte [esi + 0xdc], al
mov byte [esi + 0xd9], bl
mov byte [esi + 0xdb], bl
lea eax, [ecx + ecx*8]
mov byte [esi + 0xda], 1
shl eax, 3
cmp byte [eax + 0x8d3d69], bl
je 0x466a53
mov dword [esi + 0x100], 1
mov cl, byte [eax + 0x8d3d6b]
mov byte [esi + 0xda], cl
mov word [esi + 0xde], di
mov word [esi + 0xe0], bx
movsx ax, byte [eax + 0x8d3d28]
add eax, edi
mov word [esi + 0xe2], ax
jmp 0x466a8d
cmp dl, bl
mov dword [esi + 0x100], ebx
mov word [esi + 0xde], di
mov word [esi + 0xe2], di
je 0x466a74
mov word [esi + 0xe0], di
jmp 0x466a8d
mov eax, dword [0xcf3f10]
lea ecx, [ecx + ecx*4]
movzx cx, byte [eax + ecx*8 + 5]
lea eax, [ecx + edi - 1]
mov word [esi + 0xe0], ax
mov al, byte [ebp + 0x20]
xor ecx, ecx
cmp al, bl
push 0x70
setne cl
xor eax, eax
cmp dl, bl
sete al
mov dword [esi + 0x104], ebx
mov dword [esi + 0xfc], ebx
mov dword [esi + 0xf8], ebx
mov dword [esi + 0xf4], ebx
mov dword [esi + 0xf0], ebx
mov dword [esi + 0xe4], ebx
mov dword [esi + 0xe8], ecx
mov dword [esi + 0xec], eax
mov dword [esi + 0x108], ebx
mov dword [esi + 8], str.missile_gump
mov dword [esi + 0x64], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x44], ebx
call fcn.004ed8ee
mov edi, eax
add esp, 4
mov dword [esp + 0x18], edi
cmp edi, ebx
mov byte [esp + 0x38], 3
je 0x466b68
mov ebx, dword [ebp + 8]
mov cx, word [ebp + 0xc]
mov dword [esp + 0x24], ebx
mov word [esp + 0x28], cx
mov ecx, edi
mov byte [esp + 0x38], 4
call fcn.00402d30
fild dword [esp + 0xc]
mov dx, word [ebp + 0xa]
mov ax, word [ebp + 0xc]
mov dword [edi], 0x507588
mov word [edi + 0x24], bx
mov word [edi + 0x26], dx
mov word [edi + 0x28], ax
fstp qword [edi + 0x40]
fild dword [esp + 0x10]
mov ecx, edi
mov byte [esp + 0x38], 5
mov dword [edi + 0x3c], esi
fstp qword [edi + 0x48]
fild dword [esp + 0x14]
fstp qword [edi + 0x50]
call fcn.00403bb0
jmp 0x466b6a
xor edi, edi
movsx ecx, word [esi + 0xa0]
mov edx, dword [esp + 0xc]
mov dword [esi + 0xac], edi
sub ecx, edx
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x10]
fild dword [esp + 0x18]
fstp qword [edi + 0x58]
movsx edx, word [esi + 0xa2]
mov eax, dword [esi + 0xac]
sub edx, ecx
mov dword [esp + 0x18], edx
fild dword [esp + 0x18]
fstp qword [eax + 0x60]
movsx ecx, word [esi + 0xa4]
mov eax, dword [esp + 0x14]
mov edx, dword [esi + 0xac]
sub ecx, eax
xor eax, eax
mov dword [esp + 0x18], ecx
fild dword [esp + 0x18]
fstp qword [edx + 0x68]
fld qword [esi + 0xb8]
fld qword [esi + 0xc0]
fst qword [esp + 0x1c]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fsqrt
fstp qword [esp + 0x24]
fstp st(0)
fdiv qword [esp + 0x24]
fstp qword [esi + 0xb8]
fld qword [esp + 0x1c]
fdiv qword [esp + 0x24]
fstp qword [esi + 0xc0]
mov al, byte [esi + 0xdc]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0xac]
fild dword [esp + 0x18]
fld st(0)
fmul qword [esi + 0xb8]
fstp qword [esi + 0xb8]
fmul qword [esi + 0xc0]
fstp qword [esi + 0xc0]
mov ecx, dword [esi + 0xb0]
mov ebx, dword [esi + 0x30]
fld qword [eax + 0x58]
fmul qword [esi + 0xb8]
sub ecx, ebx
mov dword [esp + 0x18], ecx
fild dword [esp + 0x18]
fdivp st(1)
fstp qword [eax + 0x58]
mov eax, dword [esi + 0xac]
mov edx, dword [esi + 0xb0]
mov edi, dword [esi + 0x30]
fld qword [eax + 0x60]
fmul qword [esi + 0xb8]
sub edx, edi
mov dword [esp + 0x18], edx
fild dword [esp + 0x18]
fdivp st(1)
fstp qword [eax + 0x60]
mov eax, dword [esi + 0xac]
mov ecx, dword [esi + 0xb0]
fld qword [eax + 0x68]
fmul qword [esi + 0xb8]
mov edx, dword [esi + 0x30]
pop edi
sub ecx, edx
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x2c]
fild dword [esp + 0x14]
fdivp st(1)
fstp qword [eax + 0x68]
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x1c