Function at 0x487690
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x64
mov eax, dword [0x5d2020]
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 0x4876fd
cmp eax, 0x11
jl 0x48770e
cmp dword [ecx], 0
jne 0x48770e
mov eax, 1
mov ecx, esi
call fcn.00487620
mov eax, dword [esi + 4]
add eax, 0xffffffff
cmp eax, 0xd
ja case.0x487724.1
movzx ecx, byte [eax + 0x487c7c]
jmp dword [ecx*4 + 0x487c60]
cmp dword [esi + 0x53c], 0
mov ebx, dword [esp + 0x80]
mov dword [esi + 0x5c8], 1
je 0x487769
cmp dword [esp + 0x1c], 0
mov eax, 0x5820c8
jne 0x487756
mov eax, 0x5c38ea
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.0045c170
add esp, 0x14
mov eax, dword [esp + 0x10]
push ebx
push ebp
push str.SOCKS4_communication_to__s:_d_n
push eax
call fcn.0045c170
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 0x487876
lea edx, [esp + 0x14]
push edx
push 0
push ebx
push ebp
push esi
call fcn.00483c80
add esp, 0x14
cmp eax, 0xffffffff
jne 0x4877c9
pop edi
pop esi
pop ebp
mov eax, 5
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0044e502
add esp, 0x64
ret
cmp eax, 1
mov ecx, esi
jne 0x487802
mov eax, 0xa
call fcn.00487620
mov eax, dword [esp + 0x10]
push ebp
push str.SOCKS4_non_blocking_resolve_of__s_n
push eax
call fcn.0045c170
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0044e502
add esp, 0x64
ret
mov eax, 0xb
call fcn.00487620
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
test ecx, ecx
je case.0x487724.10
mov ebx, dword [ecx]
test ebx, ebx
je 0x48797b
push 0x40
lea ecx, [esp + 0x34]
push ecx
push ebx
call fcn.00483190
add esp, 0xc
cmp dword [ebx + 4], 2
jne 0x487948
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.0045c170
jmp 0x48795e
mov eax, 9
mov ecx, esi
call fcn.00487620
mov edx, dword [esp + 0x18]
test edx, edx
lea ebx, [edi + 8]
mov byte [ebx], 0
je 0x4879b4
mov eax, edx
lea ecx, [eax + 1]
mov dword [esp + 0x18], ecx
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4878a0
sub eax, dword [esp + 0x18]
cmp eax, 0x250
jb 0x4879a6
mov edx, dword [esp + 0x10]
push str.Too_long_SOCKS_proxy_name__cant_use__n
push edx
call fcn.0045c260
add esp, 8
jmp 0x487c47
mov ecx, dword [esi + 0x364]
push ecx
push ebp
push esi
call fcn.00483440
add esp, 0xc
test eax, eax
mov dword [esp + 0x14], eax
je 0x487918
push ebp
push str.Hostname__s_was_found_n
push ebx
mov dword [esi + 0x664], eax
mov dword [esi + 0x670], 1
call fcn.0045c170
add esp, 0xc
mov eax, 0xb
mov ecx, esi
call fcn.00487620
jmp 0x487810
mov eax, dword [ebx + 8]
lea edx, [esp + 0x14]
push edx
push eax
call fcn.00483be0
mov ecx, dword [esp + 0x1c]
add esp, 8
test ecx, ecx
jne 0x48781c
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0044e502
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.0045c260
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
add esp, 0xc
push edx
push eax
call fcn.00483ee0
add esp, 8
test ebx, ebx
jne 0x487882
mov ebx, dword [esp + 0x10]
push ebp
push str.Failed_to_resolve___s__for_SOCKS4_connect.
push ebx
call fcn.0045c260
add esp, 0xc
pop edi
pop esi
pop ebp
mov eax, 6
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0044e502
add esp, 0x64
ret
add eax, 1
push eax
push edx
push ebx
call sub.MSVCR80.dll_memcpy
add esp, 0xc
mov eax, ebx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4879c0
sub eax, edx
cmp dword [esp + 0x1c], 0
lea ebx, [eax + 9]
je 0x487a20
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]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4879e7
sub eax, edx
add eax, 1
cmp eax, 0xff
mov dword [esp + 0x18], eax
jg 0x487a79
mov ecx, ebx
sub ecx, ebp
mov eax, ebp
lea edx, [ecx + edi]
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x487a10
add ebx, dword [esp + 0x18]
mov eax, 0xe
mov ecx, esi
mov dword [esi + 0x264], edi
mov dword [esi + 0x260], ebx
call fcn.00487620
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.0045c880
add esp, 0x14
test eax, eax
je 0x487a90
cmp eax, 0x51
je 0x487a90
push str.Failed_to_send_SOCKS4_connect_request.
push ebx
call fcn.0045c260
add esp, 8
jmp 0x487c47
mov edx, dword [esp + 0x10]
push str.SOCKS4:_too_long_host_name
push edx
call fcn.0045c260
add esp, 8
jmp 0x487c47
mov eax, dword [esi + 0x260]
mov ecx, dword [esp + 0x2c]
cmp ecx, eax
je 0x487ac1
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.0044e502
add esp, 0x64
ret
mov eax, 4
mov ecx, esi
mov dword [esi + 0x260], 8
mov dword [esi + 0x264], edi
call fcn.00487620
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.0045c020
add esp, 0x10
test eax, eax
je 0x487b20
cmp eax, 0x51
je 0x487b20
push eax
call fcn.00488af0
push eax
push str.SOCKS4:_Failed_receiving_connect_request_ack:__s
push ebx
call fcn.0045c260
add esp, 0x10
jmp 0x487c47
mov eax, dword [esi + 0x260]
mov ecx, dword [esp + 0x24]
cmp ecx, eax
jne 0x487a9e
mov eax, 0x11
mov ecx, esi
call fcn.00487620
cmp byte [edi], 0
je 0x487b56
push str.SOCKS4_reply_has_wrong_version__version_should_be_0.
push ebx
call fcn.0045c260
add esp, 8
jmp 0x487c47
movzx eax, byte [edi + 1]
lea ecx, [eax - 0x5a]
cmp ecx, 3
ja case.default.0x487b66
jmp dword [ecx*4 + 0x487c8c]
cmp dword [esp + 0x1c], 0
mov eax, 0x5820c8
jne 0x487b7e
mov eax, 0x5c38ea
push eax
push str.SOCKS4_s_request_granted._n
push ebx
call fcn.0045c170
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.0044e502
add esp, 0x64
ret
movzx ecx, byte [edi + 7]
movzx edx, byte [edi + 6]
push eax
xor eax, eax
mov ah, byte [edi + 2]
mov al, byte [edi + 3]
push eax
movzx eax, byte [edi + 5]
push ecx
movzx ecx, byte [edi + 4]
push edx
push eax
push ecx
push str.Cant_complete_SOCKS4_connection_to__d._d._d._d:_d.___d___request_rejected_or_failed.
jmp 0x487c3e
movzx ecx, byte [edi + 6]
xor edx, edx
mov dh, byte [edi + 2]
push eax
movzx eax, byte [edi + 7]
mov dl, byte [edi + 3]
push edx
movzx edx, byte [edi + 5]
push eax
movzx eax, byte [edi + 4]
push ecx
push edx
push eax
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.
jmp 0x487c3e
movzx edx, byte [edi + 7]
xor ecx, ecx
mov ch, byte [edi + 2]
push eax
movzx eax, byte [edi + 6]
mov cl, byte [edi + 3]
push ecx
movzx ecx, byte [edi + 5]
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.
jmp 0x487c3e
movzx ecx, byte [edi + 7]
movzx edx, byte [edi + 6]
push eax
xor eax, eax
mov ah, byte [edi + 2]
mov al, byte [edi + 3]
push eax
movzx eax, byte [edi + 5]
push ecx
movzx ecx, byte [edi + 4]
push edx
push eax
push ecx
push str.Cant_complete_SOCKS4_connection_to__d._d._d._d:_d.___d___Unknown.
push ebx
call fcn.0045c260
add esp, 0x20
mov ecx, dword [esp + 0x70]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 7
call fcn.0044e502
add esp, 0x64
ret