Function at 0x43a430
Capabilities:
Check http status code
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x8c
mov edi, dword [esp + 0xa0]
mov dword [esp + 0x74], 0
mov ebp, dword [edi]
mov ecx, dword [esp + 0xa4]
add ecx, 0x54
mov dword [esp + 0x5c], ecx
mov ecx, dword [edi + ecx*4 + 4]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0xa4]
add ecx, 0x160
mov dword [esp + 0x54], ecx
mov eax, dword [edi + ecx*4 + 8]
cmp eax, 2
je 0x43accc
mov dword [edi + 0x244], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
lea ecx, [ebp + 0x87bc]
mov dword [esp + 0x6c], ecx
lea ecx, [ebp + 0x614]
mov dword [esp + 0x48], ecx
mov esi, edi
test eax, eax
jne 0x43a718
mov ecx, dword [esp + 0xac]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0xa8]
mov dword [esp + 8], ecx
mov dword [esp + 4], str.Establish_HTTP_proxy_tunnel_to__s:_hu_n
mov dword [esp], ebp
call fcn.0040ccd4
mov eax, dword [ebp + 0x144]
test eax, eax
je 0x43a502
mov dword [esp], eax
call dword [0x59b00c]
mov dword [ebp + 0x144], 0
call fcn.0041b44c
mov edi, eax
test eax, eax
je 0x43af68
mov ecx, dword [esp + 0xac]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0xa8]
mov dword [esp + 4], ecx
mov dword [esp], str._s:_hu
call sym.curl.exe_curl_maprintf
mov ebx, eax
test eax, eax
je 0x43af8c
mov dword [esp + 0xc], 1
mov dword [esp + 8], eax
mov dword [esp + 4], 0x5ad69e
mov dword [esp], esi
call fcn.0041b024
mov dword [esp], ebx
mov dword [esp + 0x28], eax
call dword [0x59b00c]
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x43aa78
cmp dword [esi + 0x138], 1
je 0x43ae33
mov dword [esp + 0x34], 0x5ad644
mov ebx, dword [esi + 0x204]
test ebx, ebx
jne 0x43ad6c
mov edx, 0x5ad64c
mov eax, edx
mov ecx, dword [esp + 0xac]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], edx
mov ecx, dword [esp + 0xa8]
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp], str._s_s_s:_hu
call sym.curl.exe_curl_maprintf
mov ebx, eax
test eax, eax
je 0x43af8c
mov dword [esp + 4], str.Host:
mov dword [esp], esi
call fcn.0041a91c
test eax, eax
je 0x43af2f
mov dword [esp + 0x2c], 0x5ad64c
mov dword [esp + 4], str.Proxy_Connection:
mov dword [esp], esi
call fcn.0041a91c
test eax, eax
je 0x43af22
mov dword [esp + 0x38], 0x5ad64c
mov dword [esp + 4], str.User_Agent:
mov dword [esp], esi
call fcn.0041a91c
test eax, eax
je 0x43af09
mov edx, 0x5ad64c
mov eax, dword [esi + 0x274]
test eax, eax
je 0x43aeff
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x34]
mov dword [esp + 0xc], edx
mov dword [esp + 8], ebx
mov dword [esp + 4], str.CONNECT__s_HTTP__s_r_n_s_s_s_s
mov dword [esp], edi
call fcn.0041b75c
mov ecx, dword [esp + 0x2c]
cmp byte [ecx], 0
jne 0x43ae69
mov dword [esp], ebx
mov dword [esp + 0x28], eax
call dword [0x59b00c]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x43a6b4
mov dword [esp + 4], str.Failed_sending_CONNECT_to_proxy
mov dword [esp], ebp
mov dword [esp + 0x28], eax
call fcn.0040c7a8
mov eax, dword [esp + 0x28]
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], edi
mov dword [esp + 4], 1
mov dword [esp], esi
call fcn.0041b8f0
test eax, eax
jne 0x43a691
mov dword [esp + 4], 0x5ad6fd
mov dword [esp], edi
call fcn.0041b75c
test eax, eax
jne 0x43a691
mov ecx, dword [esp + 0xa4]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], 0
mov ecx, dword [esp + 0x6c]
mov dword [esp + 8], ecx
mov dword [esp + 4], esi
mov dword [esp], edi
call fcn.0041b468
test eax, eax
jne 0x43a691
mov ecx, dword [esp + 0x54]
mov dword [esi + ecx*4 + 8], 1
nop
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], ebp
call fcn.00411fbc
test eax, eax
jle 0x43af72
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], 0xffffffff
mov ecx, dword [esp + 0x30]
mov dword [esp], ecx
call fcn.00401e44
test eax, eax
je 0x43accc
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x58], 0
mov dword [esp + 0x2c], 0
xor edi, edi
mov dword [esp + 0x34], 1
lea ecx, [ebp + 0xc8]
mov dword [esp + 0x60], ecx
mov eax, esi
mov esi, edi
mov edi, eax
nop
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], ebp
call fcn.00411fbc
test eax, eax
jle 0x43acb4
cmp eax, 0x3e8
jle 0x43a7c8
mov eax, 0x3e8
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], 0xffffffff
mov ecx, dword [esp + 0x30]
mov dword [esp], ecx
call fcn.00401e44
cmp eax, 0xffffffff
je 0x43a8f8
test eax, eax
je 0x43a8c0
lea eax, [esp + 0x78]
mov dword [esp + 0x10], eax
mov eax, 0x4000
sub eax, dword [esp + 0x2c]
mov dword [esp + 0xc], eax
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edx
mov ecx, dword [esp + 0x30]
mov dword [esp + 4], ecx
mov dword [esp], edi
call fcn.0040c484
cmp eax, 0x51
je 0x43a91c
test eax, eax
jne 0x43a910
mov eax, dword [esp + 0x78]
test eax, eax
jle 0x43aa3c
add dword [esp + 0x2c], eax
cmp dword [esp + 0x34], 1
jle 0x43aa94
mov edx, dword [esp + 0x44]
or edx, dword [esp + 0x40]
je 0x43acdc
cdq
sub dword [esp + 0x40], eax
sbb dword [esp + 0x44], edx
cmp dword [esp + 0x44], 0
jl 0x43a8a7
jle 0x43a8a0
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x2c], 0
xor ebx, ebx
mov dword [esp], edi
call fcn.004184f8
test eax, eax
je 0x43a8ce
mov eax, 0x2a
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
cmp dword [esp + 0x40], 0
ja 0x43a872
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], 0
mov dword [esp + 0x2c], 0
nop
xor ebx, ebx
mov dword [esp], edi
call fcn.004184f8
test eax, eax
jne 0x43a890
cmp dword [esp + 0x2c], 0x3fff
ja 0x43a928
mov eax, dword [esp + 0x34]
test eax, eax
je 0x43a928
test ebx, ebx
je 0x43a79c
mov eax, 0x38
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], str.Proxy_CONNECT_aborted_due_to_select_poll_error
mov dword [esp], ebp
call fcn.0040c7a8
mov ebx, 1
jmp 0x43a8c2
mov dword [esp + 0x34], 0
xor ebx, ebx
jmp 0x43a8c2
xor ebx, ebx
cmp dword [esp + 0x2c], 0x3fff
jbe 0x43a8d8
mov esi, edi
test ebx, ebx
jne 0x43a8e8
cmp dword [ebp + 0x87a8], 0xc8
je 0x43a950
mov dword [esp], edi
call fcn.0041ae24
test eax, eax
jne 0x43a8ed
mov eax, dword [edi + 0x1ec]
test eax, eax
jne 0x43a9b4
mov edi, dword [esp + 0x58]
test edi, edi
jne 0x43a9b4
mov ebx, dword [ebp + 0x144]
test ebx, ebx
je 0x43b15c
mov ecx, dword [esp + 0x54]
mov eax, dword [esi + ecx*4 + 8]
cmp eax, 2
jne 0x43a4b7
mov dword [esi + ecx*4 + 8], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.TUNNEL_STATE_switched_to:__d_n
mov dword [esp], ebp
call fcn.0040ccd4
mov ecx, dword [ebp + 0x144]
test ecx, ecx
je 0x43b15c
mov ecx, dword [esp + 0x54]
mov eax, dword [esi + ecx*4 + 8]
jmp 0x43a4b7
mov edi, esi
mov esi, dword [ebp + 0x144]
test esi, esi
jne 0x43b07f
cmp dword [ebp + 0xc8], 0xc8
je 0x43add5
mov dword [edi + 0x1ec], 1
mov ecx, dword [esp + 0x5c]
mov eax, dword [edi + ecx*4 + 4]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.00412498
mov ecx, dword [esp + 0x5c]
mov dword [edi + ecx*4 + 4], 0xffffffff
mov ecx, dword [esp + 0x54]
mov dword [edi + ecx*4 + 8], 0
mov eax, dword [edi + 0x244]
test eax, eax
jne 0x43accc
mov eax, dword [ebp + 0xc8]
mov dword [esp + 8], eax
mov dword [esp + 4], str.Received_HTTP_code__d_from_proxy_after_CONNECT
mov dword [esp], ebp
call fcn.0040c7a8
mov eax, 0x38
jmp 0x43a8ed
mov edx, dword [ebp + 0x190]
test edx, edx
je 0x43aa54
mov eax, dword [ebp + 0x86fc]
test eax, eax
jne 0x43ae40
mov dword [esp + 4], str.Proxy_CONNECT_aborted
mov dword [esp], ebp
call fcn.0040c7a8
mov dword [esp + 0x34], 0
mov ebx, 1
jmp 0x43a8c2
mov dword [esp], edi
mov dword [esp + 0x28], eax
call dword [0x59b00c]
mov eax, dword [esp + 0x28]
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [esp + 0x38]
inc ebx
xor ecx, ecx
mov edx, esi
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x4c], edi
mov edi, ecx
jmp 0x43aab8
inc edi
inc ebx
cmp dword [esp + 0x78], edi
jle 0x43abe3
inc edx
mov dword [esp + 0x38], ebx
cmp byte [ebx - 1], 0xa
jne 0x43aaac
mov eax, dword [ebp + 0x35c]
test eax, eax
jne 0x43ac20
cmp dword [ebp + 0x340], 1
sbb eax, eax
add eax, 3
mov dword [esp + 0xc], edx
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x4c]
mov dword [esp], ecx
mov dword [esp + 0x28], edx
call fcn.0040cafc
mov edx, dword [esp + 0x28]
add dword [ebp + 0x87b8], edx
add dword [ebp + 0x80], edx
test eax, eax
jne 0x43a8ed
mov al, byte [esi]
cmp al, 0xd
je 0x43ae7f
cmp al, 0xa
je 0x43ae7f
add edx, esi
mov dword [esp + 0x3c], edx
mov cl, byte [edx]
mov byte [esp + 0x53], cl
mov byte [edx], 0
mov dword [esp + 8], 0x11
mov dword [esp + 4], esi
mov dword [esp], str.WWW_Authenticate:
call fcn.00413cc4
test eax, eax
je 0x43ab5e
cmp dword [ebp + 0xc8], 0x191
je 0x43ac50
mov dword [esp + 8], 0x13
mov dword [esp + 4], esi
mov dword [esp], str.Proxy_authenticate:
call fcn.00413cc4
test eax, eax
je 0x43ab8a
cmp dword [ebp + 0xc8], 0x197
je 0x43acac
mov dword [esp + 8], 0xf
mov dword [esp + 4], esi
mov dword [esp], 0x5ad89f
call fcn.00413cc4
test eax, eax
je 0x43abf4
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0
add esi, 0xf
mov dword [esp], esi
call fcn.00593ed0
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], edx
mov cl, byte [esp + 0x53]
mov eax, dword [esp + 0x3c]
mov byte [eax], cl
mov esi, ebx
xor edx, edx
inc edi
inc ebx
cmp dword [esp + 0x78], edi
jg 0x43aab8
mov dword [esp + 0x3c], esi
mov esi, edx
mov edi, dword [esp + 0x4c]
xor ebx, ebx
jmp 0x43a8c2
mov dword [esp + 8], 0x5ad8af
mov dword [esp + 4], str.Connection:
mov dword [esp], esi
call fcn.0041b7e0
test eax, eax
je 0x43ad24
mov dword [esp + 0x58], 1
jmp 0x43abc9
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 8], esi
mov dword [esp + 4], 1
mov dword [esp], ebp
mov dword [esp + 0x28], edx
call fcn.0040c5e8
mov edx, dword [esp + 0x28]
jmp 0x43aad1
mov eax, 0x191
xor edx, edx
cmp eax, 0x197
sete dl
mov dword [esp + 0x64], edx
mov dword [esp], esi
call fcn.0041acf8
mov esi, eax
test eax, eax
je 0x43af68
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x64]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp], ecx
call fcn.0041b174
mov dword [esp], esi
mov dword [esp + 0x28], eax
call dword [0x59b00c]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x43abc9
jmp 0x43a8ed
mov eax, 0x197
jmp 0x43ac55
mov dword [esp + 4], str.Proxy_CONNECT_aborted_due_to_timeout
mov dword [esp], ebp
call fcn.0040c7a8
jmp 0x43a8e8
xor eax, eax
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x7c], 0
lea edx, [esp + 0x7c]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x48]
mov dword [esp + 4], ecx
mov dword [esp], edi
call fcn.00441600
inc eax
je 0x43aed6
mov eax, dword [esp + 0x7c]
mov dword [esp + 8], eax
mov dword [esp + 4], str.Read__zd_bytes_of_chunk__continue_n
mov dword [esp], ebp
call fcn.0040ccd4
jmp 0x43a872
mov dword [esp + 8], str.chunked
mov dword [esp + 4], str.Transfer_Encoding:
mov dword [esp], esi
call fcn.0041b7e0
test eax, eax
je 0x43ad7b
mov dword [esp + 4], str.CONNECT_responded_chunked_n
mov dword [esp], ebp
call fcn.0040ccd4
mov ecx, dword [esp + 0x4c]
mov dword [esp], ecx
call fcn.004415e4
mov dword [esp + 0x68], 1
jmp 0x43abc9
mov edx, 0x5ad648
mov eax, 0x5ad64a
jmp 0x43a59c
mov dword [esp + 8], 0x5ad8af
mov dword [esp + 4], str.Proxy_Connection:
mov dword [esp], esi
call fcn.0041b7e0
test eax, eax
jne 0x43ac14
mov ecx, dword [esp + 0x60]
mov dword [esp + 0xc], ecx
lea eax, [esp + 0x74]
mov dword [esp + 8], eax
mov dword [esp + 4], str.HTTP_1._d__d
mov dword [esp], esi
call sub.msvcrt.dll_sscanf
cmp eax, 2
jne 0x43abc9
mov eax, dword [ebp + 0xc8]
mov dword [ebp + 0x87a8], eax
jmp 0x43abc9
mov ecx, dword [esp + 0x54]
mov dword [edi + ecx*4 + 8], 2
mov eax, dword [edi + 0x274]
test eax, eax
je 0x43adf4
mov dword [esp], eax
call dword [0x59b00c]
mov dword [edi + 0x274], 0
mov dword [ebp + 0x8700], 1
mov dword [esp + 4], str.Proxy_replied_OK_to_CONNECT_request_n
mov dword [esp], ebp
call fcn.0040ccd4
mov dword [ebp + 0x138], 0
mov dword [edi + 0x228], 0
xor eax, eax
jmp 0x43a8ed
mov dword [esp + 0x34], 0x5ad640
jmp 0x43a587
mov dword [edi + 0x244], 1
mov dword [esp + 4], str.Proxy_CONNECT_connection_closed
mov dword [esp], ebp
call fcn.0040ccd4
mov dword [esp + 0x34], 0
xor ebx, ebx
jmp 0x43a8c2
mov dword [esp], ecx
mov dword [esp + 0x28], eax
call dword [0x59b00c]
mov eax, dword [esp + 0x28]
jmp 0x43a67c
mov dword [esp + 0x3c], esi
mov esi, edx
mov ecx, edi
mov edi, dword [esp + 0x4c]
cmp dword [ebp + 0xc8], 0x197
je 0x43af9f
cmp dword [ebp + 0x87a8], 0xc8
je 0x43b050
mov dword [esp + 0x34], 0
mov ecx, dword [esp + 0x54]
mov dword [edi + ecx*4 + 8], 2
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x2c], 0
xor ebx, ebx
jmp 0x43a8c2
mov dword [esp + 4], str.chunk_reading_DONE_n
mov dword [esp], ebp
call fcn.0040ccd4
mov ecx, dword [esp + 0x54]
mov dword [edi + ecx*4 + 8], 2
mov dword [esp + 0x34], 0
jmp 0x43a872
mov eax, 0x5ad64c
jmp 0x43a63b
mov ecx, dword [ebp + 0x41c]
test ecx, ecx
je 0x43a628
mov edx, dword [esi + 0x278]
jmp 0x43a62d
mov dword [esp + 0x38], str.Proxy_Connection:_Keep_Alive_r_n
jmp 0x43a610
mov dword [esp + 4], ebx
mov dword [esp], str.Host:__s_r_n
call sym.curl.exe_curl_maprintf
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x43a5f0
mov dword [esp], ebx
call dword [0x59b00c]
mov dword [esp], edi
call dword [0x59b00c]
mov eax, 0x1b
jmp 0x43a8ed
mov eax, 0x1b
jmp 0x43a8ed
mov dword [esp + 4], str.Proxy_CONNECT_aborted_due_to_timeout
mov dword [esp], ebp
call fcn.0040c7a8
mov eax, 0x38
jmp 0x43a8ed
mov dword [esp], edi
call dword [0x59b00c]
mov eax, 0x1b
jmp 0x43a8ed
mov eax, dword [ebp + 0x870c]
test eax, eax
jne 0x43ae9b
mov eax, dword [esp + 0x44]
or eax, dword [esp + 0x40]
jne 0x43b0dc
mov eax, dword [esp + 0x68]
test eax, eax
je 0x43aeab
mov dword [ebp + 0x138], 1
mov eax, dword [esp + 0x78]
sub eax, ecx
mov dword [esp + 8], eax
mov dword [esp + 4], str._zd_bytes_of_chunk_left_n
mov dword [esp], ebp
mov dword [esp + 0x28], ecx
call fcn.0040ccd4
mov edx, dword [esp + 0x3c]
cmp byte [edx + 1], 0xa
mov ecx, dword [esp + 0x28]
je 0x43b134
lea eax, [esp + 0x78]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x78]
sub eax, ecx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x3c]
inc eax
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.00441600
inc eax
je 0x43b13f
mov eax, dword [esp + 0x78]
mov dword [esp + 8], eax
mov dword [esp + 4], str.Read__zd_bytes_of_chunk__continue_n
mov dword [esp], ebp
call fcn.0040ccd4
mov dword [esp + 0x34], 2
jmp 0x43aeb3
mov eax, ecx
not eax
add eax, dword [esp + 0x78]
je 0x43aeab
mov dword [esp + 8], eax
mov dword [esp + 4], str.Proxy_CONNECT_followed_by__zd_bytes_of_opaque_data._Data_ignored__known_bug_39_
mov dword [esp], ebp
call fcn.0040c7a8
mov dword [esp + 0x34], 0
jmp 0x43aeb3
mov ecx, dword [esp + 0x5c]
mov eax, dword [edi + ecx*4 + 4]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.00412498
mov ecx, dword [esp + 0x5c]
mov dword [edi + ecx*4 + 4], 0xffffffff
cmp dword [ebp + 0xc8], 0xc8
je 0x43add5
mov edx, dword [ebp + 0x144]
test edx, edx
je 0x43a9d4
mov dword [edi + 0x244], 1
mov dword [esp + 4], str.Connect_me_again_please_n
mov dword [esp], ebp
call fcn.0040ccd4
jmp 0x43a9fe
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 4], str.Ignore__I64d_bytes_of_response_body_n
mov dword [esp], ebp
mov dword [esp + 0x28], ecx
call fcn.0040ccd4
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x28]
sub eax, ecx
cdq
sub dword [esp + 0x40], eax
sbb dword [esp + 0x44], edx
cmp dword [esp + 0x44], 0
jl 0x43aeab
jg 0x43b043
cmp dword [esp + 0x40], 0
jbe 0x43aeab
jmp 0x43b043
inc edx
mov dword [esp + 0x3c], edx
inc ecx
jmp 0x43b001
mov dword [esp + 4], str.chunk_reading_DONE_n
mov dword [esp], ebp
call fcn.0040ccd4
mov dword [esp + 0x34], 0
jmp 0x43aeb3
mov edi, esi
jmp 0x43a9c4