Function at 0x576550
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x2c8
mov eax, dword [0x5ea2c4]
xor eax, esp
mov dword [esp + 0x2c4], eax
mov ecx, dword [esp + 0x2d0]
mov eax, dword [esp + 0x2cc]
mov edx, dword [esp + 0x2dc]
push ebx
push ebp
mov ebp, dword [esp + 0x2e8]
mov dword [esp + 0x28], ecx
xor ecx, ecx
cmp dword [ebp + 0xd0], 5
push esi
mov esi, dword [ebp]
sete cl
push edi
mov edi, dword [ebp + edx*4 + 0x1a8]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x2e4]
mov dword [esp + 0x20], eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], esi
lea ecx, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x5765c0
mov edx, dword [esi + 0x194]
sub eax, ecx
cmp dword [ebp + 0x298], 0
mov ebx, eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x14], edx
je 0x5765fd
mov eax, dword [esp + 0x2e8]
mov ecx, dword [esp + 0x20]
push eax
push ecx
push str.SOCKS5:_connecting_to_HTTP_proxy__s_port__d_n
push esi
call fcn.00559140
add esp, 0x10
cmp dword [esp + 0x18], 0
jne 0x576626
cmp ebx, 0xff
jbe 0x576626
mov edx, dword [ebp]
push ebx
push str.SOCKS5:_server_resolving_disabled_for_hostnames_of_length___255__actual_len_zu__n
push edx
call fcn.00559140
add esp, 0xc
mov dword [esp + 0x18], 1
push 1
push 0
push esi
call fcn.0055d460
mov ebx, edx
add esp, 0xc
mov dword [esp + 0x28], eax
test ebx, ebx
jg 0x576658
jl 0x576643
test eax, eax
jae 0x576658
push str.Connection_time_out
push esi
call fcn.005591d0
mov eax, 0x1c
jmp 0x576d12
push 1
push edi
call fcn.0057dfc0
mov eax, dword [esp + 0x30]
push ebx
push eax
push edi
push 0xffffffffffffffff
push 0xffffffffffffffff
call fcn.0054f550
add esp, 0x1c
cmp eax, 0xffffffff
jne 0x576686
mov ecx, dword [ebp]
push str.SOCKS5:_no_connection_here
push ecx
jmp 0x576d08
test eax, eax
jne 0x5766a2
mov edx, dword [ebp]
push str.SOCKS5:_connection_timeout
push edx
call fcn.005591d0
mov eax, 0x1c
jmp 0x576d12
test al, 4
je 0x5766b4
mov eax, dword [ebp]
push str.SOCKS5:_error_occurred_during_connection
push eax
jmp 0x576d08
mov eax, dword [esp + 0x14]
test eax, 0xfffffffa
je 0x5766d5
mov ecx, dword [ebp]
push eax
push str.warning:_unsupported_value_passed_to_CURLOPT_SOCKS5_AUTH:__lu_n
push ecx
call fcn.00559140
mov eax, dword [esp + 0x20]
add esp, 0xc
test al, 1
jne 0x5766e1
mov dword [esp + 0x1c], 0
cmp dword [esp + 0x1c], 0
mov byte [esp + 0x3c], 5
mov byte [esp + 0x3e], 0
mov eax, 3
je 0x576701
mov byte [esp + 0x3f], 2
mov eax, 4
sub al, 2
push 0
push edi
mov byte [esp + 0x45], al
call fcn.0057dfc0
mov edx, dword [esp + 0x2f0]
mov eax, dword [esp + 0x28]
push edx
push eax
push str.SOCKS5_communication_to__s:_d_n
push esi
call fcn.00559140
movzx edx, byte [esp + 0x55]
lea ecx, [esp + 0x3c]
push ecx
add edx, 2
push edx
lea eax, [esp + 0x5c]
push eax
push edi
push ebp
call fcn.00559760
add esp, 0x2c
test eax, eax
jne 0x576d02
movzx ecx, byte [esp + 0x3d]
add ecx, 2
cmp dword [esp + 0x24], ecx
jne 0x576d02
push 1
push edi
call fcn.0057dfc0
mov edx, dword [esp + 0x30]
push ebx
push edx
push 0xffffffffffffffff
push 0xffffffffffffffff
push edi
call fcn.0054f550
add esp, 0x1c
cmp eax, 0xffffffff
jne 0x57678c
mov eax, dword [ebp]
push str.SOCKS5_nothing_to_read
push eax
jmp 0x576d08
test eax, eax
jne 0x5767a8
mov ecx, dword [ebp]
push str.SOCKS5_read_timeout
push ecx
call fcn.005591d0
mov eax, 0x1c
jmp 0x576d12
test al, 4
je 0x5767c4
mov edx, dword [ebp]
push str.SOCKS5_read_error_occurred
push edx
call fcn.005591d0
mov eax, 0x38
jmp 0x576d12
push 0
push edi
call fcn.0057dfc0
lea eax, [esp + 0x30]
push eax
push 2
lea ecx, [esp + 0x4c]
push ecx
push edi
push ebp
call fcn.00575fa0
add esp, 0x1c
test eax, eax
jne 0x576cfb
cmp dword [esp + 0x28], 2
jne 0x576cfb
cmp byte [esp + 0x3c], 5
je 0x576806
push str.Received_invalid_version_in_initial_SOCKS5_response.
jmp 0x576d07
mov al, byte [esp + 0x3d]
test al, al
je 0x57692a
cmp al, 2
jne 0x576cbe
mov eax, dword [esp + 0x1c]
xor ebx, ebx
cmp eax, ebx
je 0x57684f
mov esi, dword [esp + 0x30]
cmp esi, ebx
je 0x57684f
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x576830
sub eax, edx
mov ebx, eax
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x576840
sub eax, edx
mov dword [esp + 0x14], eax
jmp 0x576853
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x3c], 1
mov byte [esp + 0x3d], bl
test eax, eax
je 0x576877
test ebx, ebx
je 0x576877
push ebx
push eax
lea edx, [esp + 0x46]
push edx
call fcn.00530500
add esp, 0xc
mov al, byte [esp + 0x14]
lea esi, [ebx + 2]
mov byte [esp + esi + 0x3c], al
inc esi
cmp dword [esp + 0x30], 0
je 0x5768a8
cmp dword [esp + 0x14], 0
je 0x5768a8
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x30]
push ecx
push edx
lea eax, [esp + esi + 0x44]
push eax
call fcn.00530500
add esp, 0xc
add esi, dword [esp + 0x14]
lea ecx, [esp + 0x24]
push ecx
push esi
lea edx, [esp + 0x44]
push edx
push edi
push ebp
call fcn.00559760
add esp, 0x14
test eax, eax
jne 0x576cb2
cmp esi, dword [esp + 0x24]
jne 0x576cb2
lea eax, [esp + 0x28]
push eax
push 2
lea ecx, [esp + 0x44]
push ecx
push edi
push ebp
call fcn.00575fa0
add esp, 0x14
test eax, eax
jne 0x576ca6
cmp dword [esp + 0x28], 2
jne 0x576ca6
mov al, byte [esp + 0x3d]
test al, al
je 0x57692a
mov ecx, dword [esp + 0x10]
movzx edx, al
movzx eax, byte [esp + 0x3c]
push edx
push eax
push str.User_was_rejected_by_the_SOCKS5_server___d__d_.
push ecx
call fcn.005591d0
add esp, 0x10
mov eax, 7
jmp 0x576d15
cmp dword [esp + 0x18], 0
mov edx, dword [esp + 0x20]
mov byte [esp + 0x3c], 5
mov byte [esp + 0x3d], 1
mov byte [esp + 0x3e], 0
mov esi, 3
jne 0x5769f1
mov ebx, dword [esp + 0x34]
push ebx
push edx
lea eax, [esp + 0x49]
push eax
mov byte [esp + 0x4b], 3
mov byte [esp + 0x4c], bl
call fcn.00530500
lea esi, [ebx + 5]
mov ebx, dword [esp + 0x2f4]
add esp, 0xc
mov edi, dword [esp + 0x10]
mov eax, ebx
sar eax, 8
mov byte [esp + esi + 0x3c], al
inc esi
mov byte [esp + esi + 0x3c], bl
mov ebx, dword [esp + 0x38]
lea ecx, [esp + 0x24]
push ecx
inc esi
push esi
lea edx, [esp + 0x44]
push edx
push ebx
push ebp
call fcn.00559760
add esp, 0x14
test eax, eax
jne 0x576c9e
cmp esi, dword [esp + 0x24]
jne 0x576c9e
lea esi, [eax + 0xa]
lea eax, [esp + 0x28]
push eax
push esi
lea ecx, [esp + 0x44]
push ecx
push ebx
push ebp
call fcn.00575fa0
add esp, 0x14
test eax, eax
jne 0x576c96
cmp dword [esp + 0x28], esi
jne 0x576c96
cmp byte [esp + 0x3c], 5
je 0x576af6
push str.SOCKS5_reply_has_wrong_version__version_should_be_5.
push edi
jmp 0x576d08
mov ebx, dword [esp + 0x2e8]
lea ecx, [esp + 0x18]
push ecx
push ebx
push edx
push ebp
call fcn.00550730
add esp, 0x10
cmp eax, 0xffffffff
je 0x576aec
cmp eax, 1
jne 0x576a2c
lea eax, [esp + 0x18]
push eax
push ebp
call fcn.00550060
add esp, 8
test eax, eax
jne 0x576d15
mov eax, dword [esp + 0x18]
test eax, eax
je 0x576ad5
mov edi, dword [eax]
test edi, edi
je 0x576ad5
push 0x40
lea ecx, [esp + 0x298]
push ecx
push edi
call fcn.00550430
add esp, 0xc
cmp dword [edi + 4], 2
jne 0x576a9f
mov byte [esp + 0x3f], 1
mov eax, dword [edi + 0x18]
movzx edx, byte [eax + 4]
mov byte [esp + 0x40], dl
mov cl, byte [eax + 5]
mov byte [esp + 0x41], cl
movzx edx, byte [eax + 6]
lea ecx, [esp + 0x294]
push ecx
mov byte [esp + 0x46], dl
mov edx, dword [esp + 0x14]
mov al, byte [eax + 7]
push str.SOCKS5_connect_to_IPv4__s__locally_resolved__n
push edx
mov byte [esp + 0x4f], al
mov esi, 8
call fcn.00559140
jmp 0x576ab8
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x294]
push eax
push str.SOCKS5_connection_to__s_not_supported_n
push ecx
xor edi, edi
call fcn.005591d0
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
add esp, 0xc
push edx
push eax
call fcn.00550d90
add esp, 8
test edi, edi
jne 0x576973
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
push ecx
push str.Failed_to_resolve___s__for_SOCKS5_connect.
push edx
call fcn.005591d0
add esp, 0xc
mov eax, 6
jmp 0x576d15
mov al, byte [esp + 0x3f]
cmp al, 3
jne 0x576b3c
movzx esi, byte [esp + 0x40]
add esi, 7
cmp esi, 0xa
jle 0x576b4f
lea edx, [esp + 0x28]
push edx
lea edi, [esi - 0xa]
push edi
lea eax, [esp + 0x4e]
push eax
push ebx
push ebp
call fcn.00575fa0
add esp, 0x14
test eax, eax
jne 0x576b2d
cmp edi, dword [esp + 0x28]
je 0x576b47
mov ecx, dword [esp + 0x10]
push str.Failed_to_receive_SOCKS5_connect_request_ack.
push ecx
jmp 0x576d08
cmp al, 4
jne 0x576b4f
mov esi, 0x16
jmp 0x576b0b
mov al, byte [esp + 0x3f]
mov edi, dword [esp + 0x10]
mov cl, byte [esp + 0x3d]
test cl, cl
je 0x576c7c
cmp al, 1
jne 0x576ba3
movzx eax, byte [esp + 0x44]
movzx edx, cl
movzx ecx, byte [esp + 0x45]
push edx
movzx edx, byte [esp + 0x47]
shl eax, 8
or eax, ecx
movzx ecx, byte [esp + 0x45]
push eax
movzx eax, byte [esp + 0x4a]
push edx
movzx edx, byte [esp + 0x4c]
push eax
push ecx
push edx
push str.Cant_complete_SOCKS5_connection_to__d._d._d._d:_d.___d_
push edi
call fcn.005591d0
add esp, 0x20
mov eax, 7
jmp 0x576d15
cmp al, 3
jne 0x576be8
mov bl, byte [esp + esi + 0x3a]
movzx ecx, byte [esp + esi + 0x3b]
lea esi, [esp + esi + 0x3c]
mov byte [esi - 2], 0
movzx eax, byte [esp + 0x3d]
movzx edx, bl
push eax
shl edx, 8
or ecx, edx
push ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x49]
push eax
push str.Cant_complete_SOCKS5_connection_to__s:_d.___d_
push ecx
call fcn.005591d0
add esp, 0x14
mov eax, 7
jmp 0x576d15
cmp al, 4
jne 0x576c72
movzx eax, byte [esp + 0x50]
movzx edx, cl
movzx ecx, byte [esp + 0x51]
push edx
movzx edx, byte [esp + 0x53]
shl eax, 8
or eax, ecx
movzx ecx, byte [esp + 0x51]
push eax
movzx eax, byte [esp + 0x56]
push edx
movzx edx, byte [esp + 0x58]
push eax
movzx eax, byte [esp + 0x5b]
push ecx
movzx ecx, byte [esp + 0x5e]
push edx
movzx edx, byte [esp + 0x61]
push eax
movzx eax, byte [esp + 0x64]
push ecx
movzx ecx, byte [esp + 0x67]
push edx
movzx edx, byte [esp + 0x6a]
push eax
movzx eax, byte [esp + 0x6d]
push ecx
movzx ecx, byte [esp + 0x70]
push edx
movzx edx, byte [esp + 0x73]
push eax
movzx eax, byte [esp + 0x76]
push ecx
movzx ecx, byte [esp + 0x79]
push edx
movzx edx, byte [esp + 0x7c]
push eax
push ecx
push edx
push str.Cant_complete_SOCKS5_connection_to__02x_02x:_02x_02x:_02x_02x:_02x_02x:_02x_02x:_02x_02x:_02x_02x:_02x_02x:_d.___d_
push edi
call fcn.005591d0
add esp, 0x50
mov eax, 7
jmp 0x576d15
push str.SOCKS5_request_granted._n
push edi
call fcn.00559140
push 1
push ebx
call fcn.0057dfc0
add esp, 0x10
xor eax, eax
jmp 0x576d15
push str.Failed_to_receive_SOCKS5_connect_request_ack.
push edi
jmp 0x576d08
push str.Failed_to_send_SOCKS5_connect_request.
push edi
jmp 0x576d08
mov eax, dword [esp + 0x10]
push str.Unable_to_receive_SOCKS5_sub_negotiation_response.
push eax
jmp 0x576d08
mov ecx, dword [esp + 0x10]
push str.Failed_to_send_SOCKS5_sub_negotiation_request.
push ecx
jmp 0x576d08
cmp al, 1
jne 0x576ccc
push str.SOCKS5_GSSAPI_per_message_authentication_is_not_supported.
mov edx, esi
push edx
jmp 0x576d08
cmp al, 0xff
jne 0x576cf1
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x576ce7
cmp byte [eax], 0
je 0x576ce7
push str.No_authentication_method_was_acceptable.
mov eax, esi
push eax
jmp 0x576d08
push str.No_authentication_method_was_acceptable.__It_is_quite_likely_that_the_SOCKS5_server_wanted_a_username_password__since_none_was_supplied_to_the_server_on_this_connection._
mov ecx, esi
push ecx
jmp 0x576d08
push str.Undocumented_SOCKS5_mode_attempted_to_be_used_by_server.
mov edx, esi
push edx
jmp 0x576d08
push str.Unable_to_receive_initial_SOCKS5_response.
jmp 0x576d07
push str.Unable_to_send_initial_SOCKS5_request.
push esi
call fcn.005591d0
mov eax, 7
add esp, 8
mov ecx, dword [esp + 0x2d4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005273c3
add esp, 0x2c8
ret