Function at 0x41b051fb
Capabilities:
Get system information on windows

Disassembly:
push 0x3c
push 0x41b053a8
call fcn.41b0288c
push 0xc
pop eax
cmp dword [ebp + 0x10], eax
jb 0x41b0ebf7
mov edx, dword [ebp + 0xc]
cmp dword [edx], 0x46464952
jne 0x41b053a2
cmp dword [edx + 8], 0x45564157
jne 0x41b053a2
mov edi, dword [edx + 4]
mov dword [ebp - 0x24], eax
lea esi, [edx + 0xc]
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x10], edi
jb 0x41b053a2
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp - 0x24]
sub eax, ebx
cmp eax, 8
jb 0x41b053a2
mov ecx, dword [esi + 4]
mov dword [ebp - 0x28], ecx
add eax, 0xfffffff8
cmp ecx, eax
ja 0x41b053a2
cmp dword [esi], 0x20746d66
jne 0x41b0ed86
lea ebx, [esi + 8]
mov edi, ecx
mov dword [ebp - 0x1c], edi
cmp edi, 0xe
jb 0x41b053a2
cmp edi, 0x12
jae 0x41b0ec35
push 0x10
pop eax
cmp edi, eax
jb 0x41b05296
mov dword [ebp - 0x1c], eax
movzx eax, word [ebx + 2]
xor edi, edi
cmp di, ax
je 0x41b053a2
mov eax, dword [ebx + 4]
test eax, eax
je 0x41b053a2
cmp dword [ebx + 8], edi
je 0x41b053a2
xor eax, eax
cmp ax, word [ebx + 0xc]
je 0x41b053a2
mov eax, 0xfffe
cmp ax, word [ebx]
je 0x41b0ecb9
mov eax, dword [ebp - 0x24]
lea eax, [eax + ecx + 8]
lea esi, [esi + ecx + 8]
mov dword [ebp - 0x20], esi
mov edi, dword [ebp + 0x10]
sub edi, eax
cmp edi, 8
jb 0x41b053a2
mov ecx, dword [esi + 4]
add edi, 0xfffffff8
cmp ecx, edi
ja 0x41b053a2
cmp dword [esi], 0x61746164
jne 0x41b0ed74
mov eax, ebx
sub eax, edx
and eax, 3
jne 0x41b0ed2e
mov edi, dword [esi + 4]
add esi, 8
mov dword [ebp + 0xc], edi
mov dword [ebp - 0x20], esi
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp edi, dword [ebp - 0x48]
jbe 0x41b0534a
mov eax, dword [ebp - 0x20]
mov al, byte [eax]
mov byte [ebp + 0x13], al
mov eax, dword [ebp - 0x48]
add dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x48]
sub dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], eax
ja 0x41b05331
cmp dword [ebp + 0xc], 0
je 0x41b05358
mov eax, dword [ebp - 0x20]
mov al, byte [eax]
mov byte [ebp + 0x13], al
mov eax, dword [ebp - 0x1c]
cmp eax, 0x12
ja 0x41b05363
push 0x12
pop eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp + 0x10], eax
test eax, eax
je 0x41b053a2
push dword [ebp - 0x1c]
push ebx
push eax
call sub.ntdll.dll_memcpy
add esp, 0xc
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov dword [eax + 4], edi
mov ecx, dword [ebp + 0x10]
mov dword [eax + 0xc], ecx
xor ecx, ecx
inc ecx
mov dword [eax + 0x10], ecx
and dword [eax + 0x14], 0
mov eax, ecx
call fcn.41b02878
ret 0xc
xor eax, eax
jmp 0x41b0539a
mov eax, dword [0x41b28b68]
cmp eax, 0x41b28b68
je 0x41b053a2
test dword [eax + 0x1c], 0x400000
je 0x41b053a2
cmp byte [eax + 0x19], 3
jb 0x41b053a2
push 0x41b02964
push 0x1c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.41b02941
jmp 0x41b053a2
movzx edi, word [ebx + 0x10]
mov eax, 0x400
cmp di, ax
jae 0x41b053a2
movzx eax, di
add eax, 0x12
cmp eax, ecx
jne 0x41b053a2
movzx eax, word [ebx]
cmp ax, 1
je 0x41b0ec68
cmp ax, 3
jne 0x41b05296
xor eax, eax
cmp ax, di
jne 0x41b053a2
movzx edi, word [ebx + 0xe]
mov eax, edi
and eax, 0x80000007
jns 0x41b0ec85
dec eax
or eax, 0xfffffff8
inc eax
jne 0x41b053a2
movzx eax, word [ebx + 2]
push 2
pop edx
cmp dx, ax
jb 0x41b053a2
movzx eax, ax
imul eax, dword [ebx + 4]
imul eax, edi
shr eax, 3
cmp dword [ebx + 8], eax
jne 0x41b053a2
mov edx, dword [ebp + 0xc]
jmp 0x41b05296
xor eax, eax
cmp dword [ebp - 0x1c], 0x28
jb 0x41b0539a
movzx ecx, word [ebx + 0x12]
cmp ax, cx
je 0x41b053a2
movzx eax, word [ebx + 0xe]
cmp ax, cx
jb 0x41b053a2
lea eax, [ebx + 0x18]
push 4
pop ecx
mov edi, eax
mov esi, 0x41b0eda4
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
je 0x41b0ed02
push 4
pop ecx
mov edi, eax
mov esi, 0x41b0edb4
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x41b0ed20
movzx eax, word [ebx + 0xe]
movzx ecx, ax
movzx eax, word [ebx + 2]
imul ecx, eax
imul ecx, dword [ebx + 4]
shr ecx, 3
cmp dword [ebx + 8], ecx
jne 0x41b053a2
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp - 0x20]
jmp 0x41b052d3
sub ebx, eax
mov dword [ebp + 0x10], ebx
and dword [ebp - 4], 0
push dword [ebp - 0x1c]
add eax, ebx
push eax
push ebx
call dword [sym.imp.ntdll.dll_memmove]
add esp, 0xc
mov dword [ebp - 4], 0xfffffffe
jmp 0x41b05316
lea eax, [eax + ecx + 8]
cmp eax, dword [edx + 4]
jb 0x41b052da
jmp 0x41b053a2
lea eax, [ebx + ecx + 8]
mov dword [ebp - 0x24], eax
cmp eax, edi
jae 0x41b053a2
lea esi, [esi + ecx + 8]
mov dword [ebp - 0x20], esi
jmp 0x41b05244