Function at 0x10022b10
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10057bd2
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x10072f40]
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 ebx, ecx
mov dword [ebp - 0x224], ebx
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x248], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x234], esi
mov dword [ebp - 0x228], eax
call fcn.100063f0
mov ecx, eax
test ecx, ecx
je 0x10023625
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
mov dword [ebp - 4], 1
lea eax, [ebp - 0x220]
push esi
push dword [ebp + 0xc]
push str.GetDeviceEditionNew_start___PID_0x_.4x__Ins_0x_x
push eax
call fcn.10021040
add esp, 0xc
lea eax, [ebp - 0x220]
mov ecx, esp
mov dword [ebp - 0x250], esp
push eax
call fcn.10011400
mov byte [ebp - 4], 2
lea edi, [ebx + 0x210]
mov eax, dword [edi]
mov dword [ebp - 0x254], edi
mov byte [ebp - 4], 1
mov ecx, edi
call dword [eax + 8]
lea esi, [ebx + 0x1a4]
push esi
mov dword [ebp - 0x258], esi
call sub.MSVCP140.dll__Mtx_lock
add esp, 4
test eax, eax
jne 0x1002362f
mov byte [ebp - 4], 3
mov ebx, dword [ebp + 0xc]
movzx eax, bl
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, bh
xor ecx, eax
movzx eax, byte [ebp + 0xe]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [ebp + 0xf]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [ebp - 0x224]
add ecx, 0x178
mov dword [ebp - 0x22c], ecx
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.1000b050
cmp dword [eax + 4], 0
je 0x10022d31
mov ecx, dword [ebp - 0x22c]
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.1000bdb0
lea ecx, [ebp - 0xa8]
mov eax, dword [eax]
add eax, 0x10
push eax
call fcn.10012a10
mov byte [ebp - 4], 4
cmp byte [ebp - 0x54], 1
jne 0x10022cfb
mov ecx, dword [ebp - 0x234]
cmp dword [ebp - 0x90], ecx
jne 0x10022cfb
mov eax, dword [ebp - 0x248]
cmp dword [ebp - 0x8c], eax
jne 0x10022cfb
mov eax, dword [ebp - 0x50]
mov edx, dword [ebp - 0x228]
push eax
push ecx
push dword [ebp + 0xc]
mov dword [edx], eax
lea eax, [ebp - 0x220]
push str.GetDeviceEditionNew_store_done____PID_0x_.4x__Ins_0x_x__EID_0x_.2x
push eax
call fcn.10021040
add esp, 0x10
lea eax, [ebp - 0x220]
mov ecx, esp
mov dword [ebp - 0x250], esp
push eax
call fcn.10011400
mov byte [ebp - 4], 5
mov eax, dword [edi]
mov byte [ebp - 4], 4
mov ecx, edi
call dword [eax + 8]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xa8]
call fcn.100170c0
mov ebx, 1
jmp 0x100235d3
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x2c]
call fcn.10002cb0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x48]
call fcn.10002cb0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x6c]
call fcn.10002c20
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x84]
call fcn.10002cb0
mov ebx, dword [ebp + 0xc]
cmp byte [ebp + 0x20], 1
jne 0x10022d93
mov eax, dword [ebp - 0x224]
mov ecx, dword [eax + 0x30]
mov eax, dword [ecx]
mov dword [ebp - 0x238], eax
cmp eax, ecx
je 0x10022d93
nop dword [eax]
mov ecx, dword [ebp + 8]
cmp dword [eax + 0x18], ecx
jne 0x10022d77
cmp dword [eax + 0x1c], ebx
jne 0x10022d77
mov edx, dword [ebp - 0x234]
cmp dword [eax + 0x28], edx
jne 0x10022d77
mov ecx, dword [ebp - 0x248]
cmp dword [eax + 0x2c], ecx
je 0x10022e1c
lea ecx, [ebp - 0x238]
call fcn.10018a50
mov ecx, dword [ebp - 0x224]
mov eax, dword [ebp - 0x238]
cmp eax, dword [ecx + 0x30]
jne 0x10022d50
push dword [ebp - 0x248]
mov ecx, dword [ebp - 0x224]
xor eax, eax
push dword [ebp - 0x234]
mov dword [ebp - 0x250], eax
call fcn.10021be0
mov ebx, eax
mov dword [ebp - 0x238], ebx
test ebx, ebx
je 0x10023379
push 0
push 0x100730cc
push 0x10073088
push 0
push ebx
call sub.VCRUNTIME140.dll___RTDynamicCast
mov edx, dword [ebp + 0x1c]
mov ecx, eax
add esp, 0x14
test ecx, ecx
je 0x10022e84
test edx, edx
je 0x10022e84
cmp edx, 0xff
je 0x10022e84
mov eax, edx
sub eax, 1
je 0x10022e7f
sub eax, 1
je 0x10022e6e
sub eax, 1
jne 0x10022e84
mov al, 0xe0
mov dword [ebp - 0x24c], 0
mov byte [ecx + 0x14], al
jmp 0x10022e96
mov eax, dword [eax + 0x20]
mov ecx, dword [ebp - 0x228]
push eax
push dword [ebp + 0x1c]
push edx
push ebx
mov dword [ecx], eax
lea eax, [ebp - 0x220]
push str.GetDeviceEditionNew_m_EnumListRazer_done__using_cached_EID___PID_0x_.4x__Ins_0x_x__type_0x_x_EID_0x_.2x
push eax
call fcn.10021040
add esp, 0x14
lea eax, [ebp - 0x220]
mov ecx, esp
mov dword [ebp - 0x250], esp
push eax
call fcn.10011400
mov byte [ebp - 4], 0xa
mov eax, dword [edi]
mov byte [ebp - 4], 3
mov ecx, edi
call dword [eax + 8]
mov ebx, 1
jmp 0x100235d3
mov al, 0x80
mov dword [ebp - 0x24c], 0
mov byte [ecx + 0x14], al
jmp 0x10022e96
xor al, al
mov byte [ecx + 0x14], al
mov dword [ebp - 0x24c], 0
jmp 0x10022e96
mov ebx, dword [ebp - 0x238]
mov eax, dword [ebx]
lea ecx, [ebp - 0x21a]
push ecx
lea ecx, [ebp - 0x219]
push ecx
mov ecx, ebx
cmp edx, 0xff
jne 0x10022eba
call dword [eax + 0x2c]
mov ebx, eax
jmp 0x10022fa5
call dword [eax + 0x14]
mov ebx, eax
test ebx, ebx
jns 0x10023082
mov ecx, dword [ebp - 0x224]
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ecx + 0x1f4]
call fcn.1000b1c0
mov ecx, dword [eax + 8]
cmp byte [ecx + 0xd], 0
jne 0x10022fad
mov eax, dword [ebp + 0xc]
cmp eax, dword [ecx + 0x10]
jb 0x10022fad
mov ecx, dword [ebp - 0x238]
lea edx, [ebp - 0x21a]
push edx
lea edx, [ebp - 0x219]
push edx
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ebx, eax
call fcn.100063f0
test eax, eax
je 0x10023625
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x230], eax
mov byte [ebp - 4], 0xc
movzx eax, byte [ebp - 0x21a]
push ebx
push eax
movzx eax, byte [ebp - 0x219]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x230]
push str.Dock_PID___x_EID___x_layout___x_hr___x
push eax
call fcn.10021040
add esp, 0x14
lea eax, [ebp - 0x230]
mov ecx, esp
mov dword [ebp - 0x25c], esp
push eax
call fcn.10011400
mov byte [ebp - 4], 0xd
mov eax, dword [edi]
mov byte [ebp - 4], 0xc
mov ecx, edi
call dword [eax + 8]
mov byte [ebp - 4], 3
or eax, 0xffffffff
mov edx, dword [ebp - 0x230]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10022fa5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
jns 0x10023082
push ecx
mov edi, esp
mov dword [ebp - 0x260], esp
mov dword [ebp - 0x23c], edi
call fcn.100063f0
test eax, eax
je 0x10023625
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 0xf
mov ecx, edi
push str.GetDeviceEditionNew___want_to_retry
call fcn.10019c40
test al, al
jne 0x10022ff5
push str.GetDeviceEditionNew___want_to_retry
mov ecx, edi
call fcn.10017ef0
mov byte [ebp - 4], 0x10
mov edi, dword [ebp - 0x254]
mov eax, dword [edi]
mov byte [ebp - 4], 3
mov ecx, edi
call dword [eax + 8]
mov ecx, dword [ebp - 0x24c]
mov edx, dword [ebp + 0x1c]
inc ecx
mov dword [ebp - 0x24c], ecx
cmp ecx, 1
jl 0x10022e90
cmp ebx, 0x8000ffff
jne 0x10023049
push dword [ebp - 0x248]
mov ebx, dword [ebp - 0x224]
mov ecx, ebx
push dword [ebp - 0x234]
call fcn.100272b0
jmp 0x10023343
push ecx
mov ecx, esp
mov dword [ebp - 0x23c], esp
push str.GetDeviceEditionNew___failed
call fcn.100114f0
mov byte [ebp - 4], 0x16
mov eax, dword [edi]
mov byte [ebp - 4], 3
mov ecx, edi
call dword [eax + 8]
mov eax, dword [ebp - 0x228]
mov ebx, dword [ebp - 0x224]
mov dword [eax], 0
jmp 0x10023343
mov ebx, dword [ebp + 0xc]
movzx eax, bl
xor eax, 0x811c9dc5
mov edi, dword [ebp - 0x22c]
imul ecx, eax, 0x1000193
movzx eax, bh
xor ecx, eax
movzx eax, byte [ebp + 0xe]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [ebp + 0xf]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, edi
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.1000b050
cmp dword [eax + 4], 0
je 0x1002318e
lea eax, [ebp + 0xc]
mov ecx, edi
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.1000bdb0
lea ecx, [ebp - 0xa8]
mov eax, dword [eax]
add eax, 0x10
push eax
call fcn.10012a10
mov byte [ebp - 4], 0x11
cmp byte [ebp - 0x54], 0
jne 0x10023158
mov eax, dword [ebp - 0x234]
cmp dword [ebp - 0x90], eax
jne 0x10023158
mov eax, dword [ebp - 0x248]
cmp dword [ebp - 0x8c], eax
jne 0x10023158
lea eax, [ebp + 0xc]
mov ecx, edi
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.1000bdb0
mov ecx, edi
mov eax, dword [eax]
mov byte [eax + 0x64], 1
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.1000bdb0
movzx ecx, byte [ebp - 0x219]
mov eax, dword [eax]
mov dword [eax + 0x68], ecx
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x2c]
call fcn.10002cb0
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x48]
call fcn.10002cb0
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x6c]
call fcn.10002c20
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x84]
call fcn.10002cb0
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x224]
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ecx + 0xd0]
call fcn.1000b1c0
mov eax, dword [eax + 8]
cmp byte [eax + 0xd], 0
jne 0x10023322
cmp ebx, dword [eax + 0x10]
jb 0x10023322
mov ebx, dword [ebp - 0x224]
lea edx, [ebp - 0x230]
push edx
push 0x101
xor edi, edi
mov ecx, dword [ebx + 0x250]
push edi
mov dword [ebp - 0x230], edi
push str.HARDWAREDESCRIPTIONSystemBIOS
mov eax, dword [ecx]
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x24c], edi
call dword [eax + 0x40]
test eax, eax
jne 0x1002324f
mov ecx, dword [ebx + 0x250]
lea edx, [ebp - 0x22c]
push edx
lea edx, [ebp - 0x218]
mov dword [ebp - 0x22c], 0x103
push edx
mov eax, dword [ecx]
push edi
push edi
push str.SystemSKU
push dword [ebp - 0x230]
call dword [eax + 0x44]
test eax, eax
jne 0x1002323e
mov edi, dword [ebp - 0x22c]
mov dword [ebp - 0x24c], 1
mov ecx, dword [ebx + 0x250]
push dword [ebp - 0x230]
mov eax, dword [ecx]
call dword [eax + 0x48]
xor eax, eax
mov word [ebp + edi*2 - 0x218], ax
mov cx, word [ebp - 0x202]
cmp dword [ebp - 0x24c], eax
je case.0x1002327a.78
movzx eax, cx
add eax, 0xffffffb3
cmp eax, 0x24
ja case.0x1002327a.78
movzx eax, byte [eax + 0x10023644]
jmp dword [eax*4 + 0x10023638]
mov al, 0x80
mov byte [ebp - 0x219], al
jmp 0x1002329b
mov al, 0x81
mov byte [ebp - 0x219], al
jmp 0x1002329b
mov al, byte [ebp - 0x219]
mov edx, dword [ebp + 0xc]
mov edi, 0x4c
cmp edx, 0x26a
jne 0x100232b1
cmp al, 0x81
je 0x100232bd
jmp 0x100232cc
cmp edx, 0x276
jne 0x100232cc
cmp al, 0x81
jne 0x100232c7
xor al, al
mov byte [ebp - 0x219], al
jmp 0x1002332e
cmp di, cx
je 0x100232d6
mov edi, 0x6c
cmp di, cx
jne 0x100232e0
mov al, 0x81
mov byte [ebp - 0x219], al
jmp 0x1002332e
cmp edx, 0x28a
jne 0x100232fc
mov edi, 0x4c
cmp di, cx
jne 0x100232fc
mov al, 0x82
mov byte [ebp - 0x219], al
jmp 0x1002332e
cmp edx, 0x29f
jne 0x1002330e
mov edx, 0x4e
cmp dx, cx
je 0x10023318
mov edx, 0x6e
cmp dx, cx
jne 0x1002332e
mov al, 0x83
mov byte [ebp - 0x219], al
jmp 0x1002332e
mov al, byte [ebp - 0x219]
mov ebx, dword [ebp - 0x224]
mov ecx, dword [ebp - 0x228]
movzx eax, al
mov dword [ebp - 0x250], 1
mov dword [ecx], eax
mov edi, dword [ebp - 0x238]
push 0
push 0x100730e8
push 0x10073088
push 0
push edi
call sub.VCRUNTIME140.dll___RTDynamicCast
add esp, 0x14
test eax, eax
je 0x1002336b
mov ecx, eax
call fcn.10041290
mov ecx, dword [ebx + 0x250]
push edi
mov eax, dword [ecx]
call dword [eax + 0x58]
jmp 0x1002339b
push ecx
mov ecx, esp
mov dword [ebp - 0x23c], esp
push str.GetDeviceEditionNew___protocol_not_found
call fcn.100114f0
mov byte [ebp - 4], 0x17
mov eax, dword [edi]
mov byte [ebp - 4], 3
mov ecx, edi
call dword [eax + 8]
mov eax, dword [ebp - 0x228]
mov edi, dword [eax]
cmp edi, 0xff
jne 0x100233e3
push ecx
mov ecx, esp
mov dword [ebp - 0x23c], esp
push str.GetDeviceEditionNew___warning_patch_EID___0xFF_to_0x00
call fcn.100114f0
mov byte [ebp - 4], 0x18
mov ebx, dword [ebp - 0x254]
mov eax, dword [ebx]
mov byte [ebp - 4], 3
mov ecx, ebx
call dword [eax + 8]
mov eax, dword [ebp - 0x228]
xor edi, edi
mov dword [eax], 0
jmp 0x100233e9
mov ebx, dword [ebp - 0x254]
cmp dword [ebp + 8], 0x1532
jne 0x10023589
mov eax, edi
test edi, edi
je 0x10023537
lea ecx, [ebp + 0xc]
lea eax, [edi - 1]
push ecx
lea ecx, [ebp - 0x244]
cmp eax, 0x7e
mov eax, dword [ebp - 0x224]
push ecx
ja 0x100234d1
add eax, 0xd8
mov ecx, eax
mov dword [ebp - 0x22c], eax
call fcn.1000b1c0
mov ecx, dword [ebp - 0x23c]
cmp byte [ecx + 0xd], 0
jne 0x100234c8
mov eax, dword [ebp + 0xc]
cmp eax, dword [ecx + 0x10]
jb 0x100234c8
mov eax, dword [ebp - 0x22c]
cmp ecx, dword [eax]
je 0x100234c8
mov edx, dword [ecx + 0x18]
cmp edi, 0xff
jbe 0x1002346a
mov eax, edi
mov edi, dword [ebp - 0x228]
jmp 0x10023484
push edi
push edx
push dword [ecx + 0x14]
call fcn.1004fb20
mov edi, dword [ebp - 0x228]
mov edx, eax
mov ecx, dword [ebp - 0x23c]
mov eax, dword [edi]
cmp edx, dword [ecx + 0x18]
je 0x100234ca
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x220]
push str.GetDeviceEditionNew___Razer_device_PID:0x_.4x__EID_0x_.2x_is_expected__no_need_to_patch
push eax
call fcn.10021040
add esp, 0xc
lea eax, [ebp - 0x220]
mov ecx, esp
mov dword [ebp - 0x23c], esp
push eax
call fcn.10011400
mov byte [ebp - 4], 0x19
mov eax, dword [ebx]
mov byte [ebp - 4], 3
mov ecx, ebx
call dword [eax + 8]
mov eax, dword [edi]
jmp 0x10023537
mov eax, edi
mov ecx, 1
jmp 0x10023539
add eax, 0xe0
mov ecx, eax
mov dword [ebp - 0x22c], eax
call fcn.1000b1c0
mov ecx, dword [ebp - 0x23c]
cmp byte [ecx + 0xd], 0
jne 0x10023589
mov eax, dword [ebp + 0xc]
cmp eax, dword [ecx + 0x10]
jb 0x10023589
mov edx, dword [ebp - 0x22c]
mov eax, edi
cmp ecx, dword [edx]
je 0x10023537
mov edx, dword [ecx + 0x18]
cmp edi, 0xff
jbe 0x10023518
jmp 0x10023532
push edi
push edx
push dword [ecx + 0x14]
call fcn.1004fb20
mov ecx, dword [ebp - 0x23c]
mov edx, eax
mov eax, dword [ebp - 0x228]
mov eax, dword [eax]
cmp edx, dword [ecx + 0x18]
jne 0x1002353f
xor ecx, ecx
mov edi, eax
test ecx, ecx
je 0x10023589
mov edi, dword [ebp - 0x228]
lea eax, [ebp - 0x220]
push dword [edi]
push dword [ebp + 0xc]
push str.GetDeviceEditionNew___warning_for_Razer_device_PID:0x_.4x__patch_EID_0x_.2x_to_0x00
push eax
call fcn.10021040
add esp, 0xc
lea eax, [ebp - 0x220]
mov ecx, esp
mov dword [ebp - 0x23c], esp
push eax
call fcn.10011400
mov byte [ebp - 4], 0x1a
mov eax, dword [ebx]
mov byte [ebp - 4], 3
mov ecx, ebx
call dword [eax + 8]
mov dword [edi], 0
xor edi, edi
push edi
push dword [ebp + 0x1c]
lea eax, [ebp - 0x220]
push dword [ebp - 0x234]
push dword [ebp + 0xc]
push str.GetDeviceEditionNew_done____PID_0x_.4x__Ins_0x_x__type_0x_x_EID_0x_.2x
push eax
call fcn.10021040
add esp, 0x14
lea eax, [ebp - 0x220]
mov ecx, esp
mov dword [ebp - 0x23c], esp
push eax
call fcn.10011400
mov byte [ebp - 4], 0x1b
mov eax, dword [ebx]
mov byte [ebp - 4], 3
mov ecx, ebx
call dword [eax + 8]
mov ebx, dword [ebp - 0x250]
mov byte [ebp - 4], 1
push esi
call sub.MSVCP140.dll__Mtx_unlock
add esp, 4
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x10023605
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
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.1005078e
mov esp, ebp
pop ebp
ret 0x1c
push 0x80004005
call fcn.10003510
push eax
call sub.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_
nop dword [eax]
mov esi, dword [edx]
add dl, byte [eax]
xor dword [edx], 0x32951002
add dl, byte [eax]
add byte [edx], al
add al, byte [edx]
add dword [edx], eax
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add al, byte [edx]
add byte [edx], al
add al, byte [edx]
add esp, ecx
int3