Function at 0x4033e0
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x434b56
mov eax, dword fs:[0]
push eax
mov eax, 0x6100
call fcn.00420a20
mov eax, dword [0x4455e0]
xor eax, esp
mov dword [esp + 0x60f8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4455e0]
xor eax, esp
push eax
lea eax, [esp + 0x6114]
mov dword fs:[0], eax
mov eax, dword [esp + 0x6124]
mov eax, dword [eax]
sub eax, 0x10
push eax
mov dword [esp + 0x30], ecx
mov byte [esp + 0x1b], 0
call fcn.00401b40
lea esi, [eax + 0x10]
add esp, 4
mov dword [esp + 0x18], esi
xor ebp, ebp
mov dword [esp + 0x611c], ebp
mov edi, dword [esi - 0xc]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x40346f
push edi
lea ecx, [esp + 0x1c]
call fcn.00401800
mov esi, dword [esp + 0x18]
lea edx, [edi + 1]
push edx
push esi
call fcn.0041f3ad
add esp, 8
cmp edi, ebp
jl 0x403850
cmp edi, dword [esi - 8]
jg 0x403850
mov dword [esi - 0xc], edi
mov word [esi + edi*2], bp
mov esi, dword [esi - 0xc]
add esi, 0xfffffffc
push esi
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x20]
call fcn.00403d40
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x6120], 1
call fcn.00401bb0
mov byte [esp + 0x611c], 0
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4034e3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x18]
mov eax, dword [ebx - 0xc]
lea ecx, [eax + eax]
push ecx
call fcn.004040a2
mov edi, eax
add esp, 4
cmp edi, ebp
mov dword [esp + 0x24], edi
jne 0x403553
lea eax, [ebx - 0x10]
mov dword [esp + 0x611c], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403527
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x6114]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x60f8]
xor ecx, esp
call fcn.0041f0f4
add esp, 0x610c
ret 4
mov esi, dword [ebx - 0xc]
mov eax, dword [ebx - 8]
mov ecx, 1
sub ecx, dword [ebx - 4]
sub eax, esi
or eax, ecx
jge 0x403575
push esi
lea ecx, [esp + 0x1c]
call fcn.00401800
mov ebx, dword [esp + 0x18]
lea ecx, [esi + esi]
push ecx
push ebx
push edi
call fcn.00426f10
mov edx, dword [0x43bb94]
mov ecx, dword [0x43bb9c]
mov eax, dword [0x43bb98]
mov dword [esp + 0x40], edx
mov edx, dword [0x43bba0]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], edx
add esp, 0xc
lea edx, [esp + 0x44]
lea ecx, [esp + 0x34]
mov dword [esp + 0x38], eax
call fcn.00403090
cmp dword [esp + 0x44], ebp
mov dword [esp + 0x20], ebp
jbe 0x4037e0
mov ebp, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [esp + 0x48]
mov dword [esp + 0x1c], eax
call fcn.00404ac8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x403760
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov edx, dword [esp + 0x1c]
mov edi, eax
mov eax, 0x2a
mov ecx, str._usbvia_root_hub
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x403618
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x403600
test eax, eax
je 0x40367d
movzx esi, byte [edx]
movzx ebx, byte [ecx]
sub esi, ebx
jne 0x403667
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x403679
movzx esi, byte [edx]
movzx ebx, byte [ecx]
sub esi, ebx
jne 0x403667
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x403679
movzx esi, byte [edx]
movzx ebx, byte [ecx]
sub esi, ebx
jne 0x403667
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x403679
movzx esi, byte [edx]
movzx ecx, byte [ecx]
sub esi, ecx
je 0x403679
test esi, esi
mov ebx, dword [esp + 0x18]
mov eax, 1
jg 0x40367f
or eax, 0xffffffff
jmp 0x40367f
mov ebx, dword [esp + 0x18]
xor eax, eax
test eax, eax
je 0x403697
mov eax, edi
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x403732
mov ecx, dword [esp + 0x1c]
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40376a
push str.CreateFile_OK
call ebp
mov eax, dword [ebx - 0xc]
push 0
lea edx, [esp + 0x34]
push edx
push 1
lea ecx, [esp + 0x23]
push ecx
lea edx, [eax + eax]
mov eax, dword [esp + 0x34]
push edx
push eax
push 0x116
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x4036fd
push str.DeviceIoControl_fail_n
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x403708
cmp byte [esp + 0x17], 1
je 0x4037ac
push str.DeviceIoControl_OK_____________n
call ebp
add dword [esp + 0x20], 1
add dword [esp + 0x1c], 0x204
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40373e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add dword [esp + 0x1c], 0x204
add eax, 1
cmp eax, dword [esp + 0x44]
mov dword [esp + 0x20], eax
jb 0x4035d3
jmp 0x4037e0
push 0x80004005
call fcn.004017b0
push str.CreateFile_FAIL
call ebp
mov eax, edi
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40378c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov dword [esp + 0x611c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x40351b
push str.DeviceIoControl_OK_n
call ebp
movzx ecx, byte [esp + 0x17]
mov edx, dword [esp + 0x2c]
push esi
mov dword [edx], ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4037e0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0040409d
add esp, 4
test ebx, ebx
jne 0x4037f5
xor eax, eax
jmp 0x403811
mov eax, ebx
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403800
sub eax, edx
sar eax, 1
js 0x403850
cmp eax, dword [ebx - 8]
jg 0x403850
mov dword [ebx - 0xc], eax
mov word [ebx + eax*2], 0
lea eax, [ebx - 0x10]
mov dword [esp + 0x611c], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403846
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x403529
push 0x80070057
call fcn.004017b0
int3