Function at 0x46c8c0
Capabilities:
Get system information on windows
Resolve function by parsing pe exports

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d6857
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x68
mov eax, dword [0x68a140]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x60], edi
mov dword [ebp - 4], 0
mov ecx, dword [ebx + 8]
mov eax, dword [ecx + 8]
mov dword [edi], eax
mov eax, dword [ebx + 0xc]
mov dword [edi + 4], 0
mov dword [edi + 8], 0
test eax, eax
je 0x46c934
lock inc dword [eax + 4]
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 8]
mov dword [edi + 4], ecx
mov dword [edi + 8], eax
mov byte [edi + 0xc], 0
xorps xmm0, xmm0
movups xmmword [edi + 0x10], xmm0
xor ecx, ecx
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 7
mov word [edi + 0x10], cx
mov dword [edi + 0x28], ecx
mov dword [edi + 0x2c], ecx
mov dword [edi + 0x30], ecx
mov dword [edi + 0x34], ecx
mov dword [edi + 0x38], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x54]
mov dword [edi + 0x50], 0
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 0
mov dword [edi + 0x60], 0
mov dword [edi + 0x64], 0
mov dword [edi + 0x68], 0
mov dword [edi + 0x6c], 0
mov dword [edi + 0x70], 0
mov dword [edi + 0x74], 0
mov dword [edi + 0x78], 0
mov dword [edi + 0x7c], 0
mov dword [edi + 0x80], 0
mov dword [edi + 0x88], 0
mov dword [edi + 0x8c], 0
mov dword [edi + 0x90], 0
mov dword [edi + 0x94], 0
mov dword [edi + 0x98], 0
mov dword [edi + 0x9c], 0
mov dword [edi + 0xa0], 0
mov dword [edi + 0xa4], 0
mov dword [edi + 0xa8], 0
mov dword [edi + 0xac], 0
push eax
mov dword [edi + 0x40], 0
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp dword [ebp - 0x58], 0
mov eax, dword [ebp - 0x40]
mov dword [edi + 0x44], eax
lea eax, [edi + 0x48]
mov dword [ebp - 0x5c], eax
mov dword [eax], 0
je 0x46ca83
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 0
push 0
push dword [ebp - 0x5c]
push esi
push dword [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x46ca83
lea ecx, [edi + 0x40]
call fcn.004725d0
lea eax, [edi + 0xb0]
mov byte [ebp - 4], 3
push 0
mov ecx, eax
mov dword [eax], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], 0
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 0
mov dword [eax + 0x28], 0
mov dword [eax + 0x30], 0
mov dword [eax + 0x34], 0
mov dword [eax + 0x38], 0
mov dword [eax + 0x3c], 0
mov dword [eax + 0x40], 0
mov dword [eax + 0x44], 0
mov dword [eax + 0x48], 0
mov dword [eax + 0x4c], 0
call fcn.00471cc0
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
xor eax, eax
mov dword [ebp - 0x18], 7
movups xmmword [ebp - 0x2c], xmm0
mov word [ebp - 0x2c], ax
push eax
push 0x104
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.004286f0
cmp dword [ebp - 0x18], 7
lea esi, [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
cmova esi, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x30]
push ecx
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameW]
test eax, eax
je 0x46cc7c
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x1c]
cmp ecx, eax
ja 0x46cb8d
cmp dword [ebp - 0x18], 7
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], ecx
cmova eax, dword [ebp - 0x2c]
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x46cb9a
sub ecx, eax
push 0
push ecx
lea ecx, [ebp - 0x2c]
call fcn.004286f0
cmp dword [ebp - 0x1c], 0
je 0x46cc7c
cmp dword [ebp - 0x18], 7
lea eax, [ebp - 0x2c]
lea ecx, [edi + 0xb0]
cmova eax, dword [ebp - 0x2c]
movzx eax, word [eax]
push eax
call fcn.00471cc0
cmp dword [ebp - 0x18], 7
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x1c]
mov edx, esi
cmova ecx, dword [ebp - 0x2c]
push 2
push 0x62c980
push ecx
call fcn.004535b0
add esp, 0xc
cmp eax, 0xffffffff
je 0x46cc0e
inc eax
lea edx, [ebp - 0x2c]
cmp esi, eax
cmovb eax, esi
cmp dword [ebp - 0x18], 7
cmova edx, dword [ebp - 0x2c]
sub esi, eax
lea ecx, [edx + eax*2]
lea eax, [esi*2 + 2]
push eax
push ecx
push edx
call fcn.0059b740
add esp, 0xc
mov dword [ebp - 0x1c], esi
mov eax, 0x7ffffffe
sub eax, esi
cmp eax, 0x4a
jb 0x46cd41
cmp dword [ebp - 0x18], 7
lea eax, [ebp - 0x2c]
push esi
cmova eax, dword [ebp - 0x2c]
push eax
push 0x4a
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionImage_File_Execution_Options_
push ecx
push dword [ebp - 0x60]
lea ecx, [ebp - 0x78]
call fcn.004218a0
lea eax, [ebp - 0x78]
lea esi, [edi + 0x10]
cmp esi, eax
je 0x46cc74
mov ecx, esi
call fcn.00428f30
movups xmm0, xmmword [ebp - 0x78]
xor eax, eax
mov word [ebp - 0x78], ax
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x68]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 7
lea ecx, [ebp - 0x78]
call fcn.00428f30
push 0x63017c
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtGetNextThread
push 0x62a4e0
mov dword [edi + 0x110], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RtlGetNtGlobalFlags
push 0x62a4e0
mov dword [edi + 0x114], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0x2c]
mov dword [edi + 0x118], eax
call fcn.00428f30
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0x58], ecx
test ecx, ecx
je 0x46cd1f
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
jne 0x46cd1f
mov eax, dword [ecx]
mov esi, dword [eax]
mov ecx, esi
call dword [0x5f3508]
mov ecx, dword [ebp - 0x58]
call esi
mov eax, dword [ebp - 0x58]
or ecx, 0xffffffff
lock xadd dword [eax + 8], ecx
jne 0x46cd1f
mov edx, dword [eax]
mov esi, dword [edx + 4]
mov ecx, esi
call dword [0x5f3508]
mov ecx, dword [ebp - 0x58]
call esi
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00599e5b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
call fcn.00428b70
int3