Function at 0x4174f0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x44bf7e
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
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 + 0xf0]
mov dword fs:[0], eax
mov edi, ecx
xor ebp, ebp
mov dword [esp + 0xf8], ebp
push edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], ebp
call fcn.00410850
lea eax, [esp + 0x34]
mov dword [esp + 0xf8], ebp
mov ebx, 1
push eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], vtable.CDeviceEnumer.0
call fcn.00410850
mov dword [esp + 0x30], vtable.CModemEnumer.0
mov dword [esp + 0x4c], 4
lea ecx, [esp + 0x30]
mov dword [esp + 0xf8], ebx
call fcn.0040d940
lea ecx, [esp + 0x18]
push ecx
call fcn.00417030
mov byte [esp + 0xf8], 2
mov ecx, dword [eax]
xor edx, edx
mov eax, ecx
mov dword [esp + 0x78], 7
mov dword [esp + 0x74], ebp
mov word [esp + 0x64], dx
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bp
jne 0x4175b2
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 + 0x100], 3
call fcn.0040f200
lea edx, [esp + 0x7c]
push edx
lea eax, [esp + 0x34]
mov byte [esp + 0xfc], 4
call fcn.00418550
lea esi, [esp + 0x7c]
call fcn.0040f2b0
cmp dword [esp + 0x78], 8
jb 0x417619
mov eax, dword [esp + 0x64]
push eax
call fcn.0042123b
add esp, 4
mov byte [esp + 0xf8], bl
mov eax, dword [esp + 0x18]
xor ecx, ecx
add eax, 0xfffffff0
mov word [esp + 0x64], cx
mov dword [esp + 0x78], 7
mov dword [esp + 0x74], ebp
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x417653
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x44]
sub ecx, dword [esp + 0x40]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x20], ebp
je 0x41790a
mov dword [esp + 0x18], ebp
jmp 0x417682
xor ebp, ebp
cmp dword [esp + 0x20], eax
jb 0x41768d
call fcn.0042f0b7
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x7c]
lea edi, [ecx + edx]
push eax
call fcn.0040eae0
push 0xffffffffffffffff
mov byte [esp + 0xfc], 5
xor ecx, ecx
push ebp
lea edx, [esp + 0xa0]
mov word [esp + 0x6c], cx
push edx
lea ecx, [esp + 0x6c]
mov dword [esp + 0x84], 7
mov dword [esp + 0x80], ebp
call fcn.00402350
mov byte [esp + 0xf8], 6
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x64]
cmp ecx, 8
jb 0x4177a5
mov esi, edx
mov dword [esp + 0x1c], esi
cmp edx, ebp
je 0x41771f
mov eax, edx
cmp ecx, 8
jae 0x417705
lea eax, [esp + 0x64]
cmp eax, esi
ja 0x41771f
mov eax, edx
cmp ecx, 8
jae 0x417714
lea eax, [esp + 0x64]
mov ebx, dword [esp + 0x74]
lea eax, [eax + ebx*2]
cmp esi, eax
jbe 0x417730
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 0x41773b
lea eax, [esp + 0x64]
lea edi, [eax + ebx*2]
cmp edi, ebp
je 0x417763
mov eax, edx
cmp ecx, 8
jae 0x41774d
lea eax, [esp + 0x64]
cmp eax, edi
ja 0x417763
mov eax, edx
cmp ecx, 8
jae 0x41775c
lea eax, [esp + 0x64]
lea eax, [eax + ebx*2]
cmp edi, eax
jbe 0x417774
call fcn.0042f0b7
mov ecx, dword [esp + 0x78]
mov ebx, dword [esp + 0x74]
mov edx, dword [esp + 0x64]
cmp ecx, 8
jb 0x4177b4
mov esi, edx
cmp edx, ebp
je 0x4177ba
mov ebp, 8
mov eax, edx
cmp ecx, ebp
jae 0x41778e
lea eax, [esp + 0x64]
cmp eax, esi
ja 0x4177bf
mov eax, edx
cmp ecx, ebp
jae 0x41779c
lea eax, [esp + 0x64]
lea ecx, [eax + ebx*2]
cmp esi, ecx
jbe 0x4177c4
jmp 0x4177bf
lea eax, [esp + 0x64]
mov dword [esp + 0x1c], eax
mov esi, eax
jmp 0x4176fa
lea esi, [esp + 0x64]
jmp 0x41777f
mov ebp, 8
call fcn.0042f0b7
mov edx, dword [esp + 0x1c]
push edx
lea eax, [esp + 0x64]
push eax
mov byte [esp + 0x2c], 0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x2c]
push eax
push ecx
lea edx, [esp + 0x68]
push edx
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 0x41789a
push ebx
push 0
lea ecx, [esp + 0x68]
call fcn.00402600
mov eax, dword [esp + 0x64]
cmp dword [esp + 0x78], ebp
jae 0x417824
lea eax, [esp + 0x64]
push eax
call fcn.00430bf4
add esp, 4
cmp eax, 3
jl 0x41789a
mov eax, dword [esp + 0x64]
cmp dword [esp + 0x78], ebp
jae 0x417840
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 + 0x1c], eax
test edx, edx
jne 0x41785c
xor ecx, ecx
jmp 0x417864
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 0x41787c
mov dword [esi], eax
add esi, 4
mov dword [edi + 0x10], esi
jmp 0x41789a
cmp edx, esi
jbe 0x417885
call fcn.0042f0b7
mov eax, dword [edi]
push esi
push eax
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x5c]
push ecx
mov eax, edi
call fcn.0041f680
cmp dword [esp + 0x78], ebp
jb 0x4178ad
mov edx, dword [esp + 0x64]
push edx
call fcn.0042123b
add esp, 4
xor eax, eax
lea esi, [esp + 0x7c]
mov dword [esp + 0x78], 7
mov dword [esp + 0x74], 0
mov word [esp + 0x64], ax
mov byte [esp + 0xf8], 1
call fcn.0040def0
mov ecx, dword [esp + 0x44]
sub ecx, dword [esp + 0x40]
mov esi, dword [esp + 0x20]
add dword [esp + 0x18], 0x70
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
inc esi
add eax, edx
mov dword [esp + 0x20], esi
cmp esi, eax
jb 0x417680
mov edi, dword [esp + 0x28]
lea ecx, [esp + 0x30]
push ecx
mov byte [esp + 0xfc], 0
call fcn.0040d8b0
mov eax, edi
mov ecx, dword [esp + 0xf0]
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, 0xe8
ret