Function at 0x100043a0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10019b5f
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x1002300c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x14], 0
call fcn.1000ba30
test al, al
jne 0x10004a07
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0x64], 0
sete al
test al, al
je 0x10004a07
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
movq qword [ebp - 0x38], xmm0
mov dword [ebx], 1
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
push dword [esi + 4]
mov dword [ebp - 0x28], 0
call fcn.1000a080
push ecx
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 1
push 0
push eax
mov edx, 0x1001b690
lea ecx, [ebp - 0x28]
call fcn.10001060
mov ebx, dword [ebp - 0x34]
add esp, 0xc
mov esi, dword [ebp - 0x38]
cmp esi, ebx
mov dword [ebp - 0x6c], ebx
sete al
test al, al
jne 0x100044c8
push str.NULL
lea ecx, [ebp - 0x18]
call fcn.10006e80
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x18]
mov edx, eax
mov ecx, dword [esi]
mov di, word [ecx]
cmp di, word [edx]
jne 0x100044b9
test di, di
je 0x100044b5
mov di, word [ecx + 2]
cmp di, word [edx + 2]
jne 0x100044b9
add ecx, 4
add edx, 4
test di, di
jne 0x10004493
xor ecx, ecx
jmp 0x100044be
sbb ecx, ecx
or ecx, 1
test ecx, ecx
je 0x100044cb
mov byte [ebp - 0x65], 0
jmp 0x100044cf
mov eax, dword [ebp - 0x18]
mov byte [ebp - 0x65], 1
or edi, 0xffffffff
test byte [ebp - 0x14], 1
je 0x100044fa
lea ecx, [eax - 0xc]
cmp ecx, 0x10023024
je 0x100044fa
lea ecx, [eax - 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x100044fa
push ecx
call fcn.1000e2ae
add esp, 4
cmp byte [ebp - 0x65], 0
je 0x1000454f
mov eax, dword [ebp - 0x28]
lea ecx, [eax - 0xc]
cmp ecx, 0x10023024
je 0x10004523
add eax, 0xfffffff4
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x10004523
push eax
call fcn.1000e2ae
add esp, 4
test esi, esi
je 0x10004a0d
push dword [ebp - 0x74]
mov edx, ebx
push ecx
mov ecx, esi
call fcn.10001530
mov eax, dword [ebp - 0x30]
add esp, 8
sub eax, esi
sar eax, 2
push eax
push esi
call fcn.100014d0
jmp 0x10004a0d
mov ebx, dword [0x10023034]
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebp - 0x6c]
sub eax, esi
mov byte [ebp - 4], 2
sar eax, 2
mov dword [ebp - 0x2c], eax
dec eax
push 4
lea ecx, [esi + eax*4]
lea eax, [ebp - 0x18]
push eax
call fcn.10006dd0
mov ecx, str.http
mov eax, dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x100045a6
test dx, dx
je 0x100045a2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100045a6
add eax, 4
add ecx, 4
test dx, dx
jne 0x10004580
xor eax, eax
jmp 0x100045ab
sbb eax, eax
or eax, 1
test eax, eax
mov eax, dword [ebp - 0x18]
sete byte [ebp - 0x65]
lea ecx, [eax - 0xc]
cmp ecx, 0x10023024
je 0x100045dc
lea ecx, [eax - 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x100045dc
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff4
push eax
call fcn.1000e2ae
add esp, 4
cmp byte [ebp - 0x65], 0
je 0x1000462c
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x1c]
dec eax
lea eax, [esi + eax*4]
push eax
call fcn.100073f0
mov ebx, dword [ebp - 0x6c]
add ebx, 0xfffffffc
mov dword [ebp - 0x6c], ebx
mov ecx, dword [ebx]
lea eax, [ecx - 0xc]
cmp eax, 0x10023024
je 0x10004623
add ecx, 0xfffffff4
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x10004623
mov eax, dword [ebx]
sub eax, 0xc
push eax
call fcn.1000e2ae
add esp, 4
mov dword [ebp - 0x34], ebx
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x80], ebx
mov eax, dword [0x10023034]
xorps xmm0, xmm0
movq qword [ebp - 0x24], xmm0
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x18], eax
push 0x1001b694
mov byte [ebp - 4], 4
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
push 0x1001b694
test eax, eax
je 0x100046ae
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.SetupUi.dll_public:_static_class_CSetupContext____cdecl_CSetupContext::Instance_void_]
mov ecx, eax
call dword [sym.imp.SetupUi.dll_public:_class_WTL::CString___thiscall_CSetupContext::GetResDllPath_wchar_t_const__]
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call fcn.100073f0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x14]
lea ecx, [eax - 0xc]
cmp ecx, 0x10023024
je 0x100046c2
lea ecx, [eax - 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x100046c2
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff4
push eax
call fcn.1000e2ae
add esp, 4
jmp 0x100046c2
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x1001b694
push eax
lea ecx, [ebp - 0x18]
call fcn.10001790
push dword [ebp - 0x18]
lea ecx, [ebp - 0x24]
call fcn.1000a1d0
mov eax, dword [0x100238f8]
xorps xmm0, xmm0
mov ecx, dword [ebp - 0x20]
mov edx, 0x100238f8
movq qword [ebp - 0x40], xmm0
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x3c], eax
mov eax, ecx
mov dword [ebp - 0x40], ecx
xchg dword [edx], eax
mov eax, dword [ebp - 0x70]
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
add eax, 4
push 0x400
push eax
push 0x5c
push ecx
call esi
mov eax, dword [ebp - 0x70]
push 0x400
add eax, 0x1004
push eax
push 0x4c
push dword [ebp - 0x20]
call esi
mov eax, dword [0x10023034]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x2c], eax
push 0x5a
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 8
call fcn.10009ee0
mov eax, dword [ebp - 0x38]
mov esi, eax
cmp eax, dword [ebp - 0x6c]
jae 0x100047db
mov ebx, dword [ebp - 0x6c]
push esi
lea ecx, [ebp - 0x7c]
call fcn.10006ca0
push 0x1001b7f4
mov edx, eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x78]
call fcn.100071b0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x14]
mov eax, dword [eax]
push eax
push dword [eax - 8]
call fcn.10006d30
mov eax, dword [ebp - 0x78]
lea ecx, [eax - 0xc]
cmp ecx, 0x10023024
je 0x1000479e
lea ecx, [eax - 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x1000479e
mov eax, dword [ebp - 0x78]
add eax, 0xfffffff4
push eax
call fcn.1000e2ae
add esp, 4
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x7c]
lea ecx, [eax - 0xc]
cmp ecx, 0x10023024
je 0x100047cd
lea ecx, [eax - 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x100047cd
mov eax, dword [ebp - 0x7c]
add eax, 0xfffffff4
push eax
call fcn.1000e2ae
add esp, 4
add esi, 4
cmp esi, ebx
jb 0x10004745
mov ebx, dword [ebp - 0x80]
push 0x5b
lea ecx, [ebp - 0x2c]
call fcn.10009ee0
mov esi, dword [ebp - 0x2c]
lea ecx, [ebp - 0x14]
push esi
push dword [esi - 8]
call fcn.10006d30
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x70]
push 0xffffffffffffffff
push edi
add eax, 0x804
push 0x400
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov eax, dword [ebx - 8]
add esp, 0x10
test eax, eax
je 0x1000484e
mov ecx, dword [ebp - 0x84]
push dword [ecx]
lea ecx, [ebp - 0x1c]
push eax
call fcn.10006f10
lea ecx, [ebp - 0x1c]
call fcn.10003440
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x70]
push 0xffffffffffffffff
push ebx
add eax, 0x1804
push 0x400
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
add esp, 0x10
lea eax, [esi - 0xc]
cmp eax, 0x10023024
je 0x10004874
lea ecx, [esi - 0xc]
or esi, 0xffffffff
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x10004877
push ecx
call fcn.1000e2ae
add esp, 4
jmp 0x10004877
or esi, 0xffffffff
lea eax, [edi - 0xc]
cmp eax, 0x10023024
je 0x10004898
add edi, 0xfffffff4
mov eax, esi
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x10004898
push edi
call fcn.1000e2ae
add esp, 4
mov eax, dword [ebp - 0x74]
mov ecx, 0x100238f8
xchg dword [ecx], eax
mov eax, dword [ebp - 0x18]
lea ecx, [eax - 0xc]
cmp ecx, 0x10023024
je 0x100048c7
lea ecx, [eax - 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x100048c7
push ecx
call fcn.1000e2ae
add esp, 4
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x1000492a
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x24]
cmp dword [ecx - 8], 0
je 0x1000492d
cmp dword [ecx - 0xc], 0
lea edx, [ecx - 0xc]
jl 0x10004911
lea eax, [ecx - 0xc]
cmp eax, 0x10023024
je 0x1000492d
mov eax, esi
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x10004909
push edx
call fcn.1000e2ae
add esp, 4
mov ecx, dword [0x10023034]
jmp 0x1000492d
push 0x1001beb4
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x1001beb4
push eax
lea ecx, [ebp - 0x24]
call fcn.10001790
mov ecx, dword [ebp - 0x24]
lea eax, [ecx - 0xc]
cmp eax, 0x10023024
je 0x1000494e
add ecx, 0xfffffff4
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x1000494e
push ecx
call fcn.1000e2ae
add esp, 4
lea eax, [ebx - 0xc]
cmp eax, 0x10023024
je 0x1000496f
add ebx, 0xfffffff4
mov eax, esi
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x1000496f
push ebx
call fcn.1000e2ae
add esp, 4
mov eax, dword [ebp - 0x28]
lea ecx, [eax - 0xc]
cmp ecx, 0x10023024
je 0x10004992
add eax, 0xfffffff4
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x10004992
push eax
call fcn.1000e2ae
add esp, 4
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x10004a0d
push dword [ebp - 0x74]
mov edx, dword [ebp - 0x6c]
push ecx
mov ecx, ebx
call fcn.10001530
mov eax, dword [ebp - 0x30]
add esp, 8
sub eax, ebx
sar eax, 2
cmp eax, 0x3fffffff
jbe 0x100049bf
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
shl eax, 2
cmp eax, 0x1000
jb 0x100049fc
test byte [ebp - 0x38], 0x1f
je 0x100049d5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov eax, dword [ebx - 4]
cmp eax, ebx
jb 0x100049e2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
sub ebx, eax
cmp ebx, 4
jae 0x100049ef
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
cmp ebx, 0x23
jbe 0x100049fa
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov ebx, eax
push ebx
call fcn.1000e26c
add esp, 4
jmp 0x10004a0d
mov dword [ebx], 0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000e271
mov esp, ebp
pop ebp
ret