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

Disassembly:
sub esp, 0x5c
mov eax, dword [0x598b80]
xor eax, esp
mov dword [esp + 0x58], eax
mov edx, dword [esp + 0x64]
push ebx
push esi
mov esi, dword [esp + 0x74]
xor ebx, ebx
push edi
mov edi, dword [esp + 0x6c]
mov dword [esp + 0x14], edx
cmp byte [edi + 0x38], bl
je 0x49360c
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.00515f8b
add esp, 0x5c
ret
push ebp
test edx, edx
je 0x493b8d
mov eax, dword [edx + 0x3c]
mov ebx, dword [edi + 4]
cmp byte [eax], 1
je 0x493650
push dword [edi + 0x40]
push str.parent_for_device__s_is_not_a_hub
push str.init_device
push 2
push ebx
call fcn.00486eb0
add esp, 0x14
mov eax, 0xfffffffb
pop ebp
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.00515f8b
add esp, 0x5c
ret
mov cl, byte [edx + 0xc]
mov byte [esp + 0x14], cl
test cl, cl
jne 0x493804
mov ebp, esi
mov dword [esp + 0x1c], 0
nop dword [eax]
push 0
push ebp
lea eax, [esp + 0x28]
push eax
call dword [0x59962c]
test eax, eax
jne 0x49369c
mov ebp, dword [esp + 0x20]
push ebp
push ebx
call fcn.00486e30
add esp, 8
mov dword [esp + 0x1c], eax
test eax, eax
je 0x493670
mov esi, ebp
jmp 0x4936a0
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x18]
je 0x4936d3
push str.program_assertion_failed___first_ancestor_is_not_parent
push str.init_device
push 1
push ebx
call fcn.00486eb0
add esp, 0x10
mov eax, 0xfffffffb
pop ebp
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.00515f8b
add esp, 0x5c
ret
push eax
call fcn.00486950
mov cl, byte [esp + 0x14]
mov byte [esp + 0x10], 1
mov byte [esp + 0x14], cl
push 0
push esi
lea eax, [esp + 0x28]
push eax
call dword [0x59962c]
test eax, eax
jne 0x4937ce
mov esi, dword [esp + 0x20]
push esi
push ebx
call fcn.00486e30
add esp, 8
test eax, eax
je 0x4936e6
mov cl, byte [eax + 0xc]
push eax
test cl, cl
jne 0x4937ab
call fcn.00486950
mov al, byte [esp + 0x10]
mov cl, byte [esp + 0x14]
inc al
mov byte [esp + 0x10], al
test cl, cl
je 0x4936e2
mov edx, dword [esp + 0x18]
push 0
push 0
push 3
push 0
mov byte [edi + 0xc], cl
mov cl, byte [esp + 0x88]
push 2
mov byte [edi + 0xd], cl
mov dword [edi + 8], edx
push 0x40000000
mov byte [edi + 0x3b], al
push dword [edx + 0x44]
call dword [sym.imp.kernel32.dll_CreateFileA]
mov ebp, eax
mov dword [esp + 0x1c], ebp
cmp ebp, 0xffffffff
jne 0x49380e
push 0
call fcn.0048a9c0
mov ecx, dword [esp + 0x1c]
push eax
push dword [ecx + 0x44]
push str.could_not_open_hub__s:__s
push str.init_device
push 2
push ebx
call fcn.00486eb0
add esp, 0x1c
mov eax, 0xfffffffd
pop ebp
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.00515f8b
add esp, 0x5c
ret
mov byte [esp + 0x18], cl
mov cl, byte [esp + 0x14]
add cl, byte [eax + 0x3b]
mov byte [esp + 0x14], cl
call fcn.00486950
mov al, byte [esp + 0x10]
mov cl, byte [esp + 0x14]
inc al
jmp 0x493731
movzx eax, byte [esp + 0x10]
push eax
push dword [edi + 0x40]
push str.ancestor_for_device__s_not_found_at_depth__u
push str.init_device
push 2
push ebx
call fcn.00486eb0
add esp, 0x18
mov eax, 0xfffffffc
pop ebp
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.00515f8b
add esp, 0x5c
ret
mov al, byte [edx + 0x3b]
inc al
jmp 0x493735
movzx eax, byte [esp + 0x78]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], eax
lea eax, [edi + 0x3a]
mov dword [esp + 0x20], 0x14
push 0
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x34]
push eax
push 0x23
lea eax, [esp + 0x40]
push eax
push 0x23
push eax
push 0x220448
push ebp
call dword [sym.imp.kernel32.dll_DeviceIoControl]
test eax, eax
je 0x493b4e
cmp dword [esp + 0x53], 0
je 0x493b17
cmp byte [esp + 0x38], 0x12
jne 0x49392b
cmp byte [esp + 0x39], 1
jne 0x49392b
movups xmm0, xmmword [esp + 0x38]
movzx eax, word [esp + 0x48]
lea ebp, [edi + 0x28]
lea esi, [edi + 0x2a]
movups xmmword [edi + 0x20], xmm0
mov word [edi + 0x30], ax
movzx ecx, word [edi + 0x22]
mov eax, ecx
mov byte [esp + 0x14], cl
movzx ecx, word [ebp]
shr eax, 8
mov byte [esp + 0x15], al
movzx eax, word [esp + 0x14]
mov word [edi + 0x22], ax
mov eax, ecx
shr eax, 8
mov byte [esp + 0x11], al
mov byte [esp + 0x10], cl
movzx ecx, word [esi]
movzx eax, word [esp + 0x10]
mov word [ebp], ax
mov eax, ecx
shr eax, 8
mov byte [esp + 0x25], al
mov byte [esp + 0x24], cl
movzx ecx, word [edi + 0x2c]
movzx eax, word [esp + 0x24]
mov word [esi], ax
mov eax, ecx
shr eax, 8
mov byte [esp + 0x19], al
mov byte [esp + 0x18], cl
movzx eax, word [esp + 0x18]
mov ecx, dword [esp + 0x28]
mov word [edi + 0x2c], ax
mov al, byte [esp + 0x4a]
mov byte [ecx], al
test al, al
jne 0x49393b
movzx eax, byte [edi + 0x31]
push eax
movzx eax, word [esi]
push eax
movzx eax, word [ebp]
push eax
push str.0x_x:0x_x_found__u_configurations__not_configured_
push str.init_device
push 4
push ebx
call fcn.00486eb0
add esp, 0x1c
push 1
push 0x32
call dword [sym.imp.kernel32.dll_SleepEx]
jmp 0x49393b
push 1
push 0x32
call dword [sym.imp.kernel32.dll_SleepEx]
lea esi, [edi + 0x2a]
lea ebp, [edi + 0x28]
mov eax, dword [esp + 0x28]
mov cl, byte [eax]
test cl, cl
jne 0x493955
sub dword [esp + 0x20], 1
js 0x493955
mov ebp, dword [esp + 0x1c]
jmp 0x493826
cmp byte [esp + 0x38], 0x12
jne 0x493adc
cmp byte [esp + 0x39], 1
jne 0x493adc
movzx edx, byte [edi + 0x31]
test cl, cl
jne 0x49399b
movzx eax, word [esi]
push edx
push eax
movzx eax, word [ebp]
push eax
push str.0x_x:0x_x_found__u_configurations_but_device_isnt_configured__forcing_current_configuration_to_1
push str.init_device
push 3
push ebx
call fcn.00486eb0
mov ecx, dword [esp + 0x44]
add esp, 0x1c
mov byte [ecx], 1
jmp 0x4939b5
movzx eax, cl
push eax
push edx
push str.found__u_configurations__current_config:__u_
push str.init_device
push 4
push ebx
call fcn.00486eb0
add esp, 0x18
mov esi, dword [esp + 0x1c]
push esi
push edi
call fcn.00492840
add esp, 8
cmp dword [0x5994a0], 6
jl 0x493a45
mov eax, dword [esp + 0x2c]
or dword [esp + 0x60], 4
push 0
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x34]
push eax
push 0x10
lea eax, [esp + 0x64]
mov dword [esp + 0x68], 0x10
push eax
push 0x10
push eax
push 0x22045c
push esi
call dword [sym.imp.kernel32.dll_DeviceIoControl]
test eax, eax
jne 0x493a23
push eax
call fcn.0048a9c0
push eax
push dword [edi + 0x40]
push str.could_not_get_node_connection_information__V2__for_device__s:__s
push str.init_device
push 2
push ebx
call fcn.00486eb0
add esp, 0x1c
jmp 0x493a45
mov eax, dword [esp + 0x64]
test al, 4
je 0x493a32
mov byte [esp + 0x4b], 4
jmp 0x493a45
test al, 1
mov ecx, 3
movzx eax, byte [esp + 0x4b]
cmovne eax, ecx
mov byte [esp + 0x4b], al
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, 0xff
cmp word [esp + 0x4d], ax
jbe 0x493a6d
push str.program_assertion_failed___device_address_overflow
push str.init_device
push 1
push ebx
call fcn.00486eb0
add esp, 0x10
mov al, byte [esp + 0x4d]
mov byte [edi + 0xe], al
movzx eax, byte [esp + 0x4b]
cmp eax, 4
ja case.default.0x493a7e
jmp dword [eax*4 + 0x493bec]
mov dword [edi + 0x10], 1
jmp 0x493b9a
mov dword [edi + 0x10], 2
jmp 0x493b9a
mov dword [edi + 0x10], 3
jmp 0x493b9a
mov dword [edi + 0x10], 4
jmp 0x493b9a
mov dword [edi + 0x10], 5
jmp 0x493b9a
push eax
push str.unknown_device_speed__u
push str.init_device
push 2
push ebx
call fcn.00486eb0
add esp, 0x14
jmp 0x493b9a
push dword [edi + 0x40]
push str.device__s_has_invalid_descriptor_
push str.init_device
push 1
push ebx
call fcn.00486eb0
mov esi, dword [esp + 0x30]
add esp, 0x14
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop ebp
pop edi
pop esi
mov eax, 0xffffff9d
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.00515f8b
add esp, 0x5c
ret
push dword [edi + 0x40]
push str.device__s_is_no_longer_connected_
push str.init_device
push 1
push ebx
call fcn.00486eb0
add esp, 0x14
push ebp
call dword [sym.imp.kernel32.dll_CloseHandle]
pop ebp
pop edi
pop esi
mov eax, 0xfffffffc
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.00515f8b
add esp, 0x5c
ret
push 0
call fcn.0048a9c0
push eax
push dword [edi + 0x40]
push str.could_not_get_node_connection_information_for_device__s:__s
push str.init_device
push 2
push ebx
call fcn.00486eb0
add esp, 0x1c
push ebp
call dword [sym.imp.kernel32.dll_CloseHandle]
pop ebp
pop edi
pop esi
mov eax, 0xfffffffc
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.00515f8b
add esp, 0x5c
ret
push edi
call fcn.00493f70
add esp, 4
test eax, eax
jne 0x493bd9
push edi
call fcn.00486f00
add esp, 4
test eax, eax
jne 0x493bd9
push dword [edi + 0x40]
mov byte [edi + 0x38], 1
movzx eax, byte [edi + 0xd]
push eax
movzx eax, byte [edi + 0x3b]
push eax
movzx eax, byte [edi + 0xe]
push eax
movzx eax, byte [edi + 0xc]
push eax
push str._bus:__u__addr:__u__depth:__u__port:__u_:__s
push str.init_device
push 4
push ebx
call fcn.00486eb0
add esp, 0x24
xor eax, eax
mov ecx, dword [esp + 0x68]
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00515f8b
add esp, 0x5c
ret