Function at 0x421c30
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x34
push ebx
push ebp
mov ebp, dword [esp + 0x44]
push esi
push edi
mov edi, ecx
add edi, 0xf
sar edi, 4
add eax, 0xf
sar eax, 4
mov ecx, edi
imul ecx, eax
xor edx, edx
lea ebx, [ebp + 4]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], ecx
mov byte [esp + 0x4c], dl
mov dword [ebp + 0x94], edx
cmp dword [ebx], edx
jne 0x421c97
lea esi, [esp + 0x18]
call fcn.0042ec20
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x421c91
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 [ebx], eax
mov eax, dword [ebx]
mov esi, dword [esp + 0x48]
cmp eax, 1
ja 0x421cc1
push eax
push str.SliceArgumentValidationFixedSliceMode____uiSliceNum__d__you_set_for_SM_FIXEDSLCNUM_SLICE__now_turn_to_SM_SINGLE_SLICE_type_
push 4
mov edi, esi
call fcn.00421640
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov byte [esp + 0x4c], 1
cmp ecx, 0x30
jg 0x421cd5
mov ecx, dword [ebx]
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_
push 4
jmp 0x421d92
cmp byte [esp + 0x4c], 0
jne 0x421d9c
cmp dword [ebx], 0x23
jbe 0x421d06
push 0x23
push str.SliceArgumentValidationFixedSliceMode____uiSliceNum_exceed_MAX_SLICES_NUM__So_setting_slice_num_eqaul_to_MAX_SLICES_NUM__d__
push 2
mov edi, esi
mov dword [ebx], 0x23
call fcn.00421640
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
cmp dword [esp + 0x50], 0xffffffff
je 0x421d74
mov ecx, dword [esp + 0x1c]
push edi
mov edi, ebx
call fcn.00436420
add esp, 4
test al, al
jne 0x421d34
mov edx, dword [ebx]
push edx
push str.SliceArgumentValidationFixedSliceMode____unsupported_setting_with_Resolution_and_uiSliceNum_combination_under_RC_on__So_uiSliceNum_is_changed_to__d_
push 2
mov edi, esi
call fcn.00421640
add esp, 0xc
cmp dword [ebx], 1
jbe 0x421d53
mov eax, dword [esp + 0x14]
push ebp
push eax
mov eax, dword [esp + 0x24]
call fcn.00436480
add esp, 8
test al, al
jne 0x421e23
mov ecx, dword [ebx]
push ecx
push str.SliceArgumentValidationFixedSliceMode____unsupported_setting_with_Resolution_and_uiSliceNum___d__combination__under_RC_on__Consider_setting_single_slice_with_this_resolution_
push 1
mov edi, esi
call fcn.00421640
add esp, 0xc
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x34
ret
push ecx
mov eax, ebp
call fcn.00436310
add esp, 4
test al, al
jne 0x421e23
mov edx, dword [ebp + 8]
push edx
push str.SliceArgumentValidationFixedSliceMode____invalid_uiSliceMbNum___d__settings__now_turn_to_SM_SINGLE_SLICE_type
push 1
mov edi, esi
call fcn.00421640
add esp, 0xc
xor eax, eax
mov dword [ebp], 0
mov dword [ebx], 1
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