Function at 0x401122
Capabilities:
Access peb ldr_data

Disassembly:
jmp 0x4029d0
push 0xffffffffffffffff
push 0x412940
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [esp + 0x30]
push ebx
push edi
push eax
lea ecx, [esp + 0x10]
call fcn.004011f9
xor ebx, ebx
lea ecx, [esp + 0xc]
push ebx
mov dword [esp + 0x30], ebx
call fcn.00401104
push eax
call fcn.00401154
add esp, 8
xor edi, edi
mov dword [esp + 0x38], ebx
call fcn.004011db
cmp eax, 3
jne 0x402a62
mov ecx, 0x41afd0
call fcn.00401118
push eax
push str._sCannot_install_INF_files_from_DriverWizard_on_Win98_Me_n
push 0x41afd0
call fcn.0040104b
add esp, 0xc
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.0040109b
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
call fcn.00401172
test eax, eax
jne 0x402a8f
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.0040109b
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
push esi
lea ecx, [esp + 0x10]
call fcn.00401118
push eax
call fcn.00402d20
mov esi, dword [esp + 0x3c]
add esp, 4
test eax, eax
jne 0x402aef
lea ecx, [esp + 0x1c]
push ecx
call fcn.00401087
add esp, 4
mov ecx, eax
mov byte [esp + 0x30], 1
call fcn.00401118
push eax
push esi
mov ecx, 0x41afd0
call fcn.00401118
push eax
push str._sWarning:_cannot_copy_the_INF_file_for_device__hid:_s_:__s_n
push 0x41afd0
call fcn.0040104b
add esp, 0x14
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], bl
call fcn.0040109b
push esi
call fcn.0040115e
add esp, 4
test eax, eax
je 0x402bab
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x10]
push edx
push 1
call fcn.00401104
push eax
push esi
push ebx
call dword [0x41afc8]
test eax, eax
jne 0x402b48
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe000020b
jne 0x402b61
push esi
mov ecx, 0x41afd0
call fcn.00401118
push eax
push str._sWarning:_the_device__hid:_s__is_not_plugged_in._n
push 0x41afd0
call fcn.0040104b
add esp, 0x10
cmp dword [esp + 0x3c], ebx
je 0x402c33
mov dword [0x41b000], 1
jmp 0x402c33
lea eax, [esp + 0x1c]
push eax
call fcn.00401087
add esp, 4
mov ecx, eax
mov byte [esp + 0x30], 2
call fcn.00401118
push eax
push esi
mov ecx, 0x41afd0
call fcn.00401118
push eax
push str._sError_updating_the_driver__hid:_s__with_the_INF_file:__s_n
push 0x41afd0
call fcn.0040104b
add esp, 0x14
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], bl
call fcn.0040109b
jmp 0x402c38
push ebx
lea ecx, [esp + 0x10]
push ebx
push ecx
call dword [0x41af94]
cmp eax, ebx
je 0x402c02
lea edx, [esp + 0x1c]
push edx
call fcn.00401087
add esp, 4
mov ecx, eax
mov byte [esp + 0x30], 3
call fcn.00401118
push eax
mov ecx, 0x41afd0
call fcn.00401118
push eax
push str._sCannot_locate_top_device:__s_n
push 0x41afd0
call fcn.0040104b
add esp, 0x10
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], bl
call fcn.0040109b
jmp 0x402c38
mov eax, dword [esp + 0xc]
push 1
push eax
call dword [0x41afb8]
cmp eax, ebx
je 0x402c33
push eax
mov ecx, 0x41afd0
call fcn.00401118
push eax
push str._sCannot_reenumerate_device_tree__CR_ERRCODE__d__n
push 0x41afd0
call fcn.0040104b
add esp, 0x10
jmp 0x402c38
mov edi, 1
call fcn.0040113b
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 0xffffffff
call fcn.0040109b
mov ecx, dword [esp + 0x28]
mov eax, edi
pop esi
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret