Function at 0x4885c0
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x3c], ebx
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4887f9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00488380
mov eax, dword [ebx + 0x6c]
mov dword [ebx + 0x6c], eax
movzx eax, byte [ebp + 8]
mov byte [ebx + 0x68], al
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax + 0x18]
mov edx, dword [eax]
call dword [edx + 0x18]
test al, al
jne 0x488619
push 2
mov ecx, 0x488814
mov edx, 0x488834
mov eax, ebx
call fcn.00488430
mov edx, esi
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax + 0x18]
mov ecx, dword [eax]
call dword [ecx + 8]
mov edi, eax
mov dword [ebx + 0x94], edi
lea edx, [ebx + 0x18]
mov ecx, edi
mov eax, dword [ebx + 0x2c]
call fcn.004881d0
mov eax, ebx
call fcn.0048834c
mov ecx, dword [ebx + 0x94]
mov edx, 0x488848
mov edi, dword [eax]
call dword [edi + 0xc]
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.0048834c
mov ecx, dword [ebx + 0x94]
mov edx, 0x48885c
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x54], eax
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0x58], eax
cmp byte [ebp + 8], 0
je 0x4886bd
lea eax, [ebx + 0x18]
xor edx, edx
mov dword [ebp - 0x28], edx
mov edx, dword [eax]
mov dword [ebp - 0x20], edx
xor edx, edx
mov dword [ebp - 0x24], edx
mov eax, dword [eax + 4]
mov dword [ebp - 0x1c], eax
lea esi, [ebp - 0x28]
lea edi, [ebx + 0x70]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0x18]
mov dword [ebx + 0x80], eax
mov eax, dword [ebx + 0x1c]
mov dword [ebx + 0x84], eax
jmp 0x488705
mov eax, dword [esi + 8]
sub eax, dword [esi]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
mov dword [ebx + 0x80], eax
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0x84], eax
lea eax, [ebx + 0x80]
xor edx, edx
mov dword [ebp - 0x38], edx
mov edx, dword [eax]
mov dword [ebp - 0x30], edx
xor edx, edx
mov dword [ebp - 0x34], edx
mov eax, dword [eax + 4]
mov dword [ebp - 0x2c], eax
lea esi, [ebp - 0x38]
lea edi, [ebx + 0x70]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movzx eax, byte [ebx + 0x68]
xor al, 1
mov byte [ebx + 0x38], al
lea esi, [ebx + 0x18]
lea edi, [ebx + 0x3c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0x94]
mov dword [ebx + 0x50], eax
lea eax, [ebx + 0x38]
push eax
mov esi, dword [ebx + 0x2c]
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, dword [esi + 0x24]
call dword [esi + 0x20]
mov dword [ebx + 0x30], eax
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax + 0x18]
movzx eax, byte [eax + 8]
push eax
lea edx, [ebp - 0x3c]
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax + 0x18]
mov ecx, dword [eax]
call dword [ecx + 4]
mov ecx, dword [ebp - 0x3c]
mov edx, 0x488874
mov eax, ebx
call fcn.00488430
mov ecx, ebx
mov dl, 1
mov eax, dword [0x4875c8]
call fcn.0048a1f4
mov esi, eax
mov dword [ebx + 0x34], esi
mov byte [esi + 0x50], 0
mov ecx, 2
mov edx, 0x20
mov eax, esi
call fcn.0048a2fc
mov eax, dword [ebx + 0x80]
push eax
mov eax, dword [ebx + 0x84]
push eax
xor ecx, ecx
xor edx, edx
mov eax, ebx
call fcn.00488e4c
push 0
push 0x3f800000
lea edx, [ebx + 0x70]
mov eax, ebx
call fcn.00488d14
mov dl, 1
mov eax, dword [ebx + 0x30]
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebx + 0x30]
mov edx, dword [eax]
call dword [edx + 0x1c]
push eax
mov ecx, dword [0x4fcf1c]
mov dl, 1
mov eax, dword [0x487498]
call fcn.0048bd38
mov edx, eax
mov eax, dword [ebx + 0x88]
call fcn.00416080
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x488800
lea eax, [ebp - 0x3c]
call fcn.0040525c
ret