Function at 0x1005cf70
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x2c8
mov eax, dword [0x101c1b88]
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]
add eax, 1
test dl, dl
jne 0x1005cfe0
mov edx, dword [esi + 0x194]
sub eax, ecx
cmp dword [ebp + 0x2b4], 0
mov ebx, eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x14], edx
je 0x1005d01f
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.100383e0
add esp, 0x10
cmp dword [esp + 0x18], 0
jne 0x1005d048
cmp ebx, 0xff
jbe 0x1005d048
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.100383e0
add esp, 0xc
mov dword [esp + 0x18], 1
push 1
push 0
push esi
call fcn.1003cae0
mov ebx, edx
add esp, 0xc
test ebx, ebx
mov dword [esp + 0x28], eax
jg 0x1005d07a
jl 0x1005d065
test eax, eax
jae 0x1005d07a
push str.Connection_time_out
push esi
call fcn.10038470
mov eax, 0x1c
jmp 0x1005d737
push 1
push edi
call fcn.10063500
mov eax, dword [esp + 0x30]
push ebx
push eax
push edi
push 0xffffffffffffffff
push 0xffffffffffffffff
call fcn.1002d0b0
add esp, 0x1c
cmp eax, 0xffffffff
jne 0x1005d0a8
mov ecx, dword [ebp]
push str.SOCKS5:_no_connection_here
push ecx
jmp 0x1005d72d
test eax, eax
jne 0x1005d0c4
mov edx, dword [ebp]
push str.SOCKS5:_connection_timeout
push edx
call fcn.10038470
mov eax, 0x1c
jmp 0x1005d737
test al, 4
je 0x1005d0d6
mov eax, dword [ebp]
push str.SOCKS5:_error_occurred_during_connection
push eax
jmp 0x1005d72d
mov eax, dword [esp + 0x14]
test eax, 0xfffffffa
je 0x1005d0f7
mov ecx, dword [ebp]
push eax
push str.warning:_unsupported_value_passed_to_CURLOPT_SOCKS5_AUTH:__lu_n
push ecx
call fcn.100383e0
mov eax, dword [esp + 0x20]
add esp, 0xc
test al, 1
jne 0x1005d103
mov dword [esp + 0x1c], 0
cmp dword [esp + 0x1c], 0
mov byte [esp + 0x3c], 5
mov byte [esp + 0x3e], 0
mov eax, 3
je 0x1005d123
mov byte [esp + 0x3f], 2
mov eax, 4
sub al, 2
push 0
push edi
mov byte [esp + 0x45], al
call fcn.10063500
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.100383e0
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.100389f0
add esp, 0x2c
test eax, eax
jne 0x1005d727
movzx ecx, byte [esp + 0x3d]
add ecx, 2
cmp dword [esp + 0x24], ecx
jne 0x1005d727
push 1
push edi
call fcn.10063500
mov edx, dword [esp + 0x30]
push ebx
push edx
push 0xffffffffffffffff
push 0xffffffffffffffff
push edi
call fcn.1002d0b0
add esp, 0x1c
cmp eax, 0xffffffff
jne 0x1005d1ae
mov eax, dword [ebp]
push str.SOCKS5_nothing_to_read
push eax
jmp 0x1005d72d
test eax, eax
jne 0x1005d1ca
mov ecx, dword [ebp]
push str.SOCKS5_read_timeout
push ecx
call fcn.10038470
mov eax, 0x1c
jmp 0x1005d737
test al, 4
je 0x1005d1e6
mov edx, dword [ebp]
push str.SOCKS5_read_error_occurred
push edx
call fcn.10038470
mov eax, 0x38
jmp 0x1005d737
push 0
push edi
call fcn.10063500
lea eax, [esp + 0x30]
push eax
push 2
lea ecx, [esp + 0x4c]
push ecx
push edi
push ebp
call fcn.1005c9c0
add esp, 0x1c
test eax, eax
jne 0x1005d720
cmp dword [esp + 0x28], 2
jne 0x1005d720
cmp byte [esp + 0x3c], 5
je 0x1005d228
push str.Received_invalid_version_in_initial_SOCKS5_response.
jmp 0x1005d72c
mov al, byte [esp + 0x3d]
test al, al
je 0x1005d351
cmp al, 2
jne 0x1005d6e3
mov eax, dword [esp + 0x1c]
xor ebx, ebx
cmp eax, ebx
je 0x1005d274
mov esi, dword [esp + 0x30]
cmp esi, ebx
je 0x1005d274
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1005d251
sub eax, edx
mov ebx, eax
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1005d263
sub eax, edx
mov dword [esp + 0x14], eax
jmp 0x1005d278
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x1c]
test eax, eax
mov byte [esp + 0x3c], 1
mov byte [esp + 0x3d], bl
je 0x1005d29c
test ebx, ebx
je 0x1005d29c
push ebx
push eax
lea edx, [esp + 0x46]
push edx
call fcn.1011e560
add esp, 0xc
mov al, byte [esp + 0x14]
lea esi, [ebx + 2]
mov byte [esp + esi + 0x3c], al
add esi, 1
cmp dword [esp + 0x30], 0
je 0x1005d2cf
cmp dword [esp + 0x14], 0
je 0x1005d2cf
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x30]
push ecx
push edx
lea eax, [esp + esi + 0x44]
push eax
call fcn.1011e560
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.100389f0
add esp, 0x14
test eax, eax
jne 0x1005d6d7
cmp esi, dword [esp + 0x24]
jne 0x1005d6d7
lea eax, [esp + 0x28]
push eax
push 2
lea ecx, [esp + 0x44]
push ecx
push edi
push ebp
call fcn.1005c9c0
add esp, 0x14
test eax, eax
jne 0x1005d6cb
cmp dword [esp + 0x28], 2
jne 0x1005d6cb
mov al, byte [esp + 0x3d]
test al, al
je 0x1005d351
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.10038470
add esp, 0x10
mov eax, 7
jmp 0x1005d73a
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 0x1005d41c
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.1011e560
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
add esi, 1
mov byte [esp + esi + 0x3c], bl
mov ebx, dword [esp + 0x38]
lea ecx, [esp + 0x24]
push ecx
add esi, 1
push esi
lea edx, [esp + 0x44]
push edx
push ebx
push ebp
call fcn.100389f0
add esp, 0x14
test eax, eax
jne 0x1005d6c3
cmp esi, dword [esp + 0x24]
jne 0x1005d6c3
lea esi, [eax + 0xa]
lea eax, [esp + 0x28]
push eax
push esi
lea ecx, [esp + 0x44]
push ecx
push ebx
push ebp
call fcn.1005c9c0
add esp, 0x14
test eax, eax
jne 0x1005d6bb
cmp dword [esp + 0x28], esi
jne 0x1005d6bb
cmp byte [esp + 0x3c], 5
je 0x1005d521
push str.SOCKS5_reply_has_wrong_version__version_should_be_5.
push edi
jmp 0x1005d72d
mov ebx, dword [esp + 0x2e8]
lea ecx, [esp + 0x18]
push ecx
push ebx
push edx
push ebp
call fcn.1002f970
add esp, 0x10
cmp eax, 0xffffffff
je 0x1005d517
cmp eax, 1
jne 0x1005d457
lea eax, [esp + 0x18]
push eax
push ebp
call fcn.1002dc00
add esp, 8
test eax, eax
jne 0x1005d73a
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1005d500
mov edi, dword [eax]
test edi, edi
je 0x1005d500
push 0x40
lea ecx, [esp + 0x298]
push ecx
push edi
call fcn.1002f4b0
add esp, 0xc
cmp dword [edi + 4], 2
jne 0x1005d4ca
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.100383e0
jmp 0x1005d4e3
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.10038470
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
add esp, 0xc
push edx
push eax
call fcn.1002ffe0
add esp, 8
test edi, edi
jne 0x1005d39a
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.10038470
add esp, 0xc
mov eax, 6
jmp 0x1005d73a
mov al, byte [esp + 0x3f]
cmp al, 3
jne 0x1005d567
movzx esi, byte [esp + 0x40]
add esi, 7
cmp esi, 0xa
jle 0x1005d57a
lea edx, [esp + 0x28]
push edx
lea edi, [esi - 0xa]
push edi
lea eax, [esp + 0x4e]
push eax
push ebx
push ebp
call fcn.1005c9c0
add esp, 0x14
test eax, eax
jne 0x1005d558
cmp edi, dword [esp + 0x28]
je 0x1005d572
mov ecx, dword [esp + 0x10]
push str.Failed_to_receive_SOCKS5_connect_request_ack.
push ecx
jmp 0x1005d72d
cmp al, 4
jne 0x1005d57a
mov esi, 0x16
jmp 0x1005d536
mov al, byte [esp + 0x3f]
mov edi, dword [esp + 0x10]
mov cl, byte [esp + 0x3d]
test cl, cl
je 0x1005d6a1
cmp al, 1
jne 0x1005d5ce
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.10038470
add esp, 0x20
mov eax, 7
jmp 0x1005d73a
cmp al, 3
jne 0x1005d60d
movzx ecx, byte [esp + esi + 0x3b]
mov bl, byte [esp + esi + 0x3a]
lea esi, [esp + esi + 0x3c]
mov ch, bl
mov byte [esi - 2], 0
movzx eax, byte [esp + 0x3d]
push eax
mov eax, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x49]
push edx
push str.Cant_complete_SOCKS5_connection_to__s:_d.___d_
push eax
call fcn.10038470
add esp, 0x14
mov eax, 7
jmp 0x1005d73a
cmp al, 4
jne 0x1005d697
movzx edx, byte [esp + 0x50]
movzx eax, byte [esp + 0x51]
movzx ecx, cl
push ecx
movzx ecx, byte [esp + 0x53]
shl edx, 8
or edx, eax
movzx eax, byte [esp + 0x51]
push edx
movzx edx, byte [esp + 0x56]
push ecx
movzx ecx, byte [esp + 0x58]
push edx
movzx edx, byte [esp + 0x5b]
push eax
movzx eax, byte [esp + 0x5e]
push ecx
movzx ecx, byte [esp + 0x61]
push edx
movzx edx, byte [esp + 0x64]
push eax
movzx eax, byte [esp + 0x67]
push ecx
movzx ecx, byte [esp + 0x6a]
push edx
movzx edx, byte [esp + 0x6d]
push eax
movzx eax, byte [esp + 0x70]
push ecx
movzx ecx, byte [esp + 0x73]
push edx
movzx edx, byte [esp + 0x76]
push eax
movzx eax, byte [esp + 0x79]
push ecx
movzx ecx, byte [esp + 0x7c]
push edx
push eax
push ecx
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.10038470
add esp, 0x50
mov eax, 7
jmp 0x1005d73a
push str.SOCKS5_request_granted._n
push edi
call fcn.100383e0
push 1
push ebx
call fcn.10063500
add esp, 0x10
xor eax, eax
jmp 0x1005d73a
push str.Failed_to_receive_SOCKS5_connect_request_ack.
push edi
jmp 0x1005d72d
push str.Failed_to_send_SOCKS5_connect_request.
push edi
jmp 0x1005d72d
mov edx, dword [esp + 0x10]
push str.Unable_to_receive_SOCKS5_sub_negotiation_response.
push edx
jmp 0x1005d72d
mov eax, dword [esp + 0x10]
push str.Failed_to_send_SOCKS5_sub_negotiation_request.
push eax
jmp 0x1005d72d
cmp al, 1
jne 0x1005d6f1
push str.SOCKS5_GSSAPI_per_message_authentication_is_not_supported.
mov ecx, esi
push ecx
jmp 0x1005d72d
cmp al, 0xff
jne 0x1005d716
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x1005d70c
cmp byte [eax], 0
je 0x1005d70c
push str.No_authentication_method_was_acceptable.
mov edx, esi
push edx
jmp 0x1005d72d
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 eax, esi
push eax
jmp 0x1005d72d
push str.Undocumented_SOCKS5_mode_attempted_to_be_used_by_server.
mov ecx, esi
push ecx
jmp 0x1005d72d
push str.Unable_to_receive_initial_SOCKS5_response.
jmp 0x1005d72c
push str.Unable_to_send_initial_SOCKS5_request.
push esi
call fcn.10038470
mov eax, 7
add esp, 8
mov ecx, dword [esp + 0x2d4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1011a380
add esp, 0x2c8
ret