Function at 0x43a850
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 0x43b0ec
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 0x43ab38
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.0040e21c
mov eax, dword [ebp + 0x144]
test eax, eax
je 0x43a922
mov dword [esp], eax
call dword [0x59b00c]
mov dword [ebp + 0x144], 0
call fcn.0041c994
mov edi, eax
test eax, eax
je 0x43b388
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 0x43b3ac
mov dword [esp + 0xc], 1
mov dword [esp + 8], eax
mov dword [esp + 4], 0x5ad77e
mov dword [esp], esi
call fcn.0041c56c
mov dword [esp], ebx
mov dword [esp + 0x28], eax
call dword [0x59b00c]
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x43ae98
cmp dword [esi + 0x138], 1
je 0x43b253
mov dword [esp + 0x34], 0x5ad724
mov ebx, dword [esi + 0x204]
test ebx, ebx
jne 0x43b18c
mov edx, 0x5ad72c
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 0x43b3ac
mov dword [esp + 4], str.Host:
mov dword [esp], esi
call fcn.0041be64
test eax, eax
je 0x43b34f
mov dword [esp + 0x2c], 0x5ad72c
mov dword [esp + 4], str.Proxy_Connection:
mov dword [esp], esi
call fcn.0041be64
test eax, eax
je 0x43b342
mov dword [esp + 0x38], 0x5ad72c
mov dword [esp + 4], str.User_Agent:
mov dword [esp], esi
call fcn.0041be64
test eax, eax
je 0x43b329
mov edx, 0x5ad72c
mov eax, dword [esi + 0x274]
test eax, eax
je 0x43b31f
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.0041cca4
mov ecx, dword [esp + 0x2c]
cmp byte [ecx], 0
jne 0x43b289
mov dword [esp], ebx
mov dword [esp + 0x28], eax
call dword [0x59b00c]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x43aad4
mov dword [esp + 4], str.Failed_sending_CONNECT_to_proxy
mov dword [esp], ebp
mov dword [esp + 0x28], eax
call fcn.0040dcf0
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.0041ce38
test eax, eax
jne 0x43aab1
mov dword [esp + 4], 0x5ad7dd
mov dword [esp], edi
call fcn.0041cca4
test eax, eax
jne 0x43aab1
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.0041c9b0
test eax, eax
jne 0x43aab1
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.00413504
test eax, eax
jle 0x43b392
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.0040338c
test eax, eax
je 0x43b0ec
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.00413504
test eax, eax
jle 0x43b0d4
cmp eax, 0x3e8
jle 0x43abe8
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.0040338c
cmp eax, 0xffffffff
je 0x43ad18
test eax, eax
je 0x43ace0
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.0040d9cc
cmp eax, 0x51
je 0x43ad3c
test eax, eax
jne 0x43ad30
mov eax, dword [esp + 0x78]
test eax, eax
jle 0x43ae5c
add dword [esp + 0x2c], eax
cmp dword [esp + 0x34], 1
jle 0x43aeb4
mov edx, dword [esp + 0x44]
or edx, dword [esp + 0x40]
je 0x43b0fc
cdq
sub dword [esp + 0x40], eax
sbb dword [esp + 0x44], edx
cmp dword [esp + 0x44], 0
jl 0x43acc7
jle 0x43acc0
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x2c], 0
xor ebx, ebx
mov dword [esp], edi
call fcn.00419a40
test eax, eax
je 0x43acee
mov eax, 0x2a
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
cmp dword [esp + 0x40], 0
ja 0x43ac92
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.00419a40
test eax, eax
jne 0x43acb0
cmp dword [esp + 0x2c], 0x3fff
ja 0x43ad48
mov eax, dword [esp + 0x34]
test eax, eax
je 0x43ad48
test ebx, ebx
je 0x43abbc
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.0040dcf0
mov ebx, 1
jmp 0x43ace2
mov dword [esp + 0x34], 0
xor ebx, ebx
jmp 0x43ace2
xor ebx, ebx
cmp dword [esp + 0x2c], 0x3fff
jbe 0x43acf8
mov esi, edi
test ebx, ebx
jne 0x43ad08
cmp dword [ebp + 0x87a8], 0xc8
je 0x43ad70
mov dword [esp], edi
call fcn.0041c36c
test eax, eax
jne 0x43ad0d
mov eax, dword [edi + 0x1ec]
test eax, eax
jne 0x43add4
mov edi, dword [esp + 0x58]
test edi, edi
jne 0x43add4
mov ebx, dword [ebp + 0x144]
test ebx, ebx
je 0x43b57c
mov ecx, dword [esp + 0x54]
mov eax, dword [esi + ecx*4 + 8]
cmp eax, 2
jne 0x43a8d7
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.0040e21c
mov ecx, dword [ebp + 0x144]
test ecx, ecx
je 0x43b57c
mov ecx, dword [esp + 0x54]
mov eax, dword [esi + ecx*4 + 8]
jmp 0x43a8d7
mov edi, esi
mov esi, dword [ebp + 0x144]
test esi, esi
jne 0x43b49f
cmp dword [ebp + 0xc8], 0xc8
je 0x43b1f5
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.004139e0
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 0x43b0ec
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.0040dcf0
mov eax, 0x38
jmp 0x43ad0d
mov edx, dword [ebp + 0x190]
test edx, edx
je 0x43ae74
mov eax, dword [ebp + 0x86fc]
test eax, eax
jne 0x43b260
mov dword [esp + 4], str.Proxy_CONNECT_aborted
mov dword [esp], ebp
call fcn.0040dcf0
mov dword [esp + 0x34], 0
mov ebx, 1
jmp 0x43ace2
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 0x43aed8
inc edi
inc ebx
cmp dword [esp + 0x78], edi
jle 0x43b003
inc edx
mov dword [esp + 0x38], ebx
cmp byte [ebx - 1], 0xa
jne 0x43aecc
mov eax, dword [ebp + 0x35c]
test eax, eax
jne 0x43b040
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.0040e044
mov edx, dword [esp + 0x28]
add dword [ebp + 0x87b8], edx
add dword [ebp + 0x80], edx
test eax, eax
jne 0x43ad0d
mov al, byte [esi]
cmp al, 0xd
je 0x43b29f
cmp al, 0xa
je 0x43b29f
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.0041520c
test eax, eax
je 0x43af7e
cmp dword [ebp + 0xc8], 0x191
je 0x43b070
mov dword [esp + 8], 0x13
mov dword [esp + 4], esi
mov dword [esp], str.Proxy_authenticate:
call fcn.0041520c
test eax, eax
je 0x43afaa
cmp dword [ebp + 0xc8], 0x197
je 0x43b0cc
mov dword [esp + 8], 0xf
mov dword [esp + 4], esi
mov dword [esp], 0x5ad97f
call fcn.0041520c
test eax, eax
je 0x43b014
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0
add esi, 0xf
mov dword [esp], esi
call fcn.005942f0
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 0x43aed8
mov dword [esp + 0x3c], esi
mov esi, edx
mov edi, dword [esp + 0x4c]
xor ebx, ebx
jmp 0x43ace2
mov dword [esp + 8], 0x5ad98f
mov dword [esp + 4], str.Connection:
mov dword [esp], esi
call fcn.0041cd28
test eax, eax
je 0x43b144
mov dword [esp + 0x58], 1
jmp 0x43afe9
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.0040db30
mov edx, dword [esp + 0x28]
jmp 0x43aef1
mov eax, 0x191
xor edx, edx
cmp eax, 0x197
sete dl
mov dword [esp + 0x64], edx
mov dword [esp], esi
call fcn.0041c240
mov esi, eax
test eax, eax
je 0x43b388
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.0041c6bc
mov dword [esp], esi
mov dword [esp + 0x28], eax
call dword [0x59b00c]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x43afe9
jmp 0x43ad0d
mov eax, 0x197
jmp 0x43b075
mov dword [esp + 4], str.Proxy_CONNECT_aborted_due_to_timeout
mov dword [esp], ebp
call fcn.0040dcf0
jmp 0x43ad08
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.00441a20
inc eax
je 0x43b2f6
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.0040e21c
jmp 0x43ac92
mov dword [esp + 8], str.chunked
mov dword [esp + 4], str.Transfer_Encoding:
mov dword [esp], esi
call fcn.0041cd28
test eax, eax
je 0x43b19b
mov dword [esp + 4], str.CONNECT_responded_chunked_n
mov dword [esp], ebp
call fcn.0040e21c
mov ecx, dword [esp + 0x4c]
mov dword [esp], ecx
call fcn.00441a04
mov dword [esp + 0x68], 1
jmp 0x43afe9
mov edx, 0x5ad728
mov eax, 0x5ad72a
jmp 0x43a9bc
mov dword [esp + 8], 0x5ad98f
mov dword [esp + 4], str.Proxy_Connection:
mov dword [esp], esi
call fcn.0041cd28
test eax, eax
jne 0x43b034
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 0x43afe9
mov eax, dword [ebp + 0xc8]
mov dword [ebp + 0x87a8], eax
jmp 0x43afe9
mov ecx, dword [esp + 0x54]
mov dword [edi + ecx*4 + 8], 2
mov eax, dword [edi + 0x274]
test eax, eax
je 0x43b214
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.0040e21c
mov dword [ebp + 0x138], 0
mov dword [edi + 0x228], 0
xor eax, eax
jmp 0x43ad0d
mov dword [esp + 0x34], 0x5ad720
jmp 0x43a9a7
mov dword [edi + 0x244], 1
mov dword [esp + 4], str.Proxy_CONNECT_connection_closed
mov dword [esp], ebp
call fcn.0040e21c
mov dword [esp + 0x34], 0
xor ebx, ebx
jmp 0x43ace2
mov dword [esp], ecx
mov dword [esp + 0x28], eax
call dword [0x59b00c]
mov eax, dword [esp + 0x28]
jmp 0x43aa9c
mov dword [esp + 0x3c], esi
mov esi, edx
mov ecx, edi
mov edi, dword [esp + 0x4c]
cmp dword [ebp + 0xc8], 0x197
je 0x43b3bf
cmp dword [ebp + 0x87a8], 0xc8
je 0x43b470
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 0x43ace2
mov dword [esp + 4], str.chunk_reading_DONE_n
mov dword [esp], ebp
call fcn.0040e21c
mov ecx, dword [esp + 0x54]
mov dword [edi + ecx*4 + 8], 2
mov dword [esp + 0x34], 0
jmp 0x43ac92
mov eax, 0x5ad72c
jmp 0x43aa5b
mov ecx, dword [ebp + 0x41c]
test ecx, ecx
je 0x43aa48
mov edx, dword [esi + 0x278]
jmp 0x43aa4d
mov dword [esp + 0x38], str.Proxy_Connection:_Keep_Alive_r_n
jmp 0x43aa30
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 0x43aa10
mov dword [esp], ebx
call dword [0x59b00c]
mov dword [esp], edi
call dword [0x59b00c]
mov eax, 0x1b
jmp 0x43ad0d
mov eax, 0x1b
jmp 0x43ad0d
mov dword [esp + 4], str.Proxy_CONNECT_aborted_due_to_timeout
mov dword [esp], ebp
call fcn.0040dcf0
mov eax, 0x38
jmp 0x43ad0d
mov dword [esp], edi
call dword [0x59b00c]
mov eax, 0x1b
jmp 0x43ad0d
mov eax, dword [ebp + 0x870c]
test eax, eax
jne 0x43b2bb
mov eax, dword [esp + 0x44]
or eax, dword [esp + 0x40]
jne 0x43b4fc
mov eax, dword [esp + 0x68]
test eax, eax
je 0x43b2cb
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.0040e21c
mov edx, dword [esp + 0x3c]
cmp byte [edx + 1], 0xa
mov ecx, dword [esp + 0x28]
je 0x43b554
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.00441a20
inc eax
je 0x43b55f
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.0040e21c
mov dword [esp + 0x34], 2
jmp 0x43b2d3
mov eax, ecx
not eax
add eax, dword [esp + 0x78]
je 0x43b2cb
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.0040dcf0
mov dword [esp + 0x34], 0
jmp 0x43b2d3
mov ecx, dword [esp + 0x5c]
mov eax, dword [edi + ecx*4 + 4]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.004139e0
mov ecx, dword [esp + 0x5c]
mov dword [edi + ecx*4 + 4], 0xffffffff
cmp dword [ebp + 0xc8], 0xc8
je 0x43b1f5
mov edx, dword [ebp + 0x144]
test edx, edx
je 0x43adf4
mov dword [edi + 0x244], 1
mov dword [esp + 4], str.Connect_me_again_please_n
mov dword [esp], ebp
call fcn.0040e21c
jmp 0x43ae1e
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.0040e21c
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 0x43b2cb
jg 0x43b463
cmp dword [esp + 0x40], 0
jbe 0x43b2cb
jmp 0x43b463
inc edx
mov dword [esp + 0x3c], edx
inc ecx
jmp 0x43b421
mov dword [esp + 4], str.chunk_reading_DONE_n
mov dword [esp], ebp
call fcn.0040e21c
mov dword [esp + 0x34], 0
jmp 0x43b2d3
mov edi, esi
jmp 0x43ade4