Function at 0x787c90
Capabilities:
Access peb ldr_data
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x8823a3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x308
push ebx
push ebp
push esi
mov esi, ecx
lea eax, [esi + 0x44]
mov dword [esi], 0x8b5c24
push edi
mov dword [esp + 0x2c], esi
mov dword [eax], eax
mov dword [eax + 4], eax
lea eax, [esi + 0x4c]
xor ebp, ebp
mov dword [esp + 0x320], ebp
mov dword [eax], eax
mov dword [eax + 4], eax
mov edi, dword [esp + 0x328]
mov ecx, dword [esp + 0x32c]
mov dword [esi + 0x10], ebp
mov dword [esi + 0x2c], edi
mov dword [esi + 0xc], ebp
mov dword [esi + 0x1c], ebp
mov dword [esi + 0x14], ebp
mov dword [esi + 0x18], ebp
mov edx, dword [ecx]
lea eax, [esi + 0x38]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov ecx, dword [ecx + 8]
mov dword [eax + 8], ecx
lea ecx, [esp + 0x30]
mov byte [esp + 0x320], 1
call fcn.0077b9e0
mov al, byte [edi + 0x51]
test al, al
mov edx, dword [edi + 0x7c]
mov byte [esp + 0x320], 2
mov dword [esp + 0xa8], 2
mov dword [esp + 0xac], edx
je 0x787d4d
mov al, byte [0x9b3829]
test al, al
mov byte [esp + 0x81], 1
jne 0x787d55
mov byte [esp + 0x81], 0
mov cl, byte [edi + 0x53]
mov al, byte [edi + 0x52]
mov dl, byte [edi + 0x54]
mov ebx, dword [esp + 0x334]
mov byte [esp + 0x83], cl
mov ecx, edi
mov byte [esp + 0x82], al
mov byte [esp + 0x84], dl
mov dword [esi + 0x20], ebp
mov dword [esi + 0x24], ebp
mov dword [esi + 0x28], ebx
call fcn.0076fde0
cmp al, 0xff
je 0x787db2
movzx ecx, al
mov eax, 1
shl eax, cl
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
cmp dword [edi + 0x7c], 6
jne 0x787db2
cmp ebx, ebp
je 0x787db2
cmp byte [ecx + ebx], 0
je 0x787e57
mov ebx, dword [esp + 0x330]
cmp ebx, ebp
push ebp
mov dword [esp + 0x1c], 0x3f800000
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
push ebp
je 0x787de2
mov eax, dword [esp + 0x334]
push ebx
push eax
jmp 0x787def
mov edx, dword [esp + 0x334]
lea ecx, [esp + 0x20]
push ecx
push edx
lea ecx, [esp + 0x40]
call fcn.007862d0
mov ecx, dword [edi + 0x7c]
mov al, byte [esp + 0x80]
cmp ecx, 6
sete byte [esp + 0x17]
test al, al
jne 0x787e63
cmp ebx, ebp
mov eax, dword [esp + 0x32c]
fld dword [eax]
mov eax, dword [eax + 8]
fchs
mov dword [esp + 0x18], eax
fstp dword [esp + 0x1c]
je 0x787e43
fld dword [ebx]
fchs
fld dword [ebx + 8]
mov dword [esi + 0xc], 3
fstp dword [esp + 0x24]
fstp dword [esp + 0x28]
jmp 0x788003
fld dword [0x890968]
fld dword [0x890968]
fstp dword [esp + 0x24]
fstp dword [esp + 0x28]
mov dword [esi + 0xc], 3
jmp 0x788003
movsx edx, word [esp + 0xbe]
mov ecx, dword [0x9b38b4]
mov dword [esi + 0x34], edx
mov ax, dx
mov word [edi + 0x2da], ax
mov eax, dword [esp + 0xc0]
mov byte [edi + 0x2d8], 0
mov dword [edi + 0x2dc], eax
mov ebx, dword [esi + 0x34]
push ebp
mov dword [esp + 0x1c], ecx
push ebx
mov ecx, edi
call fcn.007700b0
test al, al
je 0x787eb2
mov dword [esi + 0xc], 1
jmp 0x788003
mov ecx, dword [0x9b38c0]
imul ebx, ebx, 0x16
mov eax, dword [esp + 0x330]
add ebx, ecx
cmp eax, ebp
je 0x787ee1
movsx ecx, byte [esp + 0xbc]
movzx eax, word [ebx + ecx*2]
mov ecx, dword [0x9b38bc]
shl eax, 5
add eax, ecx
jmp 0x787ee3
xor eax, eax
mov dword [esi + 0x30], eax
movsx ebx, word [edi + 0x8e]
movsx edx, byte [edi + 0x8c]
mov ecx, dword [0x9b38c0]
mov eax, ebx
imul eax, eax, 0x16
add eax, ecx
movzx edi, word [eax + edx*2]
mov edx, dword [0x9b38bc]
lea eax, [esi + 0x38]
shl edi, 5
add edi, edx
push eax
push edi
call fcn.004100a0
mov eax, dword [0x9b38ec]
push eax
fstp dword [esp + 0x30]
call fcn.00463c70
add esp, 0xc
mov ebp, eax
test ebp, ebp
je 0x787f7c
fld dword [0x890968]
mov word [ebp + 8], 0xffff
mov word [ebp + 0xa], bx
mov cx, word [edi + 0xc]
mov word [ebp + 0xc], cx
fdiv dword [0x905ce4]
fadd dword [0x8933d4]
call fcn.007c4b80
fld dword [esp + 0x24]
mov word [ebp + 0xe], ax
fdiv dword [0x905ce4]
fadd dword [0x8933d4]
call fcn.007c4b80
mov word [ebp + 0x10], ax
mov eax, ebp
jmp 0x787f7e
xor eax, eax
mov ecx, dword [esi + 0x48]
lea ebp, [esi + 0x44]
mov dword [ecx], eax
mov dword [ebp + 4], eax
mov dword [eax + 4], ecx
mov dword [eax], ebp
mov al, byte [esp + 0x17]
test al, al
mov byte [esp + 0x320], 2
jne 0x788003
mov ecx, dword [esp + 0x18]
push edi
push ebx
call fcn.0076ded0
mov edi, eax
lea eax, [esi + 0x38]
push eax
push edi
call fcn.004100a0
fstp dword [esp + 0x2c]
mov edx, dword [0x9b38ec]
push edx
call fcn.00463c70
add esp, 0xc
mov dword [esp + 0x18], eax
test eax, eax
mov byte [esp + 0x320], 4
je 0x787fec
mov ecx, dword [esp + 0x24]
push ecx
push 0
push ebx
push edi
push 0
mov ecx, eax
call fcn.0076d1e0
jmp 0x787fee
xor eax, eax
push eax
push 0x764f80
mov ecx, ebp
mov byte [esp + 0x328], 2
call fcn.00772350
lea ecx, [esp + 0x30]
mov byte [esp + 0x320], 1
call fcn.0076e220
mov ecx, dword [esp + 0x318]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x314
ret 0x10