Function at 0x4067f0
Capabilities:
Check for software breakpoints
Check http status code
Parse pe header

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x443c88
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x28]
push edi
test eax, eax
je 0x406828
mov esi, dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [ebx + 0x30]
push eax
call esi
mov eax, dword [ebx + 0x28]
test eax, eax
jne 0x40681b
mov eax, dword [ebx + 0x50]
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventA]
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
je 0x406840
push eax
call edi
jmp 0x40684d
push 0
push 0
push 1
push 0
call esi
mov dword [ebx + 0x50], eax
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x406859
push eax
call edi
jmp 0x406866
push 0
push 0
push 1
push 0
call esi
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x406872
push eax
call edi
jmp 0x40687f
push 0
push 0
push 1
push 0
call esi
mov dword [ebx + 0x30], eax
mov eax, dword [ebx + 0x50]
mov ecx, dword [ebx + 0x30]
mov edx, dword [ebx + 0x2c]
mov dword [ebx + 0x3c], eax
lea eax, [ebx + 0x10]
mov dword [ebx + 0x34], ecx
push eax
mov dword [ebx + 0x38], edx
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, dword [ebx + 0x8c]
mov ecx, dword [esp + 0x28]
test eax, eax
mov dword [ebx + 0x84], ecx
je 0x4068bc
push eax
call fcn.0042a40f
add esp, 4
mov edi, dword [esp + 0x44]
push edi
call fcn.0042a3e6
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x44]
push 0x32
mov dword [ebx + 0x8c], eax
mov dword [ebx + 0x88], esi
mov dword [ebx + 0x94], edi
mov dword [ebx + 0x90], edx
call fcn.0042a3e6
push 0x32
mov dword [esp + 0x34], eax
call fcn.0042a3e6
add esp, 0xc
mov ebp, eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 8]
test eax, eax
je 0x40691d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 8], 0
mov ecx, dword [esp + 0x28]
push esi
push str.COM_d
push ecx
call fcn.00416c07
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
movsx ecx, byte [esp + 0x40]
push edx
mov edx, dword [esp + 0x40]
push eax
push ecx
push edx
push str.baud_d_parity_c_data_d_stop_d
push ebp
call fcn.00416c07
mov eax, dword [0x45a3a8]
add esp, 0x24
mov dword [esp + 0x10], eax
cmp esi, 1
mov dword [esp + 0x20], 0
jne 0x406970
push 0x4587f4
jmp 0x4079b5
cmp esi, 2
jne 0x40697f
push 0x4587ec
jmp 0x4079b5
cmp esi, 3
jne 0x40698e
push 0x4587e4
jmp 0x4079b5
cmp esi, 4
jne 0x40699d
push 0x4587dc
jmp 0x4079b5
cmp esi, 5
jne 0x4069ac
push 0x4587d4
jmp 0x4079b5
cmp esi, 6
jne 0x4069bb
push 0x4587cc
jmp 0x4079b5
cmp esi, 7
jne 0x4069ca
push 0x4587c4
jmp 0x4079b5
cmp esi, 8
jne 0x4069d9
push 0x4587bc
jmp 0x4079b5
cmp esi, 9
jne 0x4069e8
push 0x4587b4
jmp 0x4079b5
cmp esi, 0xa
jne 0x4069f7
push str..COM10
jmp 0x4079b5
cmp esi, 0xb
jne 0x406a06
push str..COM11
jmp 0x4079b5
cmp esi, 0xc
jne 0x406a15
push str..COM12
jmp 0x4079b5
cmp esi, 0xd
jne 0x406a24
push str..COM13
jmp 0x4079b5
cmp esi, 0xe
jne 0x406a33
push str..COM14
jmp 0x4079b5
cmp esi, 0xf
jne 0x406a42
push str..COM15
jmp 0x4079b5
cmp esi, 0x10
jne 0x406a51
push str..COM16
jmp 0x4079b5
cmp esi, 0x11
jne 0x406a60
push str..COM17
jmp 0x4079b5
cmp esi, 0x12
jne 0x406a6f
push str..COM18
jmp 0x4079b5
cmp esi, 0x13
jne 0x406a7e
push str..COM19
jmp 0x4079b5
cmp esi, 0x14
jne 0x406a8d
push str..COM20
jmp 0x4079b5
cmp esi, 0x15
jne 0x406a9c
push str..COM21
jmp 0x4079b5
cmp esi, 0x16
jne 0x406aab
push str..COM22
jmp 0x4079b5
cmp esi, 0x17
jne 0x406aba
push str..COM23
jmp 0x4079b5
cmp esi, 0x18
jne 0x406ac9
push str..COM24
jmp 0x4079b5
cmp esi, 0x19
jne 0x406ad8
push str..COM25
jmp 0x4079b5
cmp esi, 0x1a
jne 0x406ae7
push str..COM26
jmp 0x4079b5
cmp esi, 0x1b
jne 0x406af6
push str..COM27
jmp 0x4079b5
cmp esi, 0x1c
jne 0x406b05
push str..COM28
jmp 0x4079b5
cmp esi, 0x1d
jne 0x406b14
push str..COM29
jmp 0x4079b5
cmp esi, 0x1e
jne 0x406b23
push str..COM30
jmp 0x4079b5
cmp esi, 0x1f
jne 0x406b32
push str..COM31
jmp 0x4079b5
cmp esi, 0x20
jne 0x406b41
push str..COM32
jmp 0x4079b5
cmp esi, 0x21
jne 0x406b50
push str..COM33
jmp 0x4079b5
cmp esi, 0x22
jne 0x406b5f
push str..COM34
jmp 0x4079b5
cmp esi, 0x23
jne 0x406b6e
push str..COM35
jmp 0x4079b5
cmp esi, 0x24
jne 0x406b7d
push str..COM36
jmp 0x4079b5
cmp esi, 0x25
jne 0x406b8c
push str..COM37
jmp 0x4079b5
cmp esi, 0x26
jne 0x406b9b
push str..COM38
jmp 0x4079b5
cmp esi, 0x27
jne 0x406baa
push str..COM39
jmp 0x4079b5
cmp esi, 0x28
jne 0x406bb9
push str..COM40
jmp 0x4079b5
cmp esi, 0x29
jne 0x406bc8
push str..COM41
jmp 0x4079b5
cmp esi, 0x2a
jne 0x406bd7
push str..COM42
jmp 0x4079b5
cmp esi, 0x2b
jne 0x406be6
push str..COM43
jmp 0x4079b5
cmp esi, 0x2c
jne 0x406bf5
push str..COM44
jmp 0x4079b5
cmp esi, 0x2d
jne 0x406c04
push str..COM45
jmp 0x4079b5
cmp esi, 0x2e
jne 0x406c13
push str..COM46
jmp 0x4079b5
cmp esi, 0x2f
jne 0x406c22
push str..COM47
jmp 0x4079b5
cmp esi, 0x30
jne 0x406c31
push str..COM48
jmp 0x4079b5
cmp esi, 0x31
jne 0x406c40
push str..COM49
jmp 0x4079b5
cmp esi, 0x32
jne 0x406c4f
push str..COM50
jmp 0x4079b5
cmp esi, 0x33
jne 0x406c5e
push str..COM51
jmp 0x4079b5
cmp esi, 0x34
jne 0x406c6d
push str..COM52
jmp 0x4079b5
cmp esi, 0x35
jne 0x406c7c
push str..COM53
jmp 0x4079b5
cmp esi, 0x36
jne 0x406c8b
push str..COM54
jmp 0x4079b5
cmp esi, 0x37
jne 0x406c9a
push str..COM55
jmp 0x4079b5
cmp esi, 0x38
jne 0x406ca9
push str..COM56
jmp 0x4079b5
cmp esi, 0x39
jne 0x406cb8
push str..COM57
jmp 0x4079b5
cmp esi, 0x3a
jne 0x406cc7
push str..COM58
jmp 0x4079b5
cmp esi, 0x3b
jne 0x406cd6
push str..COM59
jmp 0x4079b5
cmp esi, 0x3c
jne 0x406ce5
push str..COM60
jmp 0x4079b5
cmp esi, 0x3d
jne 0x406cf4
push str..COM61
jmp 0x4079b5
cmp esi, 0x3e
jne 0x406d03
push str..COM62
jmp 0x4079b5
cmp esi, 0x3f
jne 0x406d12
push str..COM63
jmp 0x4079b5
cmp esi, 0x40
jne 0x406d21
push str..COM64
jmp 0x4079b5
cmp esi, 0x41
jne 0x406d30
push str..COM65
jmp 0x4079b5
cmp esi, 0x42
jne 0x406d3f
push str..COM66
jmp 0x4079b5
cmp esi, 0x43
jne 0x406d4e
push str..COM67
jmp 0x4079b5
cmp esi, 0x44
jne 0x406d5d
push str..COM68
jmp 0x4079b5
cmp esi, 0x45
jne 0x406d6c
push str..COM69
jmp 0x4079b5
cmp esi, 0x46
jne 0x406d7b
push str..COM70
jmp 0x4079b5
cmp esi, 0x47
jne 0x406d8a
push str..COM71
jmp 0x4079b5
cmp esi, 0x48
jne 0x406d99
push str..COM72
jmp 0x4079b5
cmp esi, 0x49
jne 0x406da8
push str..COM73
jmp 0x4079b5
cmp esi, 0x4a
jne 0x406db7
push str..COM74
jmp 0x4079b5
cmp esi, 0x4b
jne 0x406dc6
push str..COM75
jmp 0x4079b5
cmp esi, 0x4c
jne 0x406dd5
push str..COM76
jmp 0x4079b5
cmp esi, 0x4d
jne 0x406de4
push str..COM77
jmp 0x4079b5
cmp esi, 0x4e
jne 0x406df3
push str..COM78
jmp 0x4079b5
cmp esi, 0x4f
jne 0x406e02
push str..COM79
jmp 0x4079b5
cmp esi, 0x50
jne 0x406e11
push str..COM80
jmp 0x4079b5
cmp esi, 0x51
jne 0x406e20
push str..COM81
jmp 0x4079b5
cmp esi, 0x52
jne 0x406e2f
push str..COM82
jmp 0x4079b5
cmp esi, 0x53
jne 0x406e3e
push str..COM83
jmp 0x4079b5
cmp esi, 0x54
jne 0x406e4d
push str..COM84
jmp 0x4079b5
cmp esi, 0x55
jne 0x406e5c
push str..COM85
jmp 0x4079b5
cmp esi, 0x56
jne 0x406e6b
push str..COM86
jmp 0x4079b5
cmp esi, 0x57
jne 0x406e7a
push str..COM87
jmp 0x4079b5
cmp esi, 0x58
jne 0x406e89
push str..COM88
jmp 0x4079b5
cmp esi, 0x59
jne 0x406e98
push str..COM89
jmp 0x4079b5
cmp esi, 0x5a
jne 0x406ea7
push str..COM90
jmp 0x4079b5
cmp esi, 0x5b
jne 0x406eb6
push str..COM91
jmp 0x4079b5
cmp esi, 0x5c
jne 0x406ec5
push str..COM92
jmp 0x4079b5
cmp esi, 0x5d
jne 0x406ed4
push str..COM93
jmp 0x4079b5
cmp esi, 0x5e
jne 0x406ee3
push str..COM94
jmp 0x4079b5
cmp esi, 0x5f
jne 0x406ef2
push str..COM95
jmp 0x4079b5
cmp esi, 0x60
jne 0x406f01
push str..COM96
jmp 0x4079b5
cmp esi, 0x61
jne 0x406f10
push str..COM97
jmp 0x4079b5
cmp esi, 0x62
jne 0x406f1f
push str..COM98
jmp 0x4079b5
cmp esi, 0x63
jne 0x406f2e
push str..COM99
jmp 0x4079b5
cmp esi, 0x64
jne 0x406f3d
push str..COM100
jmp 0x4079b5
cmp esi, 0x65
jne 0x406f4c
push str..COM101
jmp 0x4079b5
cmp esi, 0x66
jne 0x406f5b
push str..COM102
jmp 0x4079b5
cmp esi, 0x67
jne 0x406f6a
push str..COM103
jmp 0x4079b5
cmp esi, 0x68
jne 0x406f79
push str..COM104
jmp 0x4079b5
cmp esi, 0x69
jne 0x406f88
push str..COM105
jmp 0x4079b5
cmp esi, 0x6a
jne 0x406f97
push str..COM106
jmp 0x4079b5
cmp esi, 0x6b
jne 0x406fa6
push str..COM107
jmp 0x4079b5
cmp esi, 0x6c
jne 0x406fb5
push str..COM108
jmp 0x4079b5
cmp esi, 0x6d
jne 0x406fc4
push str..COM109
jmp 0x4079b5
cmp esi, 0x6e
jne 0x406fd3
push str..COM110
jmp 0x4079b5
cmp esi, 0x6f
jne 0x406fe2
push str..COM111
jmp 0x4079b5
cmp esi, 0x70
jne 0x406ff1
push str..COM112
jmp 0x4079b5
cmp esi, 0x71
jne 0x407000
push str..COM113
jmp 0x4079b5
cmp esi, 0x72
jne 0x40700f
push str..COM114
jmp 0x4079b5
cmp esi, 0x73
jne 0x40701e
push str..COM115
jmp 0x4079b5
cmp esi, 0x74
jne 0x40702d
push str..COM116
jmp 0x4079b5
cmp esi, 0x75
jne 0x40703c
push str..COM117
jmp 0x4079b5
cmp esi, 0x76
jne 0x40704b
push str..COM118
jmp 0x4079b5
cmp esi, 0x77
jne 0x40705a
push str..COM119
jmp 0x4079b5
cmp esi, 0x78
jne 0x407069
push str..COM120
jmp 0x4079b5
cmp esi, 0x79
jne 0x407078
push str..COM121
jmp 0x4079b5
cmp esi, 0x7a
jne 0x407087
push str..COM122
jmp 0x4079b5
cmp esi, 0x7b
jne 0x407096
lea ecx, [esp + 0x14]
call fcn.0042b1b9
mov ecx, dword [esp + 0x10]
push 0
push 0x40000000
push 3
push 0
push 0
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
or edi, 0xffffffff
mov dword [ebx + 8], eax
cmp eax, edi
jne 0x407a0c