Function at 0x4329e0
Capabilities:
Link many functions at runtime
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x2dc
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x2f8]
xor ebx, ebx
mov dword [esp + 0x44], 1
mov dword [esp + 0x14], ebx
mov eax, dword [edi]
mov dword [esp + 0x1c], ebx
cmp eax, ebx
mov dword [esp + 0x3c], 5
mov dword [esp + 0x38], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
je 0x432a37
mov ecx, dword [eax + 0x80]
cmp ecx, ebx
je 0x432a33
mov eax, ecx
mov ecx, dword [eax + 0x80]
cmp ecx, ebx
jne 0x432a27
mov dword [esp + 0x28], eax
push str.Setupapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
cmp ebp, ebx
mov dword [esp + 0x2c], ebp
je 0x432a93
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CM_Get_Sibling
push ebp
call esi
push str.CM_Get_Device_IDA
push ebp
mov dword [0x484cb8], eax
call esi
push str.CM_Get_Parent
push ebp
mov dword [0x484cbc], eax
call esi
push str.CM_Get_Child
push ebp
mov dword [0x484cb4], eax
call esi
push str.CM_Get_DevNode_Status
push ebp
mov dword [0x484cb0], eax
call esi
mov dword [0x484cc0], eax
cmp dword [esp + 0x2f0], ebx
je 0x43354f
cmp edi, ebx
je 0x43354f
push 6
push ebx
push ebx
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x18], esi
je 0x433537
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x10c]
mov dword [esp + 0x48], ebx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10c]
mov dword [esp + 0x10c], 0x1c
push eax
push ebx
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
cmp eax, ebx
je 0x432c73
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x14]
push ecx
push edx
lea eax, [esp + 0x114]
push 1
push eax
push esi
call fcn.00431d60
add esp, 0x14
test eax, eax
je 0x432c52
mov ecx, dword [esp + 0x14]
push ecx
push str._n__s__n
push 1
push 1
call fcn.004048e0
mov eax, dword [esp + 0x304]
add esp, 0x10
cmp eax, ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x30], ebx
jbe 0x432c52
mov edx, dword [esp + 0x2f0]
add edx, 8
mov dword [esp + 0x20], edx
jmp 0x432b61
mov ebp, dword [esp + 0x2c]
xor ebx, ebx
cmp dword [esp + 0x54], ebx
jne 0x432c52
cmp dword [esp + 0x2fc], ebx
je 0x432c25
mov eax, dword [esp + 0x30]
mov edx, 1
mov ecx, eax
and ecx, 7
shl edx, cl
mov ecx, dword [esp + 0x2fc]
shr eax, 3
mov al, byte [eax + ecx]
test al, dl
je 0x432c25
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
push ecx
push edx
push eax
call fcn.00431e60
add esp, 0xc
mov dword [esp + 0x54], eax
test eax, eax
je 0x432c25
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x3c]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x14]
push ecx
push edx
lea eax, [esp + 0x114]
push 0xc
push eax
push ebp
call fcn.00431d60
mov esi, eax
add esp, 0x14
test esi, esi
je 0x432bf5
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x432bfd
push 0xfa
call ebx
dec edi
test esi, esi
jne 0x432cac
test edi, edi
jne 0x432bca
mov edx, dword [esp + 0x14]
mov dword [esp + 0x3c], edi
push edx
push str.Found_our_device_in_system_but_couldnt_get_Friendly_name_for:__s_n
push 0
push 1
push 2
call fcn.004058b0
add esp, 0x14
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x2f4]
mov esi, dword [esp + 0x18]
inc eax
add edx, 0x48
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], edx
jb 0x432b5b
mov ebp, dword [esp + 0x2c]
xor ebx, ebx
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x10c]
inc eax
push ecx
push eax
push esi
mov dword [esp + 0x54], eax
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
cmp eax, ebx
jne 0x432af9
cmp dword [esp + 0x1c], ebx
je 0x432c8c
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
test eax, eax
jne 0x43354f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetupDiDestroyDeviceInfoList_Failed_with_Err:__d__n
jmp 0x433543
push 0x84
mov dword [esp + 0x40], edi
mov dword [esp + 0x48], 0
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [esp + 0x4c], ebx
je 0x432ea9
mov ecx, 0x21
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov eax, ebx
mov ecx, 5
mov dword [eax], 3
add eax, 0x18
dec ecx
jne 0x432ce6
mov ebp, dword [esp + 0x20]
xor eax, eax
mov ecx, dword [ebp - 8]
mov dword [ebx + 0x78], ecx
mov edx, dword [ebp - 4]
mov dword [ebx + 0x7c], edx
mov edi, dword [esp + 0x14]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
call dword [sym.imp.MSVCRT.dll_malloc]
mov edx, eax
or ecx, 0xffffffff
mov dword [ebx + 0x1c], edx
mov edi, dword [esp + 0x18]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
call dword [sym.imp.MSVCRT.dll_malloc]
mov edx, eax
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
mov dword [ebx + 0x20], edx
lea ebp, [ebx + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebp
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [esp + 0x24]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x118]
push ecx
push edx
call fcn.00432370
mov eax, dword [esp + 0x40]
add esp, 0x14
test eax, eax
je 0x432e02
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1ec]
push eax
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x124]
lea eax, [esp + 0x1f0]
push 0x100
push eax
push ecx
call dword [0x484cbc]
lea edi, [esp + 0x1ec]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call dword [sym.imp.MSVCRT.dll_malloc]
mov edx, eax
lea edi, [esp + 0x1f0]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
mov dword [ebx + 0x24], edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x120]
xor esi, esi
push esi
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x40]
push edx
push eax
mov dword [esp + 0x48], esi
mov dword [esp + 0x34], esi
call dword [0x484cc0]
test eax, eax
jne 0x432e4f
mov eax, dword [esp + 0x38]
test ah, 4
je 0x432e48
mov ecx, dword [esp + 0x24]
sub ecx, 0x16
neg ecx
sbb ecx, ecx
and ecx, 2
add ecx, 2
mov dword [ebp], ecx
jmp 0x432e4f
mov dword [ebp], 1
mov eax, dword [ebp]
cmp eax, 1
je 0x432e73
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [ebx + 0x1c]
push edx
push eax
push str._s_device_state_has_problem:_CM_Node_status:__d__Internal_Status:__d_n
push esi
push 1
push 1
call fcn.004058b0
add esp, 0x1c
mov eax, dword [esp + 0x2f8]
cmp dword [eax], esi
jne 0x432e82
mov dword [eax], ebx
jmp 0x432e8c
mov ecx, dword [esp + 0x28]
mov dword [ecx + 0x80], ebx
mov edx, dword [ebp]
mov eax, dword [ebx + 0x20]
push edx
push eax
push str.HWID:__s__Status:__d_n
push 1
push 1
mov dword [esp + 0x3c], ebx
call fcn.004048e0
add esp, 0x14
xor ecx, ecx
mov edx, dword [str.mi_00]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x6c], edx
mov dword [esp + 0x5c], ecx
xor edx, edx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x73], edx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x77], edx
mov dword [esp + 0x68], ecx
mov cl, byte [0x47a8f6]
mov byte [esp + 0x72], cl
mov cx, word [0x47a8ec]
mov word [esp + 0x80], cx
xor ecx, ecx
mov dword [esp + 0x8d], ecx
mov byte [esp + 0x7b], dl
mov dl, byte [0x47a8ee]
mov dword [esp + 0x91], ecx
mov dword [esp + 0x95], ecx
mov byte [esp + 0x82], dl
mov edx, dword [str.mi_03]
mov word [esp + 0x99], cx
mov byte [esp + 0x9b], cl
mov cx, word [0x47a8e4]
mov dword [esp + 0x9c], edx
mov dl, byte [0x47a8e6]
mov word [esp + 0xa0], cx
xor ecx, ecx
mov byte [esp + 0xa2], dl
mov edx, dword [str.mi_02]
mov dword [esp + 0xa3], ecx
mov dword [esp + 0xac], edx
mov dl, byte [0x47a8de]
mov dword [esp + 0xa7], ecx
mov byte [esp + 0xab], cl
mov cx, word [0x47a8dc]
mov byte [esp + 0xb2], dl
mov edx, dword [str.dev0]
mov ax, word [0x47a8f4]
mov word [esp + 0xb0], cx
xor ecx, ecx
mov dword [esp + 0xbc], edx
mov dword [esp + 0xb3], ecx
xor edx, edx
mov dword [esp + 0xb7], ecx
mov dword [esp + 0xc1], edx
mov byte [esp + 0xbb], cl
mov cl, byte [0x47a8d4]
mov dword [esp + 0xc5], edx
mov word [esp + 0x70], ax
mov eax, dword [str.mi_01]
mov word [esp + 0xc9], dx
mov byte [esp + 0xc0], cl
mov ecx, dword [str.dev1]
mov byte [esp + 0xcb], dl
mov dl, byte [0x47a8cc]
mov dword [esp + 0x7c], eax
mov dword [esp + 0xcc], ecx
xor eax, eax
mov byte [esp + 0xd0], dl
xor ecx, ecx
xor edx, edx
mov dword [esp + 0xdd], edx
mov dword [esp + 0x83], eax
mov dword [esp + 0xd1], ecx
mov dword [esp + 0xe1], edx
mov dword [esp + 0x87], eax
mov dword [esp + 0xd5], ecx
mov dword [esp + 0xe5], edx
mov byte [esp + 0x8b], al
mov al, byte [0x4845b8]
mov word [esp + 0xd9], cx
mov word [esp + 0xe9], dx
mov byte [esp + 0xdb], cl
mov byte [esp + 0x8c], al
mov byte [esp + 0xdc], al
mov byte [esp + 0xeb], dl
mov byte [esp + 0xec], al
mov dword [esp + 0xed], ecx
mov dword [esp + 0xf1], ecx
mov dword [esp + 0xfd], edx
mov dword [esp + 0xf5], ecx
mov dword [esp + 0x101], edx
mov word [esp + 0xf9], cx
mov dword [esp + 0x105], edx
mov byte [esp + 0xfb], cl
mov ecx, dword [esp + 0x2c]
mov word [esp + 0x109], dx
mov byte [esp + 0xfc], al
test ecx, ecx
mov byte [esp + 0x10b], dl
je 0x433397
mov ecx, dword [esp + 0x120]
push edx
lea eax, [esp + 0x148]
push edx
mov edx, dword [esp + 0x20]
push eax
push ecx
push edx
call fcn.00431f60
add esp, 0x14
test eax, eax
je 0x433392
mov edx, dword [esp + 0x158]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1ec]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1ec]
push 0x100
lea ecx, [esp + 0x12c]
push eax
mov eax, dword [esp + 0x20]
push ecx
push edx
push eax
call fcn.00432220
mov ecx, dword [esp + 0x150]
mov edx, eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x64], ecx
add esp, 0x14
cmp dword [eax - 8], 8
jne 0x43317c
mov edi, str.mi_04
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0x9c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test edx, edx
je 0x43331d
mov ebx, dword [sym.imp.MSVCRT.dll__mbsstr]
mov ebp, 1
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
lea eax, [esp + 0x130]
push ebp
push eax
push ecx
call fcn.00431d60
add esp, 0x14
test eax, eax
mov eax, dword [esp + 0x14]
je 0x4332c6
test eax, eax
je 0x4332c6
push eax
call dword [sym.imp.MSVCRT.dll__mbslwr]
mov edx, eax
lea edi, [esp + 0x70]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
mov dword [esp + 0x14], edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x433214
lea eax, [esp + 0x6c]
push eax
push edx
call ebx
add esp, 8
test eax, eax
je 0x433210
mov ecx, 7
lea esi, [esp + 0x128]
lea edi, [esp + 0x160]
mov dword [esp + 0x58], ebp
rep movsd dword es:[edi], dword [esi]
jmp 0x4332d9
mov edx, dword [esp + 0x14]
lea edi, [esp + 0x9c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x43325b
lea ecx, [esp + 0x9c]
push ecx
push edx
call ebx
add esp, 8
test eax, eax
je 0x433257
mov ecx, 7
lea esi, [esp + 0x128]
lea edi, [esp + 0x1b4]
mov dword [esp + 0x64], ebp
rep movsd dword es:[edi], dword [esi]
jmp 0x4332d9
mov edx, dword [esp + 0x14]
lea edi, [esp + 0xac]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x43329f
lea eax, [esp + 0xac]
push eax
push edx
call ebx
add esp, 8
test eax, eax
je 0x43329b
mov ecx, 7
lea esi, [esp + 0x128]
lea edi, [esp + 0x1d0]
mov dword [esp + 0x68], ebp
rep movsd dword es:[edi], dword [esi]
jmp 0x4332d9
mov edx, dword [esp + 0x14]
lea edi, [esp + 0x6c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4332d9
lea ecx, [esp + 0xbc]
push ecx
push edx
call ebx
add esp, 8
test eax, eax
je 0x4332d9
jmp 0x4331f2
push eax
push str.Found_our_device_in_system_but_couldnt_get_hardware_ID_for:__s_n
push 0
push ebp
push 2
call fcn.004058b0
add esp, 0x14
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1ec]
lea edx, [esp + 0x1ec]
rep stosd dword es:[edi], eax
push 0x100
lea eax, [esp + 0x12c]
push edx
mov edx, dword [esp + 0x58]
lea ecx, [esp + 0x58]
push eax
mov eax, dword [esp + 0x24]
push ecx
push edx
push eax
call fcn.004320b0
add esp, 0x18
test eax, eax
jne 0x43318f
mov ebp, dword [esp + 0x4c]
lea ecx, [esp + 0x160]
lea edx, [esp + 0x58]
xor ebx, ebx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x40], edx
mov eax, dword [esp + 0x40]
cmp dword [eax], 1
jne 0x43335d
mov esi, dword [esp + 0x34]
push ebp
sub esp, 0x1c
mov ecx, 7
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x38]
push ecx
call fcn.00432730
add esp, 0x24
mov edx, dword [ebp]
push edx
push ebx
push str.Port_enum__d_Status:__d_n
push 1
push 1
call fcn.004048e0
mov esi, dword [esp + 0x54]
mov edx, dword [esp + 0x48]
add esp, 0x14
inc ebx
add esi, 4
add edx, 0x1c
add ebp, 0x18
cmp ebx, 5
mov dword [esp + 0x40], esi
mov dword [esp + 0x34], edx
jl 0x433336
mov al, byte [0x4845b8]
mov ebx, dword [esp + 0x4c]
test ebx, ebx
je 0x43351c
mov byte [esp + 0x13], al
add ebx, 0x10
mov ebp, 4
mov eax, dword [ebx + 4]
test eax, eax
jne 0x4333f6
lea edi, [esp + 0x13]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edx, eax
test edx, edx
mov dword [ebx + 4], edx
je 0x4333f6
lea edi, [esp + 0x13]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp dword [ebx], 0
jne 0x43343a
lea edi, [esp + 0x13]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edx, eax
test edx, edx
mov dword [ebx], edx
je 0x43343a
lea edi, [esp + 0x13]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx - 0xc]
test eax, eax
jne 0x433482
lea edi, [esp + 0x13]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call dword [sym.imp.MSVCRT.dll_malloc]
mov edx, eax
add esp, 4
test edx, edx
mov dword [ebx - 0xc], edx
je 0x433482
lea edi, [esp + 0x13]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx - 8]
test eax, eax
jne 0x4334ca
lea edi, [esp + 0x13]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call dword [sym.imp.MSVCRT.dll_malloc]
mov edx, eax
add esp, 4
test edx, edx
mov dword [ebx - 8], edx
je 0x4334ca
lea edi, [esp + 0x13]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx - 4]
test eax, eax
jne 0x433512
lea edi, [esp + 0x13]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call dword [sym.imp.MSVCRT.dll_malloc]
mov edx, eax
add esp, 4
test edx, edx
mov dword [ebx - 4], edx
je 0x433512
lea edi, [esp + 0x13]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add ebx, 0x18
dec ebp
jne 0x4333af
mov eax, dword [esp + 0x58]
test eax, eax
jne 0x432c25
mov ecx, dword [esp + 0x14]
push ecx
push str.Failed_to_locate_associated_Modem_device_for:__s_n
jmp 0x432c17
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetupDiGetClassDevs_Failed_with_Err:__d__n
push 1
push 1
call fcn.004048e0
add esp, 0x10
cmp ebp, ebx
je 0x43355a
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ax, word [esp + 0x44]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2dc
ret