Function at 0x40ba80
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43d695
mov eax, dword fs:[0]
push eax
sub esp, 0x40c
mov eax, dword [0x44e018]
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 eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x398], eax
mov dword [ebp - 0x384], ebx
mov dword [ebp - 4], ebx
mov ecx, dword [eax + 0x178]
mov dword [ebp - 0x390], ebx
mov eax, dword [ecx]
mov eax, dword [eax + 0x78]
lea edx, [ebp - 0x390]
push edx
call eax
cmp eax, ebx
je 0x40bb28
push str.GetISDIDeviceManager2___Failed.
push str.RunEnumDeviceCommand.cpp
push 0x4519f8
mov ecx, 0x44f9d4
call dword [sym.imp.MSVCR100.dll_public:_char_const____thiscall_type_info::_name_internal_method_struct___type_info_node__const]
push eax
lea edx, [ebx + 0x13]
lea ecx, [ebx + 5]
mov eax, 0x451ef0
call fcn.0041f340
add esp, 0xc
cmp dword [ebp + 0x20], 8
jb 0x40bb21
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor al, al
jmp 0x40c301
mov edi, 7
xor ecx, ecx
mov dword [ebp - 0xa0], vtable.CSDIResultString.0
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x8c], ebx
mov word [ebp - 0x9c], cx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x390]
mov edx, dword [ecx]
mov edx, dword [edx + 8]
lea eax, [ebp - 0xa0]
push eax
call edx
lea eax, [ebp - 0x386]
push eax
lea ecx, [ebp - 0x3dc]
push ecx
call fcn.00405790
mov byte [ebp - 4], 2
cmp dword [ebp - 0x88], 8
mov eax, dword [ebp - 0x9c]
jae 0x40bb90
lea eax, [ebp - 0x9c]
xor edx, edx
mov ecx, eax
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x3c], ebx
mov word [ebp - 0x4c], dx
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x40bba1
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp - 0x4c]
call fcn.00404c70
lea ecx, [ebp - 0x3dc]
mov edx, esi
mov byte [ebp - 4], 3
call fcn.00421f90
mov byte [ebp - 4], 2
cmp dword [ebp - 0x38], 8
jb 0x40bbe1
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
push 0x1a
push str.RunEnumDeviceCommand.cpp
lea ecx, [ebp - 0x3dc]
call fcn.0040d230
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x40bc8e
push str.parDictInstalledDevices_is_NULL
push str.RunEnumDeviceCommand.cpp
push 0x4519f8
mov ecx, 0x44f9d4
call dword [sym.imp.MSVCR100.dll_public:_char_const____thiscall_type_info::_name_internal_method_struct___type_info_node__const]
mov edx, 0x1b
push eax
lea ecx, [edx - 0x16]
mov eax, 0x451ef0
call fcn.0041f340
mov eax, dword [ebp - 0x3cc]
add esp, 0xc
cmp eax, ebx
je 0x40bc44
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
lea ecx, [ebp - 0x3d8]
mov dword [ebp - 0x3cc], ebx
mov dword [ebp - 0x3c8], ebx
mov dword [ebp - 0x3c4], ebx
mov dword [ebp - 0x394], ecx
mov edx, ecx
push edx
mov byte [ebp - 4], 4
call fcn.004058b0
mov eax, dword [ebp - 0x3d8]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
lea ecx, [ebp - 0xa0]
call fcn.00404400
jmp 0x40bb0e
xor ecx, ecx
mov dword [ebp - 0x30], vtable.CSDIResultString.0
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x390]
mov edx, dword [ecx]
mov edx, dword [edx + 0x10]
lea eax, [ebp - 0x30]
push eax
call edx
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.00404400
mov dword [ebp - 0x388], esi
lea eax, [ebp - 0x388]
lea esi, [ebp - 0x3a4]
call fcn.004026f0
lea eax, [ebp - 0x388]
lea esi, [ebp - 0x3e8]
call fcn.00402730
mov edi, vtable.CDVMDeviceInfo.0
nop
mov ecx, dword [ebp - 0x39c]
cmp ecx, dword [ebp - 0x3e0]
je 0x40c299
lea edx, [ebp - 0x3a4]
call fcn.00402770
lea edx, [ebp - 0x220]
push edx
mov esi, eax
call fcn.0040edc0
mov dword [ebp - 0x220], edi
mov byte [ebp - 0xc8], bl
mov ebx, esi
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 6
call fcn.0040fd40
lea eax, [ebp - 0x220]
push eax
lea esi, [ebp - 0x30]
call fcn.0040ed40
lea ecx, [ebp + 0xc]
push ecx
mov esi, eax
mov byte [ebp - 4], 7
call fcn.0040d3e0
add esp, 4
lea esi, [ebp - 0x30]
mov bl, al
mov byte [ebp - 4], 6
call fcn.00410fc0
test bl, bl
je 0x40c0d5
lea edx, [ebp - 0x68]
push edx
lea eax, [ebp - 0x220]
push eax
call fcn.0040ecd0
mov edi, 8
mov byte [ebp - 4], 8
cmp dword [eax + 0x14], edi
jb 0x40bd8f
mov eax, dword [eax]
lea ecx, [ebp - 0x4c]
call fcn.00404d60
lea esi, [ebp - 0x68]
mov byte [ebp - 4], 0xa
call fcn.00419390
mov eax, dword [ebp - 0x4c]
cmp dword [ebp - 0x38], edi
jae 0x40bdae
lea eax, [ebp - 0x4c]
mov ecx, dword [ebp - 0x390]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x1c]
call eax
lea eax, [ebp - 0x30]
call fcn.004045a0
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x390]
mov edx, dword [ecx]
mov edx, dword [edx + 0x10]
lea eax, [ebp - 0x30]
push eax
call edx
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x40bde4
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x68]
call fcn.00404d60
cmp dword [eax + 0x10], 0
lea esi, [ebp - 0x68]
sete bl
call fcn.00419390
test bl, bl
jne 0x40c0f7
lea eax, [ebp - 0x386]
push eax
lea ecx, [ebp - 0x414]
push ecx
call fcn.00405790
mov bl, 0xc
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x40be26
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x68]
call fcn.00404d60
lea ecx, [ebp - 0x414]
lea edx, [ebp - 0x68]
mov byte [ebp - 4], 0xd
call fcn.00421f90
lea esi, [ebp - 0x68]
mov byte [ebp - 4], bl
call fcn.00419390
lea esi, [ebp - 0x380]
call fcn.00410c30
lea ebx, [ebp - 0x414]
mov ecx, esi
mov byte [ebp - 4], 0xe
call fcn.0040fd40
mov ebx, dword [ebp - 0x398]
add ebx, 0x218
mov edi, 8
cmp dword [ebx + 0x14], edi
jb 0x40be81
mov eax, dword [ebx]
jmp 0x40be83
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x78]
lea ecx, [ebp - 0x380]
call fcn.0040ecb0
cmp byte [eax], 0
setne al
cmp byte [ebp - 0x78], 0
je 0x40bea8
mov byte [ebp - 0x78], 0
lea ecx, [ebp - 0x380]
test al, al
je 0x40c22b
lea eax, [ebp - 0x70]
call fcn.0040ecb0
mov byte [ebp - 4], 0xf
mov ecx, 1
or dword [ebp - 0x384], ecx
cmp byte [eax], 0
je 0x40c1f1
cmp dword [eax + 4], ecx
je 0x40bf0a
lea eax, [ebp - 0x80]
lea ecx, [ebp - 0x380]
call fcn.0040ecb0
mov dword [ebp - 4], 0x11
or dword [ebp - 0x384], 2
cmp byte [eax], 0
je 0x40c149
cmp dword [eax + 4], 3
je 0x40bf0a
xor al, al
jmp 0x40bf0c
mov al, 1
mov ecx, dword [ebp - 0x384]
test cl, 2
je 0x40bf2a
and ecx, 0xfffffffd
cmp byte [ebp - 0x80], 0
mov dword [ebp - 0x384], ecx
je 0x40bf2a
mov byte [ebp - 0x80], 0
mov dword [ebp - 4], 0xe
test cl, 1
je 0x40bf49
and ecx, 0xfffffffe
cmp byte [ebp - 0x70], 0
mov dword [ebp - 0x384], ecx
je 0x40bf49
mov byte [ebp - 0x70], 0
test al, al
je 0x40bf6f
cmp dword [ebx + 0x14], edi
jb 0x40bf54
mov ebx, dword [ebx]
push ebx
push 0x440b58
push str.ConnectType
push str.Info
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x40c098
mov eax, str.IPV4
lea ecx, [ebp - 0x68]
call fcn.00404d60
lea eax, [ebp - 0x38c]
lea esi, [ebp - 0x380]
mov byte [ebp - 4], 0x13
call fcn.0040eaa0
cmp byte [eax], 0
setne al
cmp byte [ebp - 0x38c], 0
je 0x40bfa7
mov byte [ebp - 0x38c], 0
test al, al
je 0x40bff6
lea eax, [ebp - 0x388]
lea esi, [ebp - 0x380]
call fcn.0040eaa0
mov byte [ebp - 4], 0x14
cmp byte [eax], 0
je 0x40c183
cmp byte [eax + 1], 0
mov eax, str.IPV6
jne 0x40bfd9
mov eax, str.IPV4
lea edx, [ebp - 0x68]
push edx
call fcn.004045d0
mov byte [ebp - 4], 0x13
cmp byte [ebp - 0x388], 0
je 0x40bff6
mov byte [ebp - 0x388], 0
cmp dword [ebx + 0x14], edi
jb 0x40bfff
mov eax, dword [ebx]
jmp 0x40c001
mov eax, ebx
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push eax
push 0x440b9c
push str.ConnectType
push str.Info
call edi
mov ecx, 8
cmp dword [ebx + 0x14], ecx
jb 0x40c027
mov eax, dword [ebx]
jmp 0x40c029
mov eax, ebx
cmp dword [ebp - 0x54], ecx
mov ecx, dword [ebp - 0x68]
jae 0x40c034
lea ecx, [ebp - 0x68]
push eax
push ecx
push str.AddressType
push str.Info
call edi
lea eax, [ebp - 0x380]
push eax
lea esi, [ebp - 0xc0]
call fcn.0040ea20
mov ecx, 8
mov byte [ebp - 4], 0x16
cmp dword [ebx + 0x14], ecx
jb 0x40c064
mov ebx, dword [ebx]
cmp byte [eax], 0
je 0x40c1ba
add eax, 4
cmp dword [eax + 0x14], ecx
jb 0x40c077
mov eax, dword [eax]
push ebx
push eax
push str.Address
push str.Info
call edi
lea esi, [ebp - 0xc0]
call fcn.00410fc0
lea esi, [ebp - 0x68]
call fcn.00419390
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x380]
mov dword [ebp - method.CDVMDeviceInfo.virtual_0], vtable.CDVMDeviceInfo.0
call fcn.0040ee90
lea ecx, [ebp - 0x414]
mov byte [ebp - 4], 0xb
call fcn.004056c0
lea ecx, [ebp - 0x30]
call fcn.00404400
lea esi, [ebp - 0x4c]
call fcn.00419390
mov edi, vtable.CDVMDeviceInfo.0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x220], edi
call fcn.0040ee90
inc dword [ebp - 0x39c]
xor ebx, ebx
jmp 0x40bcf0
lea ecx, [ebp - 0x30]
call fcn.00404400
lea esi, [ebp - 0x4c]
call fcn.00419390
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x220]
mov dword [ebp - method.CDVMDeviceInfo.virtual_0], vtable.CDVMDeviceInfo.0
call fcn.0040ee90
lea ecx, [ebp - 0x3dc]
mov byte [ebp - 4], 1
call fcn.004056c0
lea ecx, [ebp - 0xa0]
call fcn.00404400
lea esi, [ebp + 0xc]
call fcn.00419390
xor al, al
jmp 0x40c301
lea ecx, [ebp - 0x398]
push ecx
lea ecx, [ebp - 0x3a4]
mov dword [ebp - 0x398], str.Attempted_to_access_the_value_of_an_uninitialized_optional_object.
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
mov dword [ebp - method.boost::bad_function_call.virtual_0], vtable.boost::bad_optional_access.0
lea edx, [ebp - 0x3a4]
push edx
mov dword [ebp - 4], 0x12
call fcn.0040fcf0
lea eax, [ebp - 0x398]
push eax
lea ecx, [ebp - 0x3a4]
mov dword [ebp - 0x398], str.Attempted_to_access_the_value_of_an_uninitialized_optional_object.
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
mov dword [ebp - method.boost::bad_function_call.virtual_0], vtable.boost::bad_optional_access.0
lea ecx, [ebp - 0x3a4]
push ecx
mov byte [ebp - 4], 0x15
call fcn.0040fcf0
lea edx, [ebp - 0x394]
push edx
lea ecx, [ebp - 0x3b0]
mov dword [ebp - 0x394], str.Attempted_to_access_the_value_of_an_uninitialized_optional_object.
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
mov dword [ebp - method.boost::bad_function_call.virtual_0], vtable.boost::bad_optional_access.0
lea eax, [ebp - 0x3b0]
push eax
mov byte [ebp - 4], 0x17
call fcn.0040fcf0
lea ecx, [ebp - 0x394]
push ecx
lea ecx, [ebp - 0x3b0]
mov dword [ebp - 0x394], str.Attempted_to_access_the_value_of_an_uninitialized_optional_object.
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
mov dword [ebp - method.boost::bad_function_call.virtual_0], vtable.boost::bad_optional_access.0
lea edx, [ebp - 0x3b0]
push edx
mov dword [ebp - 4], 0x10
call fcn.0040fcf0
mov byte [ebp - 4], 0xc
mov edi, vtable.CDVMDeviceInfo.0
mov dword [ebp - 0x380], edi
call fcn.0040ee90
lea ecx, [ebp - 0x414]
mov byte [ebp - 4], 0xb
call fcn.004056c0
lea ecx, [ebp - 0x30]
call fcn.00404400
lea esi, [ebp - 0x4c]
call fcn.00419390
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x220], edi
call fcn.0040ee90
lea ecx, [ebp - 0x3dc]
mov byte [ebp - 4], 1
call fcn.004056c0
lea ecx, [ebp - 0xa0]
call fcn.00404400
lea esi, [ebp + 0xc]
call fcn.00419390
xor al, al
jmp 0x40c301
mov eax, dword [ebp - 0x3cc]
mov esi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
cmp eax, ebx
je 0x40c2af
push eax
call esi
add esp, 4
lea eax, [ebp - 0x3d8]
mov dword [ebp - 0x3cc], ebx
mov dword [ebp - 0x3c8], ebx
mov dword [ebp - 0x3c4], ebx
mov dword [ebp - 0x394], eax
mov ecx, eax
push ecx
mov byte [ebp - 4], 0x18
call fcn.004058b0
mov edx, dword [ebp - 0x3d8]
push edx
call esi
add esp, 4
lea ecx, [ebp - 0xa0]
call fcn.00404400
cmp dword [ebp + 0x20], 8
jb 0x40c2ff
mov eax, dword [ebp + 0xc]
push eax
call esi
add esp, 4
mov al, 1
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.00438de6
mov esp, ebp
pop ebp
ret 0x20