Function at 0x421b70
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x34
push ebx
push ebp
mov ebp, dword [esp + 0x44]
push esi
push edi
mov ebx, ecx
mov edi, edx
add edi, 0xf
sar edi, 4
add ebx, 0xf
sar ebx, 4
mov ecx, edi
imul ecx, ebx
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], ecx
mov byte [esp + 0x4c], al
mov dword [ebp + 0x94], eax
cmp dword [ebp + 4], eax
jne 0x421bd8
lea esi, [esp + 0x1c]
call fcn.0042ebe0
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x421bd1
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x10]
mov dword [ebp + 4], eax
mov eax, dword [ebp + 4]
mov esi, dword [esp + 0x48]
cmp eax, 1
ja 0x421c0a
push eax
push str.SliceArgumentValidationFixedSliceMode____uiSliceNum__d__you_set_for_SM_FIXEDSLCNUM_SLICE__now_turn_to_SM_SINGLE_SLICE_type_
mov ebx, 4
mov edi, esi
call fcn.00421650
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
add esp, 8
mov byte [esp + 0x4c], 1
cmp ecx, 0x30
jg 0x421c33
mov ecx, dword [ebp + 4]
push ecx
push str.SliceArgumentValidationFixedSliceMode____uiSliceNum__d__you_set_for_SM_FIXEDSLCNUM_SLICE__now_turn_to_SM_SINGLE_SLICE_type_as_CountMbNum_less_than_MIN_NUM_MB_PER_SLICE_
mov ebx, 4
mov edi, esi
call fcn.00421650
add esp, 8
mov dword [ebp + 4], 1
jmp 0x421d16
cmp byte [esp + 0x4c], 0
je 0x421c46
mov dword [ebp + 4], 1
jmp 0x421d16
cmp dword [ebp + 4], 0x23
jbe 0x421c75
push 0x23
push str.SliceArgumentValidationFixedSliceMode____uiSliceNum_exceed_MAX_SLICES_NUM__So_setting_slice_num_eqaul_to_MAX_SLICES_NUM__d__
mov ebx, 2
mov edi, esi
mov dword [ebp + 4], 0x23
call fcn.00421650
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
add esp, 8
cmp dword [esp + 0x50], 0xffffffff
je 0x421cec
push edi
lea edi, [ebp + 4]
mov ecx, ebx
call fcn.004363c0
add esp, 4
test al, al
jne 0x421ca9
mov edx, dword [edi]
push edx
push str.SliceArgumentValidationFixedSliceMode____unsupported_setting_with_Resolution_and_uiSliceNum_combination_under_RC_on__So_uiSliceNum_is_changed_to__d_
mov ebx, 2
mov edi, esi
call fcn.00421650
mov ebx, dword [esp + 0x1c]
add esp, 8
cmp dword [ebp + 4], 1
lea edi, [ebp + 4]
jbe 0x421cca
mov eax, dword [esp + 0x18]
push ebp
push eax
mov eax, ebx
call fcn.00436420
add esp, 8
test al, al
jne 0x421d97
mov ecx, dword [edi]
push ecx
push str.SliceArgumentValidationFixedSliceMode____unsupported_setting_with_Resolution_and_uiSliceNum___d__combination__under_RC_on__Consider_setting_single_slice_with_this_resolution_
mov ebx, 1
mov edi, esi
call fcn.00421650
add esp, 8
pop edi
pop esi
pop ebp
lea eax, [ebx + 1]
pop ebx
add esp, 0x34
ret
mov eax, ebp
call fcn.004362b0
test al, al
jne 0x421d97
mov edx, dword [ebp + 8]
push edx
push str.SliceArgumentValidationFixedSliceMode____invalid_uiSliceMbNum___d__settings__now_turn_to_SM_SINGLE_SLICE_type
mov ebx, 1
mov edi, esi
call fcn.00421650
add esp, 8
mov dword [ebp + 4], ebx
xor eax, eax
mov dword [ebp], 0
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], eax
mov dword [ebp + 0x14], eax
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x1c], eax
mov dword [ebp + 0x20], eax
mov dword [ebp + 0x24], eax
mov dword [ebp + 0x28], eax
mov dword [ebp + 0x2c], eax
mov dword [ebp + 0x30], eax
mov dword [ebp + 0x34], eax
mov dword [ebp + 0x38], eax
mov dword [ebp + 0x3c], eax
mov dword [ebp + 0x40], eax
mov dword [ebp + 0x44], eax
mov dword [ebp + 0x48], eax
mov dword [ebp + 0x4c], eax
mov dword [ebp + 0x50], eax
mov dword [ebp + 0x54], eax
mov dword [ebp + 0x58], eax
mov dword [ebp + 0x5c], eax
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x64], eax
mov dword [ebp + 0x68], eax
mov dword [ebp + 0x6c], eax
mov dword [ebp + 0x70], eax
mov dword [ebp + 0x74], eax
mov dword [ebp + 0x78], eax
mov dword [ebp + 0x7c], eax
mov dword [ebp + 0x80], eax
mov dword [ebp + 0x84], eax
mov dword [ebp + 0x88], eax
mov dword [ebp + 0x8c], eax
mov dword [ebp + 0x90], eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x34
ret