Function at 0x48d650
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
mov ebx, dword [esp + 0xf4]
lea eax, [esp + 0x38]
lea ecx, [esp + 0x30]
push eax
lea edx, [esp + 0x80]
push ecx
push edx
lea ecx, [ebp + 0xc6c]
call 0x5ae3b8
mov eax, dword [0x5f9f88]
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x18]
lea ecx, [esp + 0x30]
push eax
push 1
push 0
push 0x5ea478
push ecx
mov byte [esp + 0xf8], 0xe
call fcn.00485a90
lea edx, [esp + 0x3c]
lea eax, [esp + 0x44]
push edx
push 2
push 1
push 0x5ea478
push eax
call fcn.00485a90
mov ecx, dword [esp + 0x118]
mov edx, dword [esp + 0x114]
add esp, 0x28
lea eax, [esp + 0x24]
push ebx
push ecx
push edx
push eax
mov ecx, ebp
call fcn.0048dd60
mov eax, dword [eax]
mov ecx, dword [esp + 0x18]
push eax
push ecx
call 0x5973ed
add esp, 8
lea ecx, [esp + 0x24]
test eax, eax
sete bl
call 0x5af70c
test bl, bl
je 0x48d116
mov ecx, dword [esp + 0x3c]
lea ebx, [edi + 1]
inc ecx
cmp ebx, 0xa
mov dword [esp + 0x3c], ecx
jle 0x48cffb
push ebx
push 4
mov ecx, esi
call fcn.004f1d90
push 0
push 0
push 0xff0000
push 0xffffff
push 0x5ea618
push edi
push 0
mov ecx, esi
call fcn.004f2260
push 0
push 0
push 0xff0000
push 0xffffff
push 0x5ea618
push edi
push 1
mov ecx, esi
call fcn.004f2260
push 0
push 0
push 0xff0000
push 0xffffff
push 0x5ea618
push edi
push 2
mov ecx, esi
call fcn.004f2260
push 0
push 0
push 0xff0000
push 0xffffff
push 0x5ea618
push edi
push 3
mov ecx, esi
call fcn.004f2260
mov eax, dword [0x5f9f88]
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], eax
lea edx, [esp + 0x20]
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x20]
push eax
lea edx, [esp + 0x58]
push ecx
lea eax, [esp + 0x1c]
push edx
lea ecx, [esp + 0x58]
push eax
push ecx
push ecx
lea edx, [esp + 0x54]
mov ecx, esp
mov dword [esp + 0x48], esp
push edx
mov byte [esp + 0x104], 0x11
call 0x5af481
mov ecx, ebp
call fcn.0048e9d0
mov eax, dword [esp + 0x20]
cmp eax, 1
jne 0x48d07c
mov ecx, dword [esp + 0x70]
lea eax, [esp + 0x30]
push eax
push ecx
lea ecx, [esp + 0x70]
call 0x5ad8bb
mov eax, dword [esp + 0x9c]
lea edx, [esp + 0x38]
push edx
push eax
lea ecx, [esp + 0x9c]
jmp 0x48d0dc
cmp eax, 2
jne fcn.0048d0b0
mov edx, dword [esp + 0x88]
lea ecx, [esp + 0x30]
push ecx
push edx
lea ecx, [esp + 0x88]
call 0x5ad8bb
mov ecx, dword [esp + 0xc4]
lea eax, [esp + 0x38]
push eax
push ecx
lea ecx, [esp + 0xc4]
jmp 0x48d0dc
cmp eax, 3
jne 0x48d0e1
mov eax, dword [esp + 0x5c]
lea edx, [esp + 0x30]
push edx
push eax
lea ecx, [esp + 0x5c]
call 0x5ad8bb
mov edx, dword [esp + 0xb0]
lea ecx, [esp + 0x38]
push ecx
push edx
lea ecx, [esp + 0xb0]
call 0x5ad8bb
lea ecx, [esp + 0x14]
mov edi, ebx
mov byte [esp + 0xe4], 0x10
call 0x5af70c
sbb byte [esi], ah
adc al, byte [eax]
lea ecx, [esp + 0x1c]
mov byte [esp + 0xe4], 0xf
call 0x5af70c
lea ecx, [esp + 0x10]
mov byte [esp + 0xe4], 0xe
call 0x5af70c
lea ecx, [esp + 0x28]
mov byte [esp + 0xe4], 0xd
call 0x5af70c
lea ecx, [esp + 0x18]
mov byte [esp + 0xe4], 0xc
call 0x5af70c
mov eax, dword [esp + 0x7c]
test eax, eax
jne 0x48cebd
mov ecx, dword [esp + 0x70]
xor ebx, ebx
lea eax, [ecx - 1]
test eax, eax
jle 0x48d265
lea edi, [ebx + 1]
cmp edi, ecx
mov dword [esp + 0x18], edi
jge 0x48d258
add byte [eax], al
invalid
push ebx
lea ecx, [esp + 0x6c]
call fcn.0047bb30
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call 0x5af481
mov ecx, ebp
call fcn.0048f030
fstp qword [esp + 0x40]
push edi
lea ecx, [esp + 0x6c]
call fcn.0047bb30
mov ebx, edi
lea edx, [ecx - 1]
cmp ebx, edx
jl 0x48d155
mov eax, dword [esp + 0x88]
xor ebx, ebx
lea edx, [eax - 1]
inc dword [ebp + 0x258e0fd2]
add dword [eax], eax
invalid
lea edi, [ebx + 1]
cmp edi, eax
mov dword [esp + 0x18], edi
jge 0x48d391
push ebx
lea ecx, [esp + 0x84]
call fcn.0047bb30
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call 0x5af481
mov ecx, ebp
call fcn.0048f030
fstp qword [esp + 0x40]
push edi
lea ecx, [esp + 0x84]
call fcn.0047bb30
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call 0x5af481
mov ecx, ebp
call fcn.0048f030
fld qword [esp + 0x40]
and al, 0x40
fcomp st(1)
fnstsw ax
test ah, 0x41
fstp st(0)
jne 0x48d379
mov eax, dword [0x5f9f88]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x84]
mov byte [esp + 0xe4], 0x13
lea edx, [ecx + ebx*4]
lea ecx, [esp + 0x10]
push edx
call 0x5af845
mov eax, dword [esp + 0x84]
lea ecx, [eax + edi*4]
push ecx
lea ecx, [eax + ebx*4]
call 0x5af845
mov eax, dword [esp + 0x84]
lea edx, [esp + 0x10]
push edx
lea ecx, [eax + edi*4]
call 0x5af845
mov ecx, dword [esp + 0xc0]
lea edx, [ecx + ebx*4]
lea ecx, [esp + 0x10]
push edx
call 0x5af845
mov eax, dword [esp + 0xc0]
lea ecx, [eax + edi*4]
push ecx
lea ecx, [eax + ebx*4]
call 0x5af845
mov eax, dword [esp + 0xc0]
lea edx, [esp + 0x10]
push edx
lea ecx, [eax + edi*4]
call 0x5af845
lea ecx, [esp + 0x10]
mov byte [esp + 0xe4], 0xc
call 0x5af70c
mov eax, dword [esp + 0x88]
inc edi
cmp edi, eax
jl 0x48d288
mov ecx, dword [esp + 0x70]
mov edi, dword [esp + 0x18]
mov ebx, edi
lea edx, [eax - 1]
cmp ebx, edx
jl 0x48d279
mov edx, dword [esp + 0x5c]
xor ebx, ebx
dec edx
test edx, edx
jle 0x48d4cd
mov edx, dword [esp + 0x5c]
lea edi, [ebx + 1]
cmp edi, edx
mov dword [esp + 0x18], edi
jge 0x48d4be
push ebx
lea ecx, [esp + 0x58]
call fcn.0047bb30
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call 0x5af481
mov ecx, ebp
call fcn.0048f030
fstp qword [esp + 0x40]
push edi
lea ecx, [esp + 0x58]
call fcn.0047bb30
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call 0x5af481
mov ecx, ebp
call fcn.0048f030
fld qword [esp + 0x40]
fcomp st(1)
fnstsw ax
test ah, 0x41
fstp st(0)
jne 0x48d4a2
mov eax, dword [0x5f9f88]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x58]
mov byte [esp + 0xe4], 0x14
lea edx, [ecx + ebx*4]
lea ecx, [esp + 0x10]
push edx
call 0x5af845
mov eax, dword [esp + 0x58]
lea ecx, [eax + edi*4]
push ecx
lea ecx, [eax + ebx*4]
call 0x5af845
mov eax, dword [esp + 0x58]
lea edx, [esp + 0x10]
push edx
lea ecx, [eax + edi*4]
call 0x5af845
mov ecx, dword [esp + 0xac]
lea edx, [ecx + ebx*4]
lea ecx, [esp + 0x10]
push edx
call 0x5af845
mov eax, dword [esp + 0xac]
lea ecx, [eax + edi*4]
push ecx
lea ecx, [eax + ebx*4]
call 0x5af845
mov eax, dword [esp + 0xac]
lea edx, [esp + 0x10]
push edx
lea ecx, [eax + edi*4]
call 0x5af845
lea ecx, [esp + 0x10]
mov byte [esp + 0xe4], 0xc
call 0x5af70c
mov eax, dword [esp + 0x5c]
inc edi
cmp edi, eax
jl 0x48d3c0
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x88]
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x5c]
mov ebx, edi
dec edx
cmp ebx, edx
jl 0x48d3ad
xor edi, edi
test ecx, ecx
jle 0x48d67e
mov bl, 0x19
mov eax, dword [0x5f9f88]
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x6c]
lea ecx, [esp + 0x14]
push ecx
push 2
push 1
lea eax, [edx + edi*4]
push 0x5ea478
push eax
mov byte [esp + 0xf8], 0x15
call fcn.00485a90
mov eax, dword [0x5f9f88]
add esp, 0x14
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x50]
push eax
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x60]
push edx
push eax
push edi
lea ecx, [esp + 0xb0]
mov byte [esp + 0x100], 0x18
call fcn.0047bb30
push ecx
mov ecx, esp
mov dword [esp + 0x44], esp
push eax
call 0x5af481
mov ecx, ebp
call fcn.0048e9d0
mov ecx, dword [esp + 0x14]
push 0
push 0
push 0xff
push 0xffffff
push ecx
push edi
push 0
mov ecx, esi
call fcn.004f2260
push 0
push 0
push 0xff
push 0xffffff
push 0x5eb618
push edi
push 1
mov ecx, esi
call fcn.004f2260
mov edx, dword [esp + 0x1c]
push 0
push 0
push 0xff
push 0xffffff
push edx
push edi
push 2
mov ecx, esi
call fcn.004f2260
lea eax, [esp + 0x10]
push 0x5ea618
lea ecx, [esp + 0x28]
push eax
push ecx
call 0x5af9a1
mov byte [esp + 0xe4], bl
lea edx, [esp + 0x18]
push edx
push eax
lea eax, [esp + 0x28]
push eax
call 0x5af93b
mov eax, dword [eax]
push 0
push 0
push 0xff
push 0xffffff
push eax
push edi
push 3
mov ecx, esi
mov byte [esp + 0x100], 0x1a
call fcn.004f2260
lea ecx, [esp + 0x20]
mov byte [esp + 0xe4], bl
call 0x5af70c
lea ecx, [esp + 0x24]
mov byte [esp + 0xe4], 0x18
call 0x5af70c
lea ecx, [esp + 0x18]
mov byte [esp + 0xe4], 0x17
call 0x5af70c
lea ecx, [esp + 0x10]
mov byte [esp + 0xe4], 0x16
add byte [eax], al
push ss
call 0x5af70c
lea ecx, [esp + 0x1c]
mov byte [esp + 0xe4], 0x15
add byte [eax], al
add byte [0x1220b3e8], dl
add byte [ebp - 0x39ebdbb4], cl
test byte [esp], ah
add byte [eax], al
add byte [eax + ebp*8], cl
mov byte [0x8b001220], al
dec esp
and al, 0x70
inc edi
cmp edi, ecx
jl 0x48d4d9
mov eax, dword [esp + 0x88]
mov edi, ecx
xor ebx, ebx
test eax, eax
mov dword [esp + 0x28], edi
jle 0x48d83a