Function at 0x4259c0
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4cc7e8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4f8458]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
push 0
mov dword [esi + 0x100], ebx
mov ecx, dword [eax]
push 0x4fb8f4
mov dword [esi + 0x68], ecx
mov edx, dword [eax + 4]
mov eax, dword [esi + 0x24]
push 0x4f98f8
push 0
push eax
mov dword [esi + 0x6c], edx
call fcn.0049436c
mov edi, eax
add esp, 0x14
test edi, edi
mov dword [esp + 0x18], edi
jne 0x425a41
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0xa0], 8
jb 0x425a52
mov eax, dword [ebx + 0x8c]
jmp 0x425a58
lea eax, [ebx + 0x8c]
mov ebx, dword [esi + 0xc4]
push 0xff
push eax
lea eax, [ebx + 0x2c]
push eax
call dword [0x4cf2cc]
mov ecx, dword [ebx + 0x20]
test ecx, ecx
je 0x425a87
add ebx, 4
mov eax, 1
mov esi, ecx
call fcn.00471b10
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 0xfc]
call fcn.0042a050
mov ecx, dword [esi + 0xfc]
mov edx, dword [ecx + 0x50]
xor ebx, ebx
push 0x3c
push ebx
push edx
mov dword [esp + 0x1c], ebx
call fcn.0049d900
mov eax, dword [ebp + 0x10]
add esp, 0xc
cmp eax, ebx
je 0x425af1
add eax, 0xf0
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
test eax, eax
je 0x425af1
mov ecx, dword [esi + 0xfc]
mov edx, dword [ecx]
push 0
push 1
push 1
push 0
push eax
mov eax, dword [edx + 0x74]
push 0
call eax
add dword [esp + 0x10], 1
add dword [esp + 0x14], 4
add ebx, 1
cmp ebx, 0xf
jl 0x425abd
mov esi, dword [esi + 0xfc]
push 0
call fcn.00429fe0
mov ecx, dword [ebp + 8]
mov ebx, dword [ecx + 0xfc]
mov eax, dword [ebx + 0x18]
mov edx, eax
not edx
test dl, 1
jne 0x425b38
and eax, 0xfffffffe
mov dword [ebx + 0x18], eax
mov eax, dword [ebx]
mov edx, dword [eax + 0x50]
push 0
mov ecx, ebx
call edx
mov esi, dword [ebx + 0x20]
test esi, esi
je 0x425b38
add ebx, 4
mov eax, 1
call fcn.00471b10
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0xc4]
mov eax, dword [ebx + 0x18]
mov ecx, eax
not ecx
test cl, 1
jne 0x425b72
mov edx, dword [ebx]
and eax, 0xfffffffe
mov dword [ebx + 0x18], eax
mov eax, dword [edx + 0x50]
push 0
mov ecx, ebx
call eax
mov esi, dword [ebx + 0x20]
test esi, esi
je 0x425b72
add ebx, 4
mov eax, 1
call fcn.00471b10
push 0
call dword [0x4cf0ec]
mov ebx, dword [edi + 0x10]
mov esi, dword [ebp + 8]
sub ebx, dword [edi + 8]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 4]
add esi, 0x70
push eax
call fcn.00473960
mov esi, dword [esp + 0x14]
push eax
push esi
call dword [0x4cf0e8]
mov ecx, dword [edi + 0x560]
mov edx, dword [ecx]
mov eax, dword [edx + 0x48]
push 0
push esi
call eax
mov ecx, dword [edi + 0x56c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x48]
push 0
push esi
call eax
mov eax, dword [edi + 0xc]
mov ebx, dword [edi + 0x10]
sub eax, dword [edi + 4]
mov esi, dword [ebp + 8]
sub ebx, dword [edi + 8]
push eax
add esi, 0x84
call fcn.00473960
mov edi, dword [esp + 0x14]
push eax
push edi
call dword [0x4cf0e8]
mov esi, dword [esp + 0x18]
push 0
call fcn.004624c0
mov edi, dword [ebp + 8]
push 0x5a
lea esi, [edi + 0x98]
mov ebx, 0x5a
call fcn.00473960
mov esi, dword [esp + 0x14]
push eax
push esi
call dword [0x4cf0e8]
xor ebx, ebx
cmp dword [0x50067c], 1
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
lea eax, [ebx + 0x30]
je 0x425c30
mov eax, 0x20
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x10]
push 1
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [eax + 0xe4]
mov edx, esi
call fcn.00421ab0
push esi
call dword [0x4cf0e4]
mov esi, dword [esp + 0x10]
cmp esi, ebx
mov byte [edi + 0x64], 0xff
mov dword [edi + 0x4c], ebx
mov dword [edi + 0x50], ebx
jne 0x425c74
mov dword [esp + 0x10], 1
mov esi, dword [esp + 0x10]
mov ebx, dword [0x500694]
add ebx, 0x94
lea edi, [esp + 0x1c]
call fcn.004244c0
xor ebx, ebx
mov dword [esp + 0x38], ebx
mov ecx, dword [esp + 0x20]
cmp ecx, ebx
jne 0x425c9b
xor eax, eax
jmp 0x425ca4
mov eax, dword [esp + 0x24]
sub eax, ecx
sar eax, 2
add esi, eax
cmp esi, 0xf
jle 0x425cb7
mov dword [esp + 0x10], 0xf
mov esi, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
mov ecx, dword [ecx + 0xe0]
mov eax, 0x66666667
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x425d28
mov edi, dword [ebp + 8]
fld dword [edi + 0xc0]
fmul qword [0x4e33a0]
call fcn.004c4a50
mov dword [edi + 0x5c], eax
mov eax, 0x66666667
imul esi
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
xor ecx, ecx
lea edx, [eax + eax*4]
sub esi, edx
test esi, esi
setg cl
add ecx, eax
imul ecx, ecx, 0x5a
add ecx, 0x11
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
fmul dword [edi + 0xc0]
call fcn.004c4a50
mov dword [edi + 0x60], eax
jmp 0x425df9
cmp eax, 1
jne 0x425d9c
mov eax, 0x66666667
imul esi
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax + eax*4]
sub esi, edx
xor ecx, ecx
test esi, esi
setg cl
mov edi, dword [ebp + 8]
add ecx, eax
mov esi, ecx
imul esi, esi, 0x5a
mov eax, 0x55555556
imul esi
mov eax, edx
shr eax, 0x1f
lea ecx, [edx + eax + 0x3c]
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
fmul dword [edi + 0xc0]
call fcn.004c4a50
add esi, 0x14
mov dword [esp + 0x14], esi
fild dword [esp + 0x14]
mov dword [edi + 0x5c], eax
fmul dword [edi + 0xc0]
fdiv qword [0x4e3560]
fadd st(0), st(0)
call fcn.004c4a50
mov dword [edi + 0x60], eax
jmp 0x425df9
cmp eax, 2
jne 0x425df6
mov eax, 0x66666667
imul esi
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
xor ecx, ecx
lea edx, [eax + eax*4]
sub esi, edx
test esi, esi
mov esi, dword [ebp + 8]
setg cl
add ecx, eax
imul ecx, ecx, 0x5a
sub ecx, 0x14
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
fmul dword [esi + 0xc0]
call fcn.004c4a50
fld dword [esi + 0xc0]
fmul qword [0x4e3558]
mov dword [esi + 0x5c], eax
call fcn.004c4a50
mov dword [esi + 0x60], eax
mov edi, esi
jmp 0x425df9
mov edi, dword [ebp + 8]
add dword [edi + 0x5c], 0xfffffff2
mov ecx, dword [edi + 0x5c]
add dword [edi + 0x60], 0x18
mov esi, dword [edi + 0x60]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [edi + 0x58], eax
mov eax, 0x2aaaaaab
imul esi
mov eax, dword [edi + 0x18]
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
test al, 1
mov dword [edi + 0x54], ecx
jne 0x425e57
mov edx, dword [edi]
or eax, 1
mov dword [edi + 0x18], eax
mov eax, dword [edx + 0x50]
push 1
mov ecx, edi
call eax
mov esi, dword [edi + 0x20]
cmp esi, ebx
je 0x425e57
lea ebx, [edi + 4]
mov eax, 1
call fcn.00471b10
xor ebx, ebx
mov eax, dword [edi + 0xec]
cmp eax, ebx
je 0x425e6d
push eax
call fcn.00471be0
mov dword [edi + 0xec], ebx
mov esi, dword [esp + 0x18]
push 1
mov dword [edi + 0xf8], ebx
call fcn.00464810
push 0x471b70
push 0x1e
push 0
push 0
call dword [0x4cf4ac]
lea ebx, [esp + 0x18]
mov dword [esp + 0x18], eax
call fcn.00471e80
mov ecx, dword [esp + 0x18]
lea esi, [edi + 0xe4]
mov dword [eax], edi
push esi
mov dword [edi + 0xec], ecx
call dword [0x4cf574]
mov edi, dword [edi + 0x20]
test edi, edi
je 0x425ec1
mov edi, dword [edi + 8]
jmp 0x425ec3
xor edi, edi
push esi
push edi
call dword [0x4cf578]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x425edc
push eax
call fcn.00493b60
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc