Function at 0x4e9400
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x64
mov eax, dword [0x84dfc0]
xor eax, esp
mov dword [esp + 0x60], eax
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 0x7c]
push ebx
push ebp
mov ebp, dword [esp + 0x74]
xor eax, eax
push esi
mov esi, dword [esp + 0x84]
cmp dword [esi + 0x338], 6
mov ebx, dword [esi]
sete al
push edi
mov dword [esp + 0x18], edx
mov dword [esp + 0x28], ecx
lea edi, [esi + 8]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x84]
mov eax, dword [esi + eax*4 + 0x420]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 4]
cmp eax, 1
jl 0x4e946d
cmp eax, 0x11
jl 0x4e947e
cmp dword [ecx], 0
jne 0x4e947e
mov eax, 1
mov ecx, esi
call fcn.004e9390
mov eax, dword [esi + 4]
dec eax
cmp eax, 0xd
ja case.0x4e9492.2
movzx ecx, byte [eax + 0x4e9a8c]
jmp dword [ecx*4 + 0x4e9a70]
cmp dword [esi + 0x53c], 0
mov ebx, dword [esp + 0x80]
mov dword [esi + 0x5f8], 1
je 0x4e94d7
cmp dword [esp + 0x1c], 0
mov eax, 0x798568
jne 0x4e94c4
mov eax, 0x80bb84
mov edx, dword [esi]
push ebx
push ebp
push eax
push str.SOCKS4_s:_connecting_to_HTTP_proxy__s_port__d_n
push edx
call fcn.004bd2f0
add esp, 0x14
mov eax, dword [esp + 0x10]
push ebx
push ebp
push str.SOCKS4_communication_to__s:_d_n
push eax
call fcn.004bd2f0
mov ecx, ebx
sar ecx, 8
add esp, 0x10
cmp dword [esp + 0x1c], 0
mov byte [edi], 4
mov byte [edi + 1], 1
mov byte [edi + 2], cl
mov byte [edi + 3], bl
jne 0x4e95d0
lea edx, [esp + 0x14]
push edx
push 0
push ebx
push ebp
push esi
call fcn.004e5a20
add esp, 0x14
cmp eax, 0xffffffff
je 0x4e96fd
mov ecx, esi
cmp eax, 1
jne 0x4e955c
mov eax, 0xa
call fcn.004e9390
mov eax, dword [esp + 0x10]
push ebp
push str.SOCKS4_non_blocking_resolve_of__s_n
push eax
call fcn.004bd2f0
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0048d1f2
add esp, 0x64
ret
mov eax, 0xb
call fcn.004e9390
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
test ecx, ecx
je case.0x4e9492.11
mov ebx, dword [ecx]
test ebx, ebx
je 0x4e96ea
push 0x40
lea ecx, [esp + 0x34]
push ecx
push ebx
call fcn.004e4fa0
add esp, 0xc
cmp dword [ebx + 4], 2
jne 0x4e96b7
mov eax, dword [ebx + 0x18]
movzx edx, byte [eax + 4]
mov byte [edi + 4], dl
mov cl, byte [eax + 5]
mov byte [edi + 5], cl
movzx edx, byte [eax + 6]
lea ecx, [esp + 0x30]
push ecx
mov byte [edi + 6], dl
mov edx, dword [esp + 0x14]
mov al, byte [eax + 7]
push str.SOCKS4_connect_to_IPv4__s__locally_resolved__n
push edx
mov byte [edi + 7], al
call fcn.004bd2f0
jmp 0x4e96cd
mov eax, 9
mov ecx, esi
call fcn.004e9390
mov edx, dword [esp + 0x18]
lea ebx, [edi + 8]
mov byte [ebx], 0
test edx, edx
je 0x4e9721
mov eax, edx
lea ecx, [eax + 1]
mov dword [esp + 0x18], ecx
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4e95f7
sub eax, dword [esp + 0x18]
cmp eax, 0x250
jb 0x4e9715
mov edx, dword [esp + 0x10]
push str.Too_long_SOCKS_proxy_user_name__cant_use__n
push edx
call fcn.004bd3d0
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0xb
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0048d1f2
add esp, 0x64
ret
mov ecx, dword [esi + 0x364]
push ecx
push ebp
push esi
call fcn.004e5250
add esp, 0xc
mov dword [esp + 0x14], eax
test eax, eax
je 0x4e9680
push ebp
push str.Hostname__s_was_found_n
push ebx
mov dword [esi + 0x66c], eax
mov dword [esi + 0x678], 1
call fcn.004bd2f0
add esp, 0xc
mov eax, 0xb
mov ecx, esi
call fcn.004e9390
jmp 0x4e956a
mov eax, dword [ebx + 8]
lea edx, [esp + 0x14]
push edx
push eax
call fcn.004e5980
mov ecx, dword [esp + 0x1c]
add esp, 8
test ecx, ecx
jne 0x4e9576
pop edi
neg eax
pop esi
sbb eax, eax
pop ebp
and eax, 0x1b
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0048d1f2
add esp, 0x64
ret
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x30]
push eax
push str.SOCKS4_connection_to__s_not_supported_n
push ecx
xor ebx, ebx
call fcn.004bd3d0
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
add esp, 0xc
push edx
push eax
call fcn.004e5cb0
add esp, 8
test ebx, ebx
jne 0x4e95dc
mov ebx, dword [esp + 0x10]
push ebp
push str.Failed_to_resolve___s__for_SOCKS4_connect.
push ebx
call fcn.004bd3d0
add esp, 0xc
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0048d1f2
add esp, 0x64
ret
inc eax
push eax
push edx
push ebx
call fcn.004909c0
add esp, 0xc
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4e9726
sub eax, edx
cmp dword [esp + 0x1c], 0
lea ebx, [eax + 9]
je 0x4e9780
mov eax, ebp
mov byte [edi + 4], cl
mov byte [edi + 5], cl
mov byte [edi + 6], cl
mov byte [edi + 7], 1
lea edx, [eax + 1]
jmp 0x4e9750
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4e9750
sub eax, edx
inc eax
mov dword [esp + 0x18], eax
cmp eax, 0xff
ja 0x4e97ec
mov ecx, ebx
sub ecx, ebp
mov eax, ebp
lea edx, [ecx + edi]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4e9772
add ebx, dword [esp + 0x18]
mov eax, 0xe
mov ecx, esi
mov dword [esi + 0x264], edi
mov dword [esi + 0x260], ebx
call fcn.004e9390
mov ebx, dword [esp + 0x10]
mov ecx, dword [esi + 0x260]
mov edx, dword [esi + 0x264]
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x24]
push ecx
push edx
push eax
push esi
call fcn.004bd910
add esp, 0x14
test eax, eax
je 0x4e9816
cmp eax, 0x51
je 0x4e9816
push str.Failed_to_send_SOCKS4_connect_request.
push ebx
call fcn.004bd3d0
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x1d
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0048d1f2
add esp, 0x64
ret
mov edx, dword [esp + 0x10]
push str.SOCKS4:_too_long_host_name
push edx
call fcn.004bd3d0
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 9
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0048d1f2
add esp, 0x64
ret
mov eax, dword [esi + 0x260]
mov ecx, dword [esp + 0x2c]
cmp ecx, eax
je 0x4e9847
add dword [esi + 0x264], ecx
sub eax, ecx
pop edi
mov dword [esi + 0x260], eax
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0048d1f2
add esp, 0x64
ret
mov eax, 4
mov ecx, esi
mov dword [esi + 0x260], 8
mov dword [esi + 0x264], edi
call fcn.004e9390
mov edx, dword [esi + 0x260]
mov eax, dword [esi + 0x264]
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x24]
push edx
push eax
push ecx
call fcn.004bd190
mov ecx, dword [esp + 0x34]
add esp, 0x10
test eax, eax
je 0x4e98bd
cmp eax, 0x51
je 0x4e98e7
push eax
call fcn.004ea9f0
push eax
push str.SOCKS4:_Failed_receiving_connect_request_ack:__s
push ebx
call fcn.004bd3d0
add esp, 0x10
pop edi
pop esi
pop ebp
mov eax, 0xf
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0048d1f2
add esp, 0x64
ret
test ecx, ecx
jne 0x4e98e7
push str.connection_to_proxy_closed
push ebx
call fcn.004bd3d0
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0048d1f2
add esp, 0x64
ret
mov eax, dword [esi + 0x260]
cmp ecx, eax
jne 0x4e9824
mov eax, 0x11
mov ecx, esi
call fcn.004e9390
cmp byte [edi], 0
je 0x4e992c
push str.SOCKS4_reply_has_wrong_version__version_should_be_0.
push ebx
call fcn.004bd3d0
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0048d1f2
add esp, 0x64
ret
movzx eax, byte [edi + 1]
lea ecx, [eax - 0x5a]
cmp ecx, 3
ja case.default.0x4e993c
jmp dword [ecx*4 + 0x4e9a9c]
cmp dword [esp + 0x1c], 0
mov eax, 0x798568
jne 0x4e9954
mov eax, 0x80bb84
push eax
push str.SOCKS4_s_request_granted._n
push ebx
call fcn.004bd2f0
mov edx, dword [esp + 0x34]
add esp, 0xc
pop edi
pop esi
pop ebp
mov dword [edx], 1
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0048d1f2
add esp, 0x64
ret
movzx ecx, byte [edi + 3]
movzx edx, byte [edi + 7]
push eax
movzx eax, byte [edi + 2]
shl eax, 8
or eax, ecx
movzx ecx, byte [edi + 5]
push eax
movzx eax, byte [edi + 6]
push edx
movzx edx, byte [edi + 4]
push eax
push ecx
push edx
push str.Cant_complete_SOCKS4_connection_to__d._d._d._d:_d.___d___request_rejected_or_failed.
push ebx
call fcn.004bd3d0
mov eax, 0x1a
jmp 0x4e9a57
movzx ecx, byte [edi + 3]
movzx edx, byte [edi + 7]
push eax
movzx eax, byte [edi + 2]
shl eax, 8
or eax, ecx
movzx ecx, byte [edi + 5]
push eax
movzx eax, byte [edi + 6]
push edx
movzx edx, byte [edi + 4]
push eax
push ecx
push edx
push str.Cant_complete_SOCKS4_connection_to__d._d._d._d:_d.___d___request_rejected_because_SOCKS_server_cannot_connect_to_identd_on_the_client.
push ebx
call fcn.004bd3d0
mov eax, 7
jmp 0x4e9a57
movzx ecx, byte [edi + 3]
movzx edx, byte [edi + 7]
push eax
movzx eax, byte [edi + 2]
shl eax, 8
or eax, ecx
movzx ecx, byte [edi + 5]
push eax
movzx eax, byte [edi + 6]
push edx
movzx edx, byte [edi + 4]
push eax
push ecx
push edx
push str.Cant_complete_SOCKS4_connection_to__d._d._d._d:_d.___d___request_rejected_because_the_client_program_and_identd_report_different_user_ids.
push ebx
call fcn.004bd3d0
mov eax, 8
jmp 0x4e9a57
movzx ecx, byte [edi + 3]
movzx edx, byte [edi + 7]
push eax
movzx eax, byte [edi + 2]
shl eax, 8
or eax, ecx
movzx ecx, byte [edi + 5]
push eax
movzx eax, byte [edi + 6]
push edx
movzx edx, byte [edi + 4]
push eax
push ecx
push edx
push str.Cant_complete_SOCKS4_connection_to__d._d._d._d:_d.___d___Unknown.
push ebx
call fcn.004bd3d0
mov eax, 0x1f
mov ecx, dword [esp + 0x90]
add esp, 0x20
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0048d1f2
add esp, 0x64
ret