Function at 0x406820
Capabilities:
Check os version
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4188d0
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x4212d0]
xor eax, esp
mov dword [esp + 0xc8], eax
push ebx
push esi
push edi
mov eax, dword [0x4212d0]
xor eax, esp
push eax
lea eax, [esp + 0xe0]
mov dword fs:[0], eax
xor ebx, ebx
mov eax, 1
mov dword [esp + 0x28], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
mov edi, ecx
mov eax, 0xf
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edx
mov dword [esp + 0x24], str.usb_redirector_customer_module_gui.exe
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], str.usbredirectortechcsrv.exe
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], str.ttechusbd.cat
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], str.ttechusbd.inf
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], str.ttechusbd.sys
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], str.ttechpnptls.sys
mov dword [esp + 0x94], 2
mov dword [esp + 0x98], ebx
mov dword [esp + 0xd4], eax
mov dword [esp + 0xd0], ebx
mov byte [esp + 0xc0], bl
mov dword [esp + 0xe8], ebx
mov dword [esp + 0xb8], eax
mov dword [esp + 0xb4], ebx
mov byte [esp + 0xa4], bl
mov eax, edx
mov byte [esp + 0xe8], 1
lea esi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x406960
sub eax, esi
push eax
push edx
lea ecx, [esp + 0xa8]
call fcn.00403a90
mov eax, dword [edi + 0xd8]
cmp eax, ebx
je 0x406999
push ebx
push ebx
call eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
je 0x406999
push 6
push str._amd64
jmp 0x4069a0
push 4
push str.x86
lea eax, [esp + 0xa8]
call fcn.00402ad0
cmp dword [esp + 0xb8], 0x10
mov eax, dword [esp + 0xa4]
jae 0x4069c4
lea eax, [esp + 0xa4]
mov ecx, edi
call fcn.00402620
mov dword [esp + 0x18], ebx
lea edi, [esp + 0x24]
mov esi, dword [edi]
cmp esi, ebx
je 0x406bb9
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4069e2
sub eax, edx
push eax
push esi
lea ecx, [esp + 0xc4]
call fcn.00403a90
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0xc4]
push eax
lea ecx, [esp + 0xac]
call fcn.004030a0
cmp dword [edi + 4], ebx
je 0x406a85
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0xd8]
cmp eax, ebx
je 0x406a58
push ebx
push ebx
call eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
je 0x406a58
cmp dword [edi + 0x10], ebx
jne 0x406a58
push 6
push str..amd64
lea eax, [esp + 0xc4]
call fcn.00402ad0
cmp dword [edi + 8], ebx
je 0x406a85
push 6
push str.amd64_
jmp 0x406a77
push 4
push str..x86
lea eax, [esp + 0xc4]
call fcn.00402ad0
cmp dword [edi + 8], ebx
je 0x406a85
push 4
push str.x86_
xor eax, eax
lea ecx, [esp + 0xa8]
call fcn.00406ed0
mov eax, dword [edi + 0xc]
sub eax, 1
je 0x406aa4
sub eax, 1
jne 0x406ad9
call fcn.004019c0
test eax, eax
je 0x406ad9
push 4
push str..v10
jmp 0x406acd
call fcn.004019c0
test eax, eax
je 0x406ab6
push 4
push str..v10
jmp 0x406acd
call fcn.00401960
push 3
test eax, eax
je 0x406ac8
push 0x41e6e0
jmp 0x406acd
push 0x41e6e4
lea eax, [esp + 0xc4]
call fcn.00402ad0
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0xd8]
cmp eax, ebx
je 0x406b28
push ebx
push ebx
call eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
je 0x406b28
mov eax, dword [edi + 0x10]
cmp eax, ebx
je 0x406b28
cmp eax, 1
jne 0x406b28
push eax
lea eax, [esp + 0xa4]
push eax
call fcn.00403180
cmp eax, 0xffffffff
je 0x406b28
push 7
push str._x86_64
lea ecx, [esp + 0xa8]
call fcn.00406ed0
mov eax, dword [esp + 0xc0]
mov esi, 0x10
cmp dword [esp + 0xd4], esi
jae 0x406b44
lea eax, [esp + 0xc0]
mov ecx, dword [esp + 0x10]
push eax
push ecx
mov ecx, str.source_file:
call fcn.004029e0
mov ecx, dword [esp + 0xc0]
cmp dword [esp + 0xd4], esi
jae 0x406b6b
lea ecx, [esp + 0xc0]
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0xc]
lea edx, [esp + 0x20]
push edx
lea edx, [esp + 0x20]
push edx
push eax
call fcn.004082c0
test eax, eax
je 0x406c42
mov ecx, dword [esp + 0xa4]
cmp dword [esp + 0xb8], esi
jae 0x406ba1
lea ecx, [esp + 0xa4]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x1c]
push eax
call fcn.004021c0
mov eax, dword [esp + 0x18]
inc eax
add edi, 0x14
mov dword [esp + 0x18], eax
cmp eax, 6
jb 0x4069d3
mov esi, 0x10
cmp dword [esp + 0xb8], esi
jb 0x406bec
mov ecx, dword [esp + 0xa4]
push ecx
call fcn.0040eded
add esp, 4
mov dword [esp + 0xb8], 0xf
mov dword [esp + 0xb4], ebx
mov byte [esp + 0xa4], bl
cmp dword [esp + 0xd4], esi
jb 0x406c1e
mov edx, dword [esp + 0xc0]
push edx
call fcn.0040eded
add esp, 4
mov ecx, dword [esp + 0xe0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.0040e340
mov esp, ebp
pop ebp
ret
push 8
call fcn.0040eee1
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x406c70
mov cx, word [0x422e18]
mov edx, 0xf9
mov word [esi], cx
mov word [esi + 2], dx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 4], eax
jmp 0x406c72
xor esi, esi
push 0x41f244
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], esi
call fcn.0040f38b
int3