Function at 0x659be0
Capabilities:
Check for peb ntglobalflag flag
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x80
mov esi, esp
mov dword [esi + 0x68], ebp
mov dword [esi + 0x6c], esp
mov dword [esi + 0x78], 0xffffffff
mov dword [esi + 0x74], 0x706460
mov dword [esi + 8], ecx
lea eax, [esi + 0x70]
mov ecx, dword fs:[0]
mov dword [esi + 0x70], ecx
mov dword fs:[0], eax
cmp dword [edx + 0x30], 0
jne 0x659e84
mov dword [edx + 0x30], 0xffffffff
mov dword [edx + 0x3c], 0
lea eax, [edx + 0x30]
mov edi, edx
cmp dword [edx + 0x40], 0
mov dword [esi + 0x20], eax
jne 0x659ea6
lea eax, [edi + 0x34]
mov dword [edi + 0x40], 0xffffffff
mov dword [edi + 0x4c], 0
mov dword [esi + 4], edi
mov dword [esi + 0x18], eax
lea eax, [edi + 0x40]
mov dword [esi + 0x1c], eax
xor eax, eax
cmp dword [edi + 0x38], 0
jne 0x659c81
mov ecx, dword [esi + 0x18]
xor edx, edx
mov dword [esi + 0x78], 1
call fcn.0040f440
mov edi, dword [esi + 4]
mov eax, dword [edi + 0x3c]
mov edx, dword [edi + 0x34]
movsd xmm0, qword [0x725c60]
lea ecx, [edi + 0x44]
mov dword [esi + 0x24], ecx
movsd qword [edx + eax*8], xmm0
mov eax, dword [edi + 0x3c]
inc eax
mov dword [edi + 0x3c], eax
mov ecx, dword [esi + 8]
test eax, eax
je 0x659df9
lea ecx, [eax - 1]
mov dword [edi + 0x3c], ecx
mov ecx, dword [edi + 0x34]
mov edx, dword [ecx + eax*8 - 8]
mov ebx, dword [ecx + eax*8 - 4]
mov ecx, edx
mov dword [esi + 0x10], ecx
jmp 0x659cd4
mov ebx, dword [esi + 0x14]
inc ebx
mov edx, dword [edi + 8]
cmp ecx, edx
jae 0x659e6e
mov eax, dword [edi]
lea ecx, [ecx + ecx*2]
cmp ebx, dword [eax + ecx*4 + 8]
jae 0x659de0
lea eax, [eax + ecx*4]
mov dword [esi + 0x14], ebx
mov ecx, dword [eax]
movzx edx, byte [ecx + ebx*8 + 5]
movzx eax, byte [ecx + ebx*8 + 4]
mov byte [esi + 2], dl
mov edx, dword [edi + 0x4c]
mov byte [esi + 3], al
cmp edx, dword [edi + 0x48]
jne 0x659d29
mov dword [esi + 0xc], ecx
mov ecx, dword [esi + 0x24]
mov dword [esi + 0x78], 1
call fcn.0060a000
mov edi, dword [esi + 4]
mov ecx, dword [esi + 0xc]
mov edx, dword [edi + 0x4c]
mov eax, dword [edi + 0x44]
movzx ebx, byte [esi + 3]
mov edi, dword [esi + 4]
mov byte [eax + edx*2], bl
movzx ebx, byte [esi + 2]
mov byte [eax + edx*2 + 1], bl
mov ebx, dword [esi + 0x14]
mov eax, dword [edi + 0x4c]
inc eax
mov dword [edi + 0x4c], eax
cmp dword [ecx + ebx*8], 0
jne 0x659d90
mov ecx, dword [esi + 0x24]
mov edx, dword [ebp + 8]
mov edi, dword [ecx]
mov dword [esi + 0x78], 1
lea ecx, [esi + 0x28]
push eax
push edi
call fcn.00653b60
add esp, 8
mov eax, dword [esi + 0x28]
mov edi, dword [esi + 4]
mov ecx, dword [esi + 0x10]
cmp eax, 0x27
jne 0x659e00
mov eax, dword [edi + 0x4c]
test eax, eax
je 0x659cd0
dec eax
mov dword [edi + 0x4c], eax
jmp 0x659cd0
mov edx, dword [edi + 0x3c]
mov dword [esi + 0xc], ecx
cmp edx, dword [edi + 0x38]
jne 0x659db8
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x78], 1
call fcn.0040f440
mov edi, dword [esi + 4]
mov ecx, dword [esi + 0x10]
mov ebx, dword [esi + 0x14]
mov edx, dword [edi + 0x3c]
jmp 0x659dbb
mov ecx, dword [esi + 0x10]
mov eax, dword [edi + 0x34]
mov dword [eax + edx*8], ecx
lea ecx, [ebx + 1]
mov dword [eax + edx*8 + 4], ecx
mov ecx, dword [esi + 0xc]
inc dword [edi + 0x3c]
mov ecx, dword [ecx + ebx*8]
xor ebx, ebx
jmp 0x659cbc
mov eax, dword [edi + 0x4c]
test eax, eax
je 0x659deb
dec eax
mov dword [edi + 0x4c], eax
mov eax, dword [edi + 0x3c]
mov ecx, dword [esi + 8]
test eax, eax
jne 0x659ca9
mov eax, 0x27
jmp 0x659e51
mov edx, dword [esi + 8]
movsd xmm2, qword [esi + 0x54]
movsd xmm1, qword [esi + 0x4c]
mov ecx, dword [esi + 0x64]
movsd xmm0, qword [esi + 0x5c]
movsd qword [edx + 0x2c], xmm2
movsd qword [edx + 0x24], xmm1
movsd xmm2, qword [esi + 0x44]
movsd xmm1, qword [esi + 0x3c]
mov dword [edx + 0x3c], ecx
mov ecx, edx
movsd qword [edx + 0x34], xmm0
movsd qword [edx + 0x1c], xmm2
movsd qword [edx + 0x14], xmm1
movsd xmm2, qword [esi + 0x2c]
movsd xmm1, qword [esi + 0x34]
movsd qword [edx + 0xc], xmm1
movsd qword [edx + 4], xmm2
mov dword [ecx], eax
mov eax, dword [esi + 0x1c]
inc dword [eax]
mov eax, dword [esi + 0x20]
inc dword [eax]
mov eax, dword [esi + 0x70]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esi + 0x78], 1
push 0x8c2ac8
call fcn.00709fa0
add esp, 4
jmp 0x659ecd
lea eax, [esi + 0x28]
mov ecx, 0x8cde0b
mov edx, 0x10
push 0x8c2a04
push 0x8c28dc
push eax
call fcn.0070a360
add esp, 0xc
ud2
mov dword [esi + 0x78], 0
lea eax, [esi + 0x28]
mov ecx, 0x8cde0b
mov edx, 0x10
push 0x8c2a14
push 0x8c28dc
push eax
call fcn.0070a360
add esp, 0xc
ud2