Function at 0x40c720
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x423d38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4cc
mov ecx, dword [esp + 0x4dc]
push ebx
push ebp
push esi
push edi
push 0x42a990
call fcn.00413ead
push eax
call fcn.0041a731
xor ebp, ebp
add esp, 8
cmp eax, ebp
mov dword [esp + 0x60], eax
je 0x40cfa6
sub esp, 8
mov ecx, esp
mov dword [esp + 0x18], esp
push str.HKR___Driver_Name__0__TBUPDD_
call fcn.00413e2e
mov ecx, 0x432438
call fcn.0040ec20
mov al, byte [0x432bc9]
test al, al
je 0x40c852
push str.___InfInstall__0x10001_01_00_00_00
lea ecx, [esp + 0x58]
call fcn.00413e2e
push 0x4326b4
lea ecx, [esp + 0x40]
mov dword [esp + 0x4e8], ebp
call fcn.00413e2e
mov bl, 1
push str.HKR__Parameters_
lea ecx, [esp + 0x50]
mov byte [esp + 0x4e8], bl
call fcn.00413e2e
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x44]
push ecx
push edx
mov ecx, eax
mov byte [esp + 0x4ec], 2
call fcn.004140d9
sub esp, 8
lea edx, [esp + 0x5c]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
push ecx
mov ecx, eax
mov byte [esp + 0x4f4], 3
call fcn.004140d9
mov ecx, 0x432438
call fcn.0040ec20
lea ecx, [esp + 0x44]
mov byte [esp + 0x4e4], 2
call fcn.00413e8c
lea ecx, [esp + 0x4c]
mov byte [esp + 0x4e4], bl
call fcn.00413e8c
lea ecx, [esp + 0x3c]
mov byte [esp + 0x4e4], 0
call fcn.00413e8c
lea ecx, [esp + 0x54]
mov dword [esp + 0x4e4], 0xffffffff
call fcn.00413e8c
lea ecx, [esp + 0x24]
call fcn.00413de8
lea ecx, [esp + 0x1c]
mov dword [esp + 0x4e4], 4
call fcn.00413de8
mov byte [esp + 0x4e4], 5
xor esi, esi
mov bl, 0xf
mov edi, dword [esp + 0x60]
lea eax, [esp + 0xdc]
push edi
push 0x400
push eax
call fcn.0041a91f
mov al, byte [edi + 0xc]
add esp, 0xc
test al, 0x10
jne 0x40cf78
lea ecx, [esp + 0xdc]
inc esi
push 0x42b97c
push ecx
mov dword [esp + 0x18], esi
call fcn.0041a750
add esp, 8
test eax, eax
je 0x40c8d6
lea edx, [esp + 0xdc]
push 0x42b97c
push edx
call fcn.0041a750
add esp, 8
mov byte [eax], 0
lea eax, [esp + 0xdc]
push 0x42b978
push eax
call fcn.0041a750
add esp, 8
test eax, eax
je 0x40c907
lea ecx, [esp + 0xdc]
push 0x42b978
push ecx
call fcn.0041a750
add esp, 8
mov byte [eax], 0
mov al, byte [esp + 0xdc]
cmp al, 0x5b
jne 0x40ca83
lea edx, [esp + 0xdc]
push 0x42b07c
push edx
call fcn.0041a750
add esp, 8
test eax, eax
je 0x40c949
lea eax, [esp + 0xdc]
push 0x42b07c
push eax
call fcn.0041a750
add esp, 8
mov byte [eax], 0
jmp 0x40c962
mov edx, dword [esp + 0x4ec]
lea ecx, [esp + 0xdc]
push esi
push ecx
push edx
call fcn.0040cfc0
add esp, 0xc
call fcn.0040bb50
test al, al
je 0x40c9c7
mov edi, str.HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesTBUPDD
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0xdd]
push ecx
push str.HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesTBUPDD
push eax
call fcn.0041a840
add esp, 0xc
test eax, eax
jne 0x40c9c7
push 0x42b938
lea ecx, [esp + 0x28]
call fcn.00413ed9
mov edi, str._HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesTBUPDD_
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ecx, [esp + ecx + 0xdc]
push ecx
lea ecx, [esp + 0x20]
call fcn.00413ed9
jmp 0x40c87b
mov edi, str.HKEY_LOCAL_MACHINE
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xdd]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.HKEY_LOCAL_MACHINE
push edx
call fcn.0041a840
add esp, 0xc
test eax, eax
jne 0x40ca23
push str.HKLM
lea ecx, [esp + 0x28]
call fcn.00413ed9
mov edi, str._HKEY_LOCAL_MACHINE_
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + ecx + 0xdc]
lea ecx, [esp + 0x1c]
push eax
call fcn.00413ed9
jmp 0x40c87b
mov edi, str.HKEY_CURRENT_USER
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0xe1]
push str.HKEY_CURRENT_USER
push ecx
call fcn.0041a840
add esp, 0xc
test eax, eax
jne 0x40c87b
push str.HKCU
lea ecx, [esp + 0x28]
call fcn.00413ed9
mov edi, str._HKEY_CURRENT_USER_
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + ecx + 0xdc]
lea ecx, [esp + 0x1c]
push edx
call fcn.00413ed9
jmp 0x40c87b
cmp al, 0x22
jne 0x40cf0a
push 0x42b890
lea ecx, [esp + 0x78]
call fcn.00413e2e
push 0x42b88c
lea ecx, [esp + 0x88]
mov byte [esp + 0x4e8], 6
call fcn.00413e2e
lea eax, [esp + 0x84]
lea ecx, [esp + 0xb4]
push eax
push ecx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x4ec], 7
call fcn.004140d9
lea edx, [esp + 0x1c]
lea ecx, [esp + 0xac]
push edx
push ecx
mov ecx, eax
mov byte [esp + 0x4ec], 8
call fcn.004140d9
lea edx, [esp + 0x74]
lea ecx, [esp + 0x14]
push edx
push ecx
mov ecx, eax
mov byte [esp + 0x4ec], 9
call fcn.004140d9
lea ecx, [esp + 0xac]
mov byte [esp + 0x4e4], 0xe
call fcn.00413e8c
lea ecx, [esp + 0xb4]
mov byte [esp + 0x4e4], 0xd
call fcn.00413e8c
lea ecx, [esp + 0x84]
mov byte [esp + 0x4e4], 0xc
call fcn.00413e8c
lea ecx, [esp + 0x74]
mov byte [esp + 0x4e4], 0xb
call fcn.00413e8c
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], ebp
sub esp, 8
mov byte [esp + 0x4ec], bl
mov ecx, esp
mov dword [esp + 0x5c], esp
push 0x42a61c
call fcn.00413e2e
sub esp, 8
lea edx, [esp + 0xec]
mov ecx, esp
mov dword [esp + 0x4c], esp
push edx
mov byte [esp + 0x4f8], 0x10
call fcn.00413e2e
lea eax, [esp + 0x3c]
mov byte [esp + 0x4f4], bl
push eax
call fcn.00415816
mov eax, dword [esp + 0x44]
add esp, 0x14
cmp eax, 2
jl 0x40cea3
jle 0x40cbe5
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0xdc]
push 0x42a61c
push edx
lea esi, [ecx + 8]
call fcn.0041a750
add esp, 8
inc eax
mov ecx, esi
push eax
call fcn.00413ed9
push 0x42b244
lea ecx, [esp + 0x80]
call fcn.00413e2e
lea eax, [esp + 0x7c]
lea ecx, [esp + 0xbc]
push eax
push ecx
mov ecx, dword [esp + 0x34]
mov byte [esp + 0x4ec], 0x11
call fcn.004140d9
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x4e8], 0x12
call fcn.00413fec
lea ecx, [esp + 0xbc]
mov byte [esp + 0x4e4], 0x11
call fcn.00413e8c
lea ecx, [esp + 0x7c]
mov byte [esp + 0x4e4], bl
call fcn.00413e8c
lea edx, [esp + 0xdc]
push str.dword:
push edx
call fcn.0041a750
add esp, 8
test eax, eax
je 0x40cd8f
push str.0x10001
lea ecx, [esp + 0x70]
call fcn.00413e2e
lea eax, [esp + 0x6c]
lea ecx, [esp + 0x14]
push eax
mov byte [esp + 0x4e8], 0x13
call fcn.00413fec
lea ecx, [esp + 0x6c]
mov byte [esp + 0x4e4], bl
call fcn.00413e8c
lea ecx, [esp + 0x5c]
lea edx, [esp + 0xdc]
push ecx
push 0x42aaec
push str.dword:
push edx
call fcn.0041a750
add esp, 8
add eax, 7
push eax
call fcn.0041aa48
add esp, 0xc
lea esi, [esp + 0x5c]
mov edi, 4
xor eax, eax
lea ecx, [esp + 0xcc]
mov al, byte [esi]
push eax
push str._2.2x
push ecx
call fcn.00419bfc
add esp, 0xc
lea edx, [esp + 0xcc]
lea ecx, [esp + 0x8c]
push edx
call fcn.00413e2e
push 0x42b244
lea ecx, [esp + 0xc8]
mov byte [esp + 0x4e8], 0x14
call fcn.00413e2e
lea ecx, [esp + 0x8c]
lea edx, [esp + 0x94]
push ecx
push edx
mov ecx, eax
mov byte [esp + 0x4ec], 0x15
call fcn.004140d9
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x4e8], 0x16
call fcn.00413fec
lea ecx, [esp + 0x94]
mov byte [esp + 0x4e4], 0x15
call fcn.00413e8c
lea ecx, [esp + 0xc4]
mov byte [esp + 0x4e4], 0x14
call fcn.00413e8c
lea ecx, [esp + 0x8c]
mov byte [esp + 0x4e4], bl
call fcn.00413e8c
inc esi
dec edi
jne 0x40cccf
jmp 0x40ce84
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x64]
add eax, 8
push eax
call fcn.00413e74
push 0x42a310
lea ecx, [esp + 0x48]
mov byte [esp + 0x4e8], 0x17
call fcn.00413e2e
push 0x42b870
lea ecx, [esp + 0x50]
mov byte [esp + 0x4e8], 0x18
call fcn.00413e2e
lea ecx, [esp + 0x44]
lea edx, [esp + 0x4c]
push ecx
lea eax, [esp + 0x68]
push edx
push eax
mov byte [esp + 0x4f0], 0x19
call fcn.00412f81
add esp, 0xc
lea ecx, [esp + 0x4c]
mov byte [esp + 0x4e4], 0x18
call fcn.00413e8c
lea ecx, [esp + 0x44]
mov byte [esp + 0x4e4], 0x17
call fcn.00413e8c
push 0x42b86c
lea ecx, [esp + 0xa8]
call fcn.00413e2e
lea ecx, [esp + 0x64]
lea edx, [esp + 0x9c]
push ecx
push edx
mov ecx, eax
mov byte [esp + 0x4ec], 0x1a
call fcn.004140d9
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x4e8], 0x1b
call fcn.00413fec
lea ecx, [esp + 0x9c]
mov byte [esp + 0x4e4], 0x1a
call fcn.00413e8c
lea ecx, [esp + 0xa4]
mov byte [esp + 0x4e4], 0x17
call fcn.00413e8c
lea ecx, [esp + 0x64]
mov byte [esp + 0x4e4], bl
call fcn.00413e8c
sub esp, 8
lea eax, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x44], esp
push eax
call fcn.00413e74
mov ecx, 0x432438
call fcn.0040ec20
jmp 0x40cebc
mov edx, dword [esp + 0x4ec]
lea ecx, [esp + 0xdc]
push esi
push ecx
push edx
call fcn.0040cfc0
add esp, 0xc
mov esi, dword [esp + 0x2c]
mov byte [esp + 0x4e4], 0xb
cmp esi, ebp
je 0x40cef0
mov eax, dword [esp + 0x30]
cmp eax, ebp
je 0x40cee7
lea edi, [eax]
mov ecx, esi
call fcn.00413e8c
add esi, 8
dec edi
jne 0x40ced6
mov esi, dword [esp + 0x2c]
push esi
call fcn.00419f48
add esp, 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x4e4], 5
call fcn.00413e8c
mov esi, dword [esp + 0x10]
jmp 0x40c87b
lea edi, [esp + 0xdc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40c87b
push 7
lea eax, [esp + 0xe0]
push str.regedit
push eax
call fcn.00422e00
add esp, 0xc
test eax, eax
je 0x40c87b
movsx cx, byte [esp + 0xdc]
push ecx
call fcn.0041ac45
add esp, 4
test eax, eax
jne 0x40c87b
mov eax, dword [esp + 0x4ec]
lea edx, [esp + 0xdc]
push esi
push edx
push eax
call fcn.0040cfc0
add esp, 0xc
jmp 0x40c87b
push edi
call fcn.0041a683
add esp, 4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4e4], 4
call fcn.00413e8c
lea ecx, [esp + 0x24]
mov dword [esp + 0x4e4], 0xffffffff
call fcn.00413e8c
mov ecx, dword [esp + 0x4dc]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x4d8
ret