Function at 0x417950
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x44beef
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x45dd50]
xor eax, esp
mov dword [esp + 0xd8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45dd50]
xor eax, esp
push eax
lea eax, [esp + 0xf4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x104]
xor edi, edi
mov dword [esp + 0xfc], edi
push eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], edi
call fcn.00410850
lea eax, [esp + 0x34]
mov dword [esp + 0xfc], edi
mov esi, 1
push eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], vtable.CDeviceEnumer.0
call fcn.00410850
mov dword [esp + 0x30], vtable.CPortEnumer.0
mov dword [esp + 0x4c], 4
lea ecx, [esp + 0x30]
mov dword [esp + 0xfc], esi
call fcn.0040df80
lea ecx, [esp + 0x18]
push ecx
call fcn.004171d0
mov byte [esp + 0xfc], 2
mov ecx, dword [eax]
mov ebx, 7
xor edx, edx
mov eax, ecx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x74], edi
mov word [esp + 0x64], dx
lea esi, [eax + 2]
jmp 0x417a20
mov dx, word [eax]
add eax, 2
cmp dx, di
jne 0x417a20
sub eax, esi
sar eax, 1
push eax
push ecx
lea ecx, [esp + 0x68]
call fcn.00402450
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x80]
push ecx
mov byte [esp + 0x104], 3
call fcn.0040f200
lea edx, [esp + 0x7c]
push edx
lea eax, [esp + 0x34]
mov byte [esp + 0x100], 4
call fcn.00418550
lea esi, [esp + 0x7c]
call fcn.0040f2b0
cmp dword [esp + 0x78], 8
jb 0x417a87
mov eax, dword [esp + 0x64]
push eax
call fcn.0042123b
add esp, 4
mov byte [esp + 0xfc], 1
mov eax, dword [esp + 0x18]
xor ecx, ecx
add eax, 0xfffffff0
mov word [esp + 0x64], cx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x74], edi
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x417abe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x40]
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x44]
mov ecx, edi
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x417d43
mov dword [esp + 0x18], 0
nop
cmp dword [esp + 0x1c], eax
jb 0x417aff
call fcn.0042f0b7
mov esi, dword [esp + 0x40]
mov ecx, dword [esp + 0x18]
xor edx, edx
push 0xffffffffffffffff
lea eax, [ecx + esi]
push edx
push eax
lea ecx, [esp + 0x6c]
mov dword [esp + 0x84], ebx
mov dword [esp + 0x80], 0
mov word [esp + 0x70], dx
call fcn.00402350
mov byte [esp + 0xfc], 5
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x64]
cmp ecx, 8
jb 0x417c97
mov ebp, edx
test edx, edx
je 0x417b70
mov eax, edx
cmp ecx, 8
jae 0x417b56
lea eax, [esp + 0x64]
cmp eax, ebp
ja 0x417b70
mov eax, edx
cmp ecx, 8
jae 0x417b65
lea eax, [esp + 0x64]
mov ebx, dword [esp + 0x74]
lea eax, [eax + ebx*2]
cmp ebp, eax
jbe 0x417b81
call fcn.0042f0b7
mov ecx, dword [esp + 0x78]
mov ebx, dword [esp + 0x74]
mov edx, dword [esp + 0x64]
mov eax, edx
cmp ecx, 8
jae 0x417b8c
lea eax, [esp + 0x64]
lea edi, [eax + ebx*2]
test edi, edi
je 0x417bb4
mov eax, edx
cmp ecx, 8
jae 0x417b9e
lea eax, [esp + 0x64]
cmp eax, edi
ja 0x417bb4
mov eax, edx
cmp ecx, 8
jae 0x417bad
lea eax, [esp + 0x64]
lea eax, [eax + ebx*2]
cmp edi, eax
jbe 0x417bc5
call fcn.0042f0b7
mov ecx, dword [esp + 0x78]
mov ebx, dword [esp + 0x74]
mov edx, dword [esp + 0x64]
cmp ecx, 8
jb 0x417ca0
mov esi, edx
test edx, edx
je 0x417bf5
mov eax, edx
cmp ecx, 8
jae 0x417bdf
lea eax, [esp + 0x64]
cmp eax, esi
ja 0x417bf5
mov eax, edx
cmp ecx, 8
jae 0x417bee
lea eax, [esp + 0x64]
lea ecx, [eax + ebx*2]
cmp esi, ecx
jbe 0x417bfa
call fcn.0042f0b7
push ebp
lea eax, [esp + 0x64]
push eax
mov eax, dword [esp + 0x28]
mov byte [esp + 0x2c], 0
mov edx, dword [esp + 0x2c]
push edx
push eax
lea ecx, [esp + 0x60]
push ecx
mov ebx, edi
mov eax, esi
call fcn.0040d3f0
add esp, 0x14
push 0x452e5c
mov ebx, 3
lea eax, [esp + 0x64]
call fcn.0040c7a0
cmp eax, 0xffffffff
je 0x417ce9
push ebx
push 0
lea ecx, [esp + 0x68]
call fcn.00402600
mov eax, dword [esp + 0x64]
mov ebx, 8
cmp dword [esp + 0x78], ebx
jae 0x417c5b
lea eax, [esp + 0x64]
push eax
call fcn.00430bf4
add esp, 4
cmp eax, 3
jl 0x417cee
mov eax, dword [esp + 0x64]
cmp dword [esp + 0x78], ebx
jae 0x417c7b
lea eax, [esp + 0x64]
push eax
call fcn.00430bf4
mov edi, dword [esp + 0x2c]
mov edx, dword [edi + 0xc]
add esp, 4
mov dword [esp + 0x20], eax
test edx, edx
jne 0x417ca9
xor ecx, ecx
jmp 0x417cb1
lea ebp, [esp + 0x64]
jmp 0x417b4b
lea esi, [esp + 0x64]
jmp 0x417bd4
mov ecx, dword [edi + 0x14]
sub ecx, edx
sar ecx, 2
mov esi, dword [edi + 0x10]
mov ebp, esi
sub ebp, edx
sar ebp, 2
cmp ebp, ecx
jae 0x417cc9
mov dword [esi], eax
add esi, 4
mov dword [edi + 0x10], esi
jmp 0x417cee
cmp edx, esi
jbe 0x417cd2
call fcn.0042f0b7
mov eax, dword [edi]
push esi
push eax
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x64]
push eax
mov eax, edi
call fcn.0041f680
jmp 0x417cee
mov ebx, 8
mov byte [esp + 0xfc], 1
cmp dword [esp + 0x78], ebx
jb 0x417d09
mov ecx, dword [esp + 0x64]
push ecx
call fcn.0042123b
add esp, 4
mov edi, dword [esp + 0x44]
mov esi, dword [esp + 0x40]
mov ebx, dword [esp + 0x1c]
add dword [esp + 0x18], 0x70
mov ecx, edi
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
inc ebx
add eax, edx
mov dword [esp + 0x1c], ebx
cmp ebx, eax
mov ebx, 7
jb 0x417af0
sub edi, esi
mov eax, 0x92492493
imul edi
add edx, edi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x18], 0
je 0x417fec
mov dword [esp + 0x1c], 0
jmp 0x417d75
mov ebx, 7
cmp dword [esp + 0x18], eax
jb 0x417d84
call fcn.0042f0b7
mov esi, dword [esp + 0x40]
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x7c]
lea edi, [edx + esi]
push eax
call fcn.0040eae0
xor ecx, ecx
push 0xffffffffffffffff
mov byte [esp + 0x100], 6
push ecx
lea edx, [esp + 0xa0]
mov word [esp + 0x6c], cx
push edx
lea ecx, [esp + 0x6c]
mov dword [esp + 0x84], ebx
mov dword [esp + 0x80], 0
call fcn.00402350
mov byte [esp + 0xfc], bl
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x64]
cmp ecx, 8
jb 0x417f2d
mov ebp, edx
test edx, edx
je 0x417e0d
mov eax, edx
cmp ecx, 8
jae 0x417df3
lea eax, [esp + 0x64]
cmp eax, ebp
ja 0x417e0d
mov eax, edx
cmp ecx, 8
jae 0x417e02
lea eax, [esp + 0x64]
mov ebx, dword [esp + 0x74]
lea eax, [eax + ebx*2]
cmp ebp, eax
jbe 0x417e1e
call fcn.0042f0b7
mov ecx, dword [esp + 0x78]
mov ebx, dword [esp + 0x74]
mov edx, dword [esp + 0x64]
mov eax, edx
cmp ecx, 8
jae 0x417e29
lea eax, [esp + 0x64]
lea edi, [eax + ebx*2]
test edi, edi
je 0x417e51
mov eax, edx
cmp ecx, 8
jae 0x417e3b
lea eax, [esp + 0x64]
cmp eax, edi
ja 0x417e51
mov eax, edx
cmp ecx, 8
jae 0x417e4a
lea eax, [esp + 0x64]
lea eax, [eax + ebx*2]
cmp edi, eax
jbe 0x417e62
call fcn.0042f0b7
mov ecx, dword [esp + 0x78]
mov ebx, dword [esp + 0x74]
mov edx, dword [esp + 0x64]
cmp ecx, 8
jb 0x417f36
mov esi, edx
test edx, edx
je 0x417e92
mov eax, edx
cmp ecx, 8
jae 0x417e7c
lea eax, [esp + 0x64]
cmp eax, esi
ja 0x417e92
mov eax, edx
cmp ecx, 8
jae 0x417e8b
lea eax, [esp + 0x64]
lea ecx, [eax + ebx*2]
cmp esi, ecx
jbe 0x417e97
call fcn.0042f0b7
push ebp
lea eax, [esp + 0x64]
push eax
mov byte [esp + 0x28], 0
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x28]
push edx
push eax
lea ecx, [esp + 0x68]
push ecx
mov ebx, edi
mov eax, esi
call fcn.0040d3f0
add esp, 0x14
push 0x452e5c
mov ebx, 3
lea eax, [esp + 0x64]
call fcn.0040c7a0
cmp eax, 0xffffffff
je 0x417f7d
push ebx
push 0
lea ecx, [esp + 0x68]
call fcn.00402600
cmp dword [esp + 0x78], 8
mov eax, dword [esp + 0x64]
jae 0x417ef4
lea eax, [esp + 0x64]
push eax
call fcn.00430bf4
add esp, 4
cmp eax, 3
jl 0x417f7d
cmp dword [esp + 0x78], 8
mov eax, dword [esp + 0x64]
jae 0x417f11
lea eax, [esp + 0x64]
push eax
call fcn.00430bf4
mov edi, dword [esp + 0x2c]
mov edx, dword [edi + 0xc]
add esp, 4
mov dword [esp + 0x24], eax
test edx, edx
jne 0x417f3f
xor ecx, ecx
jmp 0x417f47
lea ebp, [esp + 0x64]
jmp 0x417de8
lea esi, [esp + 0x64]
jmp 0x417e71
mov ecx, dword [edi + 0x14]
sub ecx, edx
sar ecx, 2
mov esi, dword [edi + 0x10]
mov ebx, esi
sub ebx, edx
sar ebx, 2
cmp ebx, ecx
jae 0x417f5f
mov dword [esi], eax
add esi, 4
mov dword [edi + 0x10], esi
jmp 0x417f7d
cmp edx, esi
jbe 0x417f68
call fcn.0042f0b7
mov eax, dword [edi]
push esi
push eax
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x5c]
push eax
mov eax, edi
call fcn.0041f680
cmp dword [esp + 0x78], 8
jb 0x417f91
mov ecx, dword [esp + 0x64]
push ecx
call fcn.0042123b
add esp, 4
xor edx, edx
lea esi, [esp + 0x7c]
mov dword [esp + 0x78], 7
mov dword [esp + 0x74], 0
mov word [esp + 0x64], dx
mov byte [esp + 0xfc], 1
call fcn.0040def0
mov ecx, dword [esp + 0x44]
mov esi, dword [esp + 0x40]
mov edi, dword [esp + 0x18]
add dword [esp + 0x1c], 0x70
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
inc edi
add eax, edx
mov dword [esp + 0x18], edi
cmp edi, eax
jb 0x417d70
lea eax, [esp + 0x30]
push eax
mov byte [esp + 0x100], 0
call fcn.0040d8b0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0xf4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xd8]
xor ecx, esp
call fcn.0042eb3c
add esp, 0xec
ret 4