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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x80
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x10146014]
xor ecx, ebp
mov dword [esp + 0x78], ecx
lea esi, [esp + 0x38]
mov dword [esi], eax
push esi
call fcn.10065dd0
add esp, 4
mov esi, dword [esi]
mov eax, dword [0x1015c16c]
test eax, eax
je 0x10061c53
mov ecx, dword [0x1015c170]
jmp 0x10061c83
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x50]
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
mov dword [edi + 0x20], 0xffffffff
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [edi + 8]
mov eax, dword [edi + 0xc]
mov dword [0x1015c16c], eax
mov dword [0x1015c170], ecx
cmp ecx, esi
ja 0x10061e88
cmp eax, esi
jb 0x10061e88
mov dword [esp + 0x50], 0
mov eax, dword [esp + 0x38]
test eax, eax
je 0x10061e88
lea ecx, [esp + 0x50]
push ecx
push eax
push 4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
test eax, eax
jne 0x10061cbf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 0x50]
mov dword [esp + 0xc], eax
test eax, eax
je 0x10061e88
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov edi, eax
call fcn.1007c020
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
call ebx
mov dword [esp + 0x10], esp
call fcn.1007c020
call esi
mov edi, eax
call fcn.1007c020
push edi
call ebx
xor esi, esi
dec esi
lea ecx, [esp + 0x14]
mov dword [ecx], esi
mov dword [ecx + 4], esi
mov dword [ecx + 8], esi
call fcn.10095710
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x50], xmm0
lea eax, [esp + 0x4c]
mov dword [eax], esi
xor ecx, ecx
lea edx, [esp + 0x48]
mov dword [edx], ecx
lea edi, [esp + 0x44]
mov dword [edi], ecx
lea ecx, [esp + 0x38]
mov dword [ecx], fcn.10106bc0
mov ebx, dword [esp + 0xc]
mov dword [ecx + 4], ebx
push edi
mov edi, ecx
push edx
push eax
lea eax, [esp + 0x5c]
push eax
call fcn.10053170
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 8], 0
test al, al
je 0x10061dba
xor eax, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], eax
mov dword [esp + 4], 0
mov dword [esp + 0x40], eax
push edi
push dword [esp + 0x48]
push dword [esp + 0x50]
call fcn.10042090
add esp, 0xc
mov dword [esp], 0
mov dword [esp + 8], 0
test al, al
jne 0x10061ee4
cmp byte [esp + 0x43], 0
jns 0x10061dba
push dword [esp + 0x38]
call fcn.100c1c31
add esp, 4
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
call fcn.10038be0
push 0xc
push edi
mov edi, dword [esp + 0x14]
push edi
push eax
call sub.KERNEL32.dll_K32GetModuleInformation
test eax, eax
je 0x10061e90
push 0x2c
call fcn.100c1c01
add esp, 4
mov ebx, eax
movsd xmm0, qword [esp + 0x38]
movsd qword [esp + 0x50], xmm0
mov eax, dword [esp + 0x40]
mov dword [esp + 0x58], eax
call fcn.1007c020
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov esi, edi
mov edi, eax
call fcn.1007c020
push edi
mov eax, dword [sym.imp.KERNEL32.dll_SetLastError]
call eax
mov dword [ebx], fcn.10062030
mov dword [ebx + 4], 0
call fcn.1007c020
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [ebx + 4], esi
call fcn.1007c020
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x58]
mov dword [ebx + 0x10], eax
movq xmm0, qword [esp + 0x50]
movq qword [ebx + 8], xmm0
mov esi, dword [esp + 8]
test esi, esi
jns 0x1006200f
lea ecx, [ebx + 0x14]
push dword [esp + 4]
push dword [esp + 4]
call fcn.1002fa40
mov ecx, ebx
add ecx, 0x20
lea eax, [esp + 0x14]
push eax
call fcn.10095730
xor edi, edi
jmp 0x10061e96
mov dword [ebx], 0
jmp 0x10061ecf
mov esi, dword [esp + 8]
xor ebx, ebx
mov dword [esp + 0x50], ebx
test esi, esi
jns 0x10061ea9
push dword [esp]
call fcn.100c1c31
add esp, 4
lea ecx, [esp + 0x14]
call fcn.10095920
test edi, edi
mov ebx, dword [ebp + 8]
je 0x10061ec5
call fcn.1007c020
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esp, dword [esp + 0x10]
mov eax, dword [esp + 0x50]
mov dword [ebx], eax
mov ecx, dword [esp + 0x78]
xor ecx, ebp
call fcn.100c2603
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
movzx eax, byte [esp + 0x43]
test al, al
jns 0x10061ef7
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
jmp 0x10061efc
and eax, 0x7f
mov edx, edi
lea ecx, [esp + 0x20]
push eax
push edx
call fcn.100957f0
lea ebx, [esp + 0x2c]
lea ecx, [esp + 0x20]
push ebx
call fcn.10095940
lea ecx, [esp + 0x14]
push ebx
call fcn.100423e0
mov ecx, ebx
call fcn.10095920
lea ecx, [esp + 0x20]
call fcn.10095920
mov dword [ebx], esi
mov dword [ebx + 4], esi
mov dword [ebx + 8], esi
lea eax, [esp + 0x50]
push eax
push ebx
call fcn.10052ad0
add esp, 8
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x10061f57
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
jmp 0x10061f5c
and eax, 0x7f
mov ecx, ebx
push ebx
push 3
push 0x1013f438
push eax
push ecx
call fcn.10042550
add esp, 0x14
push dword [esp + 0x4c]
lea eax, [esp + 0x24]
push eax
call fcn.10064720
add esp, 8
movzx eax, byte [esp + 0x2b]
test al, al
jns 0x10061f92
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
jmp 0x10061f99
and eax, 0x7f
lea edx, [esp + 0x20]
lea ecx, [esp + 0x2c]
push eax
push edx
call fcn.10030920
cmp byte [esp + 0x2b], 0
jns 0x10061fb7
push dword [esp + 0x20]
call fcn.100c1c31
add esp, 4
movzx eax, byte [esp + 0x37]
test al, al
jns 0x10061fca
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
jmp 0x10061fd1
and eax, 0x7f
lea ecx, [esp + 0x2c]
lea ebx, [esp + 0x20]
push eax
push ecx
push ebx
call fcn.10094f40
add esp, 0xc
mov eax, dword [ebx]
mov dword [esp], eax
mov eax, dword [ebx + 4]
mov dword [esp + 4], eax
mov eax, dword [ebx + 8]
mov dword [esp + 8], eax
cmp byte [esp + 0x37], 0
jns 0x10061da7
push dword [esp + 0x2c]
call fcn.100c1c31
add esp, 4
jmp 0x10061da7
mov eax, dword [esp]
mov dword [ebx + 0x14], eax
mov eax, dword [esp + 4]
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], esi
jmp 0x10061e75