Function at 0x404915
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44bb68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x2e94
call fcn.0042a920
push edi
mov dword [ebp - 0x2e90], ecx
push str.Inside_CDefPrnNameMgr::Refresh__
call fcn.00401000
add esp, 4
push 0xff
push 0
lea eax, [ebp - 0x2e68]
push eax
call fcn.0042a3a0
add esp, 0xc
lea ecx, [ebp - 0x2d68]
push ecx
push 0x2001f
push 0
mov ecx, dword [ebp - 0x2e90]
add ecx, 8
call fcn.00404560
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x404995
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x467da8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 0x2e90]
add ecx, 0xc
call fcn.00404540
mov ecx, dword [ebp - 0x2e90]
add ecx, 0x34
call fcn.00404540
mov ecx, dword [ebp - 0x2e90]
add ecx, 0x20
call fcn.00404540
mov ecx, dword [ebp - 0x2e90]
add ecx, 0x48
call fcn.00404540
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x2c5c], 0
mov dword [ebp - 0x128], 0x1e
push 0x467a14
lea ecx, [ebp - 0x11c]
call fcn.0043d811
mov dword [ebp - 4], 0
push 0x467a18
lea ecx, [ebp - 0x118]
call fcn.0043d811
mov byte [ebp - 4], 1
push 0x467a1c
lea ecx, [ebp - 0x120]
call fcn.0043d811
mov byte [ebp - 4], 2
push 0x2b2a
push 0
lea edx, [ebp - 0x2c58]
push edx
call fcn.0042a3a0
add esp, 0xc
push pe_nt_image_headers32
push 0
lea eax, [ebp - 0x2d5c]
push eax
call fcn.0042a3a0
add esp, 0xc
mov ecx, 0x467e38
call fcn.00415180
mov ecx, dword [ebp - 0x2e90]
call fcn.00405fd1
call fcn.004045b0
mov dword [ebp - 0x124], eax
push 0xff
lea ecx, [ebp - 0x2e68]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x2d68]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov dword [ebp - 0x2d64], eax
cmp dword [ebp - 0x2d64], 0x103
je 0x404ab6
cmp dword [ebp - 0x2d64], 6
jne 0x404abb
jmp 0x404cf2
mov dword [ebp - 0x128], 0x32
lea ecx, [ebp - 0x2e68]
push ecx
push str.Model_name_:__s
call fcn.00401000
add esp, 8
lea edx, [ebp - 0x2e68]
push edx
lea ecx, [ebp - 0x120]
call fcn.0043d92c
lea eax, [ebp - 0x2e68]
push eax
mov ecx, dword [ebp - 0x2e90]
call fcn.00405d9a
lea ecx, [ebp - 0x128]
push ecx
lea edx, [ebp - 0x2c58]
push edx
lea eax, [ebp - 0x2e68]
push eax
mov ecx, 0x467e38
call fcn.00417427
mov ecx, dword [ebp - 0x128]
push ecx
lea edx, [ebp - 0x2e68]
push edx
push str.Model_name_:__s__count_:__d
call fcn.00401000
add esp, 0xc
mov dword [ebp - 0x2e6c], 0
jmp 0x404b52
mov eax, dword [ebp - 0x2e6c]
add eax, 1
mov dword [ebp - 0x2e6c], eax
mov ecx, dword [ebp - 0x2e6c]
cmp ecx, dword [ebp - 0x128]
jae 0x404cdc
mov edx, dword [ebp - 0x2e6c]
imul edx, edx, 0xdd
lea eax, [ebp + edx - 0x2c58]
push eax
mov ecx, 0x467e38
call fcn.00417f15
lea ecx, [ebp - 0x2d5c]
push ecx
mov ecx, 0x467e38
call fcn.004154a5
test eax, eax
jne 0x404bad
lea edx, [ebp - 0x2d5c]
push edx
push str.IN_CDefPrnNameMgr::Refresh_____GetPortName_failed_and_returned_szPortName_:__s
call fcn.00401000
add esp, 8
jmp 0x404bc1
lea eax, [ebp - 0x2d5c]
push eax
push 0x45ce70
call fcn.00401000
add esp, 8
lea ecx, [ebp - 0x2d5c]
push ecx
lea ecx, [ebp - 0x11c]
call fcn.0043d92c
lea edx, [ebp - 0x2d5c]
push edx
mov ecx, 0x467e38
call fcn.0041566d
test eax, eax
jne 0x404bfe
lea eax, [ebp - 0x2d5c]
push eax
push str.IN_CDefPrnNameMgr::Refresh_____GetDriverName_failed_and_returned_szPortName_:__s
call fcn.00401000
add esp, 8
jmp 0x404c12
lea ecx, [ebp - 0x2d5c]
push ecx
push str.current_szPortName_name_:__s
call fcn.00401000
add esp, 8
lea edx, [ebp - 0x2d5c]
push edx
lea ecx, [ebp - 0x118]
call fcn.0043d92c
mov eax, dword [ebp - 0x124]
add eax, 0x258
push eax
lea ecx, [ebp - 0x118]
call fcn.0043c441
test eax, eax
jl 0x404c54
mov ecx, dword [ebp - 0x2e90]
call fcn.0040605e
cmp eax, 1
jne 0x404c54
jmp 0x404b43
mov ecx, dword [ebp - 0x2e6c]
imul ecx, ecx, 0xdd
lea edx, [ebp + ecx - 0x2c58]
push edx
mov ecx, dword [ebp - 0x2e90]
add ecx, 0xc
call fcn.00406170
lea eax, [ebp - 0x11c]
push eax
mov ecx, dword [ebp - 0x2e90]
add ecx, 0x34
call fcn.00404660
lea ecx, [ebp - 0x118]
push ecx
mov ecx, dword [ebp - 0x2e90]
add ecx, 0x20
call fcn.00404660
lea edx, [ebp - 0x120]
push edx
mov ecx, dword [ebp - 0x2e90]
add ecx, 0x48
call fcn.00404660
mov eax, dword [ebp - 0x120]
push eax
mov ecx, dword [ebp - 0x118]
push ecx
mov edx, dword [ebp - 0x11c]
push edx
push str.Port_name_:__s__Driver_name_:__s__Model_name_:__s
call fcn.00401000
add esp, 0x10
jmp 0x404b43
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, 1
test ecx, ecx
jne 0x404a7e
mov ecx, dword [ebp - 0x2e90]
add ecx, 0xc
call fcn.004045c0
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x114], 0xff
mov byte [ebp - 0x110], 0
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x10f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0x2d60], 0
push str.Haft_of_refresh___
call fcn.00401000
add esp, 4
lea edx, [ebp - 0x114]
push edx
lea eax, [ebp - 0x110]
push eax
push 0
push 0
push 0x45cf5c
mov ecx, dword [ebp - 0x2d68]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405064
lea edx, [ebp - 0x110]
push edx
lea ecx, [ebp - 0x2e70]
call fcn.0043d811
mov byte [ebp - 4], 3
mov dword [ebp - 0x2e74], 0
jmp 0x404d9c
mov eax, dword [ebp - 0x2e74]
add eax, 1
mov dword [ebp - 0x2e74], eax
mov ecx, dword [ebp - 0x2e74]
cmp ecx, dword [ebp - 0x12c]
jge 0x404e55
lea edx, [ebp - 0x110]
push edx
mov eax, dword [ebp - 0x2e74]
push eax
lea ecx, [ebp - 0x2e84]
push ecx
mov ecx, dword [ebp - 0x2e90]
add ecx, 0xc
call fcn.004045e0
mov dword [ebp - 0x2e94], eax
mov edx, dword [ebp - 0x2e94]
mov dword [ebp - 0x2e98], edx
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x2e98]
call fcn.00404620
neg eax
sbb eax, eax
inc eax
mov byte [ebp - 0x2e80], al
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2e84]
call fcn.0043d7a3
mov eax, dword [ebp - 0x2e80]
and eax, 0xff
test eax, eax
je 0x404e50
mov ecx, dword [ebp - 0x2e90]
mov edx, dword [ebp - 0x2e74]
mov dword [ecx + 0x5c], edx
mov dword [ebp - 0x2d60], 1
mov eax, dword [ebp - 0x2e90]
mov dword [eax + 4], 1
push str.bIsCheck_is_checked
call fcn.00401000
add esp, 4
jmp 0x404e55
jmp 0x404d8d
cmp dword [ebp - 0x2d60], 0
jne 0x405050
mov dword [ebp - 0x2e78], 0
cmp dword [ebp - 0x12c], 0
jle 0x404ff4
mov ecx, dword [ebp - 0x2e90]
cmp dword [ecx + 4], 0
je 0x404fc8
mov dword [ebp - 0x2e7c], 0
jmp 0x404ea4
mov edx, dword [ebp - 0x2e7c]
add edx, 1
mov dword [ebp - 0x2e7c], edx
mov ecx, dword [ebp - 0x2e90]
add ecx, 0x34
call fcn.004045c0
cmp dword [ebp - 0x2e7c], eax
jge 0x404f66
mov eax, dword [ebp - 0x2e7c]
push eax
lea ecx, [ebp - 0x2e8c]
push ecx
mov ecx, dword [ebp - 0x2e90]
add ecx, 0x34
call fcn.004045e0
mov dword [ebp - 0x2e9c], eax
mov edx, dword [ebp - 0x2e9c]
mov dword [ebp - 0x2ea0], edx
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x2ea0]
call fcn.00404560
push eax
lea ecx, [ebp - 0x2e70]
call fcn.00404620
neg eax
sbb eax, eax
inc eax
mov byte [ebp - 0x2e88], al
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2e8c]
call fcn.0043d7a3
mov eax, dword [ebp - 0x2e88]
and eax, 0xff
test eax, eax
je 0x404f61
mov dword [ebp - 0x2e78], 1
mov ecx, dword [ebp - 0x2e90]
mov edx, dword [ebp - 0x2e7c]
mov dword [ecx + 0x5c], edx
mov ecx, dword [ebp - 0x2e90]
call fcn.00405177
mov eax, dword [ebp - 0x2e90]
mov dword [eax + 4], 1
jmp 0x404e95
cmp dword [ebp - 0x2e78], 0
jne 0x404fc6
mov ecx, dword [ebp - 0x2e90]
add ecx, 0xc
call fcn.004045c0
mov ecx, dword [ebp - 0x2e90]
cmp dword [ecx + 0x5c], eax
jge 0x404f9c
mov edx, dword [ebp - 0x2e90]
mov eax, dword [ebp - 0x2e90]
mov ecx, dword [eax + 0x5c]
mov dword [edx + 0x5c], ecx
jmp 0x404fae
mov edx, dword [ebp - 0x12c]
sub edx, 1
mov eax, dword [ebp - 0x2e90]
mov dword [eax + 0x5c], edx
mov ecx, dword [ebp - 0x2e90]
call fcn.00405177
mov ecx, dword [ebp - 0x2e90]
mov dword [ecx + 4], 1
jmp 0x404ff2
mov edx, dword [ebp - 0x12c]
sub edx, 1
mov eax, dword [ebp - 0x2e90]
mov dword [eax + 0x5c], edx
mov ecx, dword [ebp - 0x2e90]
call fcn.00405177
mov ecx, dword [ebp - 0x2e90]
mov dword [ecx + 4], 1
jmp 0x405050
mov edx, dword [ebp - 0x2e90]
mov dword [edx + 4], 0
push 0x467da8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2e70]
call fcn.0043d7a3
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x120]
call fcn.0043d7a3
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x118]
call fcn.0043d7a3
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x11c]
call fcn.0043d7a3
jmp 0x405134
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2e70]
call fcn.0043d7a3
jmp 0x4050ec
mov ecx, dword [ebp - 0x2e90]
add ecx, 0xc
call fcn.004045c0
test eax, eax
je 0x4050a2
mov eax, dword [ebp - 0x12c]
sub eax, 1
mov ecx, dword [ebp - 0x2e90]
mov dword [ecx + 0x5c], eax
mov edx, dword [ebp - 0x2e90]
mov dword [edx + 4], 1
mov ecx, dword [ebp - 0x2e90]
call fcn.00405177
jmp 0x4050ec
mov eax, dword [ebp - 0x2e90]
mov dword [eax + 4], 0
push 0x467da8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x120]
call fcn.0043d7a3
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x118]
call fcn.0043d7a3
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x11c]
call fcn.0043d7a3
jmp 0x405134
push 0x467da8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0x2d68]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x120]
call fcn.0043d7a3
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x118]
call fcn.0043d7a3
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x11c]
call fcn.0043d7a3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret