Function at 0x45e4f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push edi
mov edi, dword [esp + 0x1c]
mov ebp, dword [ebx + 0xc]
mov dword [esp + 0xc], ebp
test edi, edi
je 0x45e525
mov eax, dword [edi + 0x78]
cmp eax, 4
jne 0x45e516
pop edi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
cmp eax, 5
jne 0x45e525
pop edi
pop ebp
mov eax, 0x38
pop ebx
pop ecx
ret
push esi
mov esi, dword [esp + 0x1c]
nop word [eax + eax]
push 1
push 0
push esi
call fcn.004323c0
add esp, 0xc
test edx, edx
jl 0x45e840
jg 0x45e54f
test eax, eax
je 0x45e840
mov eax, dword [edi + 0x78]
cmp eax, 3
ja case.default.0x45e55b
jmp dword [eax*4 + 0x45e8ac]
push str.CONNECT_start
push ebx
push esi
call fcn.00430020
push edi
push esi
push ebx
call fcn.0045ef10
mov ebp, eax
add esp, 0x18
test ebp, ebp
jne 0x45e853
cmp dword [edi + 0x78], 1
je case.0x45e55b.1
push str.new_tunnel_state_connect
push ebx
push esi
call fcn.00430020
lea eax, [edi + 4]
mov dword [edi + 0x78], 1
push eax
mov dword [edi + 0x68], 1
call fcn.0041d960
add esp, 0x10
push str.CONNECT_send
push ebx
push esi
call fcn.00430020
lea eax, [esp + 0x24]
push eax
push edi
push esi
push ebx
call fcn.0045ee50
mov ebp, eax
add esp, 0x1c
test ebp, ebp
jne 0x45e853
cmp byte [esp + 0x18], al
je 0x45e8a1
cmp dword [edi + 0x78], 2
je case.0x45e55b.2
push str.new_tunnel_state_receive
push ebx
push esi
call fcn.00430020
add esp, 0xc
mov dword [edi + 0x78], 2
push str.CONNECT_receive
push ebx
push esi
call fcn.00430020
lea eax, [esp + 0x24]
push eax
push edi
push esi
push ebx
call fcn.0045eb20
push esi
mov ebp, eax
call fcn.00440fd0
add esp, 0x20
test eax, eax
jne 0x45e76e
test ebp, ebp
jne 0x45e853
cmp byte [esp + 0x18], al
je 0x45e8a1
cmp dword [edi + 0x78], 3
je 0x45e655
push str.new_tunnel_state_response
push ebx
push esi
call fcn.00430020
add esp, 0xc
mov dword [edi + 0x78], 3
mov ebp, dword [esp + 0x10]
push str.CONNECT_response
push ebx
push esi
call fcn.00430020
add esp, 0xc
cmp dword [esi + 0x120], 0
je 0x45e6c2
lea eax, [esi + 0x88]
push esi
push eax
call fcn.004246b0
add esp, 8
cmp byte [edi + 0x7d], 0
jne 0x45e778
cmp byte [ebp + 0x246], 0
jne 0x45e778
cmp dword [edi + 0x78], 0
je case.default.0x45e55b
push str.new_tunnel_state_init
push ebx
push esi
call fcn.00430020
push edi
push esi
push ebx
call fcn.0045f180
add esp, 0x18
cmp dword [esi + 0x120], 0
jne 0x45e530
mov eax, 0x51eb851f
imul dword [esi + 0xd1c]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
je 0x45e7c0
push dword [esi + 0x120]
call dword [0x5a8004]
push 2
push ebp
mov dword [esi + 0x120], 0
call fcn.00432230
add esp, 0xc
cmp dword [edi + 0x78], 5
je 0x45e74f
push str.new_tunnel_state_failed
push ebx
push esi
call fcn.00430020
lea eax, [edi + 4]
mov dword [edi + 0x78], 5
push eax
call fcn.0041d960
lea eax, [edi + 0x14]
push eax
call fcn.0041d960
push dword [esi + 0xce8]
mov dword [esi + 0xd18], 0
call dword [0x5a8004]
add esp, 0x18
mov dword [esi + 0xce8], 0
push dword [esi + 0xd4]
push str.CONNECT_tunnel_failed__response__d
push esi
call fcn.0042ff10
add esp, 0xc
mov eax, 0x38
pop esi
pop edi
pop ebp
pop ebx
pop ecx
ret
mov ebp, 0x2a
jmp 0x45e853
push str.CONNECT_need_to_closeopen
push ebx
push esi
call fcn.00430020
push str.Connect_me_again_please
push esi
call fcn.0042ffe0
push esi
push ebx
call fcn.0042f310
push 0
push ebp
call fcn.00432230
lea eax, [esp + 0x3c]
push eax
push 0
push esi
push dword [ebx + 4]
call fcn.0042f390
add esp, 0x34
mov ebp, eax
test ebp, ebp
je 0x45e8a1
jmp 0x45e853
cmp dword [edi + 0x78], 4
je 0x45e822
push str.new_tunnel_state_established
push ebx
push esi
call fcn.00430020
push str.CONNECT_phase_completed
push esi
call fcn.0042ffe0
lea eax, [edi + 4]
mov word [esi + 0x910], 1
push eax
mov dword [edi + 0x78], 4
call fcn.0041d960
lea eax, [edi + 0x14]
push eax
call fcn.0041d960
push dword [esi + 0xce8]
mov dword [esi + 0xd18], 0
call dword [0x5a8004]
add esp, 0x20
mov dword [esi + 0xce8], 0
push dword [esi + 0xd1c]
push str.CONNECT_tunnel_established__response__d
push esi
call fcn.0042ffe0
add esp, 0xc
xor ebp, ebp
mov eax, ebp
pop esi
pop edi
pop ebp
pop ebx
pop ecx
ret
push str.Proxy_CONNECT_aborted_due_to_timeout
push esi
call fcn.0042ff10
add esp, 8
mov ebp, 0x1c
cmp dword [edi + 0x78], 5
je 0x45e8a1
push str.new_tunnel_state_failed
push ebx
push esi
call fcn.00430020
lea eax, [edi + 4]
mov dword [edi + 0x78], 5
push eax
call fcn.0041d960
lea eax, [edi + 0x14]
push eax
call fcn.0041d960
push dword [esi + 0xce8]
mov dword [esi + 0xd18], 0
call dword [0x5a8004]
add esp, 0x18
mov dword [esi + 0xce8], 0
pop esi
pop edi
mov eax, ebp
pop ebp
pop ebx
pop ecx
ret