Function at 0x478ac0
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push 0xffffffffffffffff
push 0x606405
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x667050]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x667050]
xor eax, esp
push eax
lea eax, [esp + 0x84]
mov dword fs:[0], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0x30], eax
add eax, 0x1f8
mov eax, dword [eax]
mov edi, dword [eax + 0x54]
xor eax, eax
add edi, 0x80
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x8c], eax
mov eax, dword [edi + 8]
push eax
lea esi, [esp + 0x1c]
call fcn.0047a180
mov eax, dword [edi + 4]
mov ebp, dword [eax]
mov esi, edi
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], esi
test esi, esi
mov ebx, dword [edi + 4]
je 0x478b4c
cmp esi, edi
je 0x478b52
call dword [0x6105e8]
cmp ebp, ebx
je 0x478bde
test esi, esi
mov ebx, dword [0x6105e8]
jne 0x478b66
call ebx
cmp ebp, dword [esi + 4]
jne 0x478b6d
call ebx
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
add ebp, 0x10
test edx, edx
je 0x478bb1
mov ecx, dword [esp + 0x24]
mov eax, esi
sub eax, edx
sub ecx, edx
sar eax, 2
sar ecx, 2
cmp eax, ecx
jae 0x478bb1
mov ecx, dword [ebp]
mov eax, esi
mov dword [esi], ecx
add eax, 4
lea esi, [esp + 0x34]
mov dword [esp + 0x20], eax
call fcn.004492e0
mov ebp, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
jmp 0x478b41
cmp edx, esi
jbe 0x478bb7
call ebx
push esi
lea eax, [esp + 0x1c]
push eax
push ebp
lea edx, [esp + 0x48]
push edx
call fcn.00448740
lea esi, [esp + 0x34]
call fcn.004492e0
mov ebp, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
jmp 0x478b41
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
cmp esi, eax
mov edi, eax
jbe 0x478c04
call dword [0x6105e8]
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
cmp esi, eax
jbe 0x478c04
call dword [0x6105e8]
mov eax, edi
sub eax, esi
push 0x477e00
sar eax, 2
push eax
push edi
push esi
call fcn.0047a530
add esp, 0x10
xor ebp, ebp
mov dword [esp + 0x2c], ebp
mov ecx, dword [esp + 0x1c]
test ecx, ecx
mov dword [esp + 0x28], ebp
je 0x478e19
mov eax, dword [esp + 0x20]
sub eax, ecx
sar eax, 2
cmp ebp, eax
jae 0x478e10
mov edi, dword [ecx + ebp*4]
mov esi, dword [esp + 0x30]
mov ecx, dword [edi]
add esi, 0x1f8
push ecx
mov eax, esi
call fcn.0040c900
mov ebx, eax
test ebx, ebx
je 0x478dfd
cmp byte [ebx + 0x20], 0
jne 0x478c7b
mov edx, dword [edi]
mov eax, dword [esi]
mov ecx, dword [eax + 0x54]
push edx
call fcn.004b0110
add ebp, 1
jmp 0x478c21
mov eax, dword [edi + 0x70]
cmp eax, 0x12c
jl 0x478cb2
cmp eax, 0x320
jge 0x478cb9
cmp dword [esp + 0x2c], 0x63
jb 0x478ca6
add dword [esp + 0x2c], 1
mov ebp, 0xa1
mov dword [edi + 0x70], 0x578
jmp 0x478cd7
add dword [esp + 0x2c], 1
mov ebp, 0x77
jmp 0x478cd7
cmp eax, 0x320
jl 0x478cc7
cmp eax, 0x578
jge 0x478ccc
mov ebp, 0x11d
jmp 0x478cd7
cmp eax, 0x578
jne 0x478dfd
mov ebp, 0xa1
cmp dword [edi + 0x18], 0
jne 0x478d0b
mov eax, dword [edi]
push esi
lea esi, [esp + 0x48]
call fcn.0040ce20
push eax
lea ecx, [edi + 4]
mov byte [esp + 0x90], 1
call dword [0x61059c]
mov ecx, esi
mov byte [esp + 0x8c], 0
call dword [0x6105a0]
mov eax, dword [esp + 0x30]
push ebp
add eax, 0x20
call fcn.005aa990
mov ebp, eax
test ebp, ebp
je 0x478df9
push 0x548
call fcn.005e694e
mov esi, eax
add esp, 4
mov dword [esp + 0x3c], esi
test esi, esi
mov byte [esp + 0x8c], 2
je 0x478d61
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x50], esp
push 0x6111d4
call dword [0x610498]
push ebx
mov ecx, esi
call fcn.00465e00
mov esi, eax
jmp 0x478d63
xor esi, esi
test esi, esi
mov byte [esp + 0x8c], 0
je 0x478e05
mov ecx, dword [edi]
push ecx
lea edi, [esp + 0x64]
call fcn.00405ca0
add esp, 4
mov edx, edi
push edx
mov byte [esp + 0x90], 3
call fcn.004d7a10
add esp, 4
test al, al
je 0x478dde
mov eax, dword [esi + 0x420]
and eax, 0xfffffffa
mov ecx, edi
or eax, 2
push ecx
lea ecx, [esi + 0x424]
mov dword [esi + 0x420], eax
call dword [0x61059c]
mov eax, dword [esi + 0x3ac]
test eax, eax
mov byte [esi + 0x3a8], 1
je 0x478dd2
mov byte [eax + 0xb8], 1
mov edx, dword [esi]
mov eax, dword [edx + 0x114]
mov ecx, esi
call eax
push 1
push esi
push ebp
call fcn.0046d6c0
lea ecx, [esp + 0x60]
mov byte [esp + 0x8c], 0
call dword [0x6105a0]
mov ebp, dword [esp + 0x28]
add ebp, 1
jmp 0x478c21
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x478e19
push eax
jmp 0x478e11
push ecx
call fcn.005e6954
add esp, 4
mov ecx, dword [esp + 0x84]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.005e693f
add esp, 0x7c
ret 4