Function at 0x4595c6
Capabilities:
Connect socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
lea ebp, [esp - 0x3184]
mov eax, 0x3184
call section..text
push 0xffffffffffffffff
push 0x6b3bbc
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x7bb21c]
xor eax, ebp
mov dword [ebp + 0x3180], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x34], edi
mov eax, dword [ebp + 0x318c]
xor ebx, ebx
mov dword [ebp - 0x14], eax
lea eax, [edi + 0x30]
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], 1
mov dword [ebp - 0x70], 6
mov dword [ebp - 0x28], ebx
jb 0x459644
mov eax, dword [eax]
cmp dword [edi + 0x14], 0x10
jb 0x45964c
mov ecx, dword [edi]
lea edx, [ebp - 0x28]
push edx
lea edx, [ebp - 0x7c]
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x45a0cd
mov eax, dword [ebp - 0x28]
push dword [eax + 0xc]
push dword [eax + 8]
push dword [eax + 4]
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x459689
push 0
push str.Cannot_create_outgoing_socket
jmp 0x45a0d3
and dword [ebp - 0x30], 0
lea eax, [ebp - 0x2c]
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
push eax
push 0x1006
push 0xffff
push ebx
mov dword [ebp - 0x2c], 0x3e8
call esi
push 4
lea eax, [ebp - 0x2c]
push eax
push 0x1005
push 0xffff
push ebx
call esi
push 4
lea eax, [ebp - 0x30]
push eax
push 0x1b
push 0x29
push ebx
call esi
mov eax, dword [ebp - 0x28]
push dword [eax + 0x10]
push dword [eax + 0x18]
push ebx
call dword [sym.imp.WS2_32.dll_connect]
push dword [ebp - 0x28]
mov esi, eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp esi, 0xffffffff
jne 0x459700
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
push 0
push str.Socket_cannot_connect
jmp 0x45a0d3
push 0
push 0
push 0x7010
push 0xffff
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
push 1
lea ecx, [ebp - 0x11c]
call fcn.0043c724
xor eax, eax
mov dword [ebp + 0x130], 0xf
mov dword [ebp + 0x11c], eax
mov dword [ebp - 4], eax
mov dword [ebp + 0x12c], eax
mov byte [ebp + 0x11c], al
lea ecx, [ebp + 0x11c]
mov byte [ebp - 4], 1
cmp dword [edi + 0x70], eax
je 0x459763
push 4
push 0x6dfcd4
call fcn.0040fe77
mov esi, dword [edi + 0x70]
jmp 0x459791
cmp dword [edi + 0x78], eax
je 0x459783
push 4
push 0x6dfcd4
call fcn.0040fe77
push 0
push dword [edi + 0x78]
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, eax
jmp 0x459791
push 3
push 0x6dfcdc
call fcn.0040fe77
xor esi, esi
cmp dword [ebp + 0x130], 0x10
lea eax, [ebp + 0x11c]
jb 0x4597a6
mov eax, dword [ebp + 0x11c]
push dword [ebp + 0x12c]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.00443cb8
mov ecx, eax
mov eax, 0x6dfce0
push eax
push esi
push 0x6dfce4
push str.Connection:_close_r_n
push str.User_Agent:_Hydra_HttpRequest_r_n
push eax
push edi
push 0x6dfd2c
push str._HTTP_1.1_r_n
lea eax, [edi + 0x18]
push eax
push 0x6df1c8
push ecx
call fcn.00445150
push eax
call fcn.00443bf5
push eax
call fcn.00445150
push eax
call fcn.00445150
push eax
call fcn.00443bf5
push eax
call fcn.00445150
push eax
call fcn.00445150
push eax
call fcn.00445150
push eax
call fcn.00445150
mov ecx, eax
call fcn.0043ca10
push eax
call fcn.00445150
xor esi, esi
cmp dword [edi + 0x58], esi
je 0x459856
push 0x6dfce0
lea eax, [edi + 0x48]
push eax
push 0x6dfd40
lea eax, [ebp - 0x11c]
push eax
call fcn.00445150
push eax
call fcn.00443bf5
push eax
call fcn.00445150
push 0x6dfce0
lea eax, [ebp - 0x11c]
push eax
call fcn.00445150
cmp dword [edi + 0x70], esi
je 0x45987c
lea eax, [edi + 0x60]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.00443bf5
lea eax, [ebp + 4]
push eax
lea ecx, [ebp - 0x118]
call fcn.0043fb52
lea eax, [ebp + 0x14c]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x118]
call fcn.0043fb52
cmp dword [ebp + 0x160], 0x10
lea eax, [ebp + 0x14c]
jb 0x4598b6
mov eax, dword [ebp + 0x14c]
push esi
push dword [ebp + 0x14]
mov esi, dword [sym.imp.WS2_32.dll_send]
push eax
push ebx
call esi
lea ecx, [ebp + 0x14c]
mov dword [edi + 0xbc], eax
call fcn.004102c8
lea ecx, [ebp + 4]
mov byte [ebp - 4], 1
call fcn.004102c8
cmp dword [edi + 0xbc], 0xffffffff
jne 0x4598fd
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
push 0
push str.Socket_cannot_send
jmp 0x45a0d3
cmp dword [edi + 0x78], 0
je 0x45995a
xor eax, eax
push eax
push eax
push eax
push dword [edi + 0x78]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
and dword [ebp - 0x1c], 0
jmp 0x45993b
cmp dword [ebp - 0x1c], 0
je 0x45995a
push 0
push dword [ebp - 0x1c]
lea eax, [ebp + 0x217c]
push eax
push ebx
call esi
cmp eax, 0xffffffff
je 0x459a1f
add dword [edi + 0xbc], eax
push 0
lea eax, [ebp - 0x1c]
push eax
push 0x1002
lea eax, [ebp + 0x217c]
push eax
push dword [edi + 0x78]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x459917
and dword [ebp + 0x164], 0
and dword [ebp + 0x174], 0
mov dword [ebp + 0x178], 0xf
mov byte [ebp + 0x164], 0
mov byte [ebp - 4], 3
mov byte [ebp - 0x15], 1
xor esi, esi
mov dword [ebp - 0x20], esi
push 0x2000
lea eax, [ebp + 0x17c]
push 0
push eax
call fcn.0066f070
add esp, 0xc
lea eax, [ebp + 0x17c]
push 0
push 0x1fff
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x459af9
add dword [edi + 0xc0], eax
cmp byte [ebp - 0x15], 0
je 0x459ac6
push eax
lea eax, [ebp + 0x17c]
push eax
lea ecx, [ebp + 0x164]
call fcn.0041001f
cmp dword [ebp + 0x178], 0x10
lea edx, [ebp + 0x164]
mov dword [ebp - 0x10], edx
jb 0x4599f7
mov edx, dword [ebp + 0x164]
mov dword [ebp - 0x10], edx
mov ecx, dword [ebp + 0x174]
mov dword [ebp - 0x1c], ecx
cmp ecx, 4
jb 0x459a61
lea eax, [ecx - 4]
cmp esi, eax
ja 0x459a61
lea eax, [ecx - 3]
add eax, edx
lea ecx, [edx + esi]
mov dword [ebp - 0x24], eax
sub eax, ecx
push eax
push 0xd
push ecx
jmp 0x459a50
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
push 0
push str.Socket_cannot_send_post
jmp 0x45a0d3
push 4
push str._r_n_r_n
push esi
call fcn.0066e15e
add esp, 0xc
test eax, eax
je 0x459a74
mov eax, dword [ebp - 0x24]
inc esi
sub eax, esi
push eax
push 0xd
push esi
call fcn.0066f1d0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x459a32
mov ecx, dword [ebp - 0x1c]
lea esi, [ecx - 4]
mov dword [ebp - 0x20], esi
test esi, esi
jns 0x459986
jmp 0x459981
sub esi, dword [ebp - 0x10]
test esi, esi
jle 0x459a5e
cmp dword [ebp + 0x178], 0x10
lea eax, [ebp + 0x164]
jb 0x459a90
mov eax, dword [ebp + 0x164]
mov ecx, dword [ebp - 0x1c]
add eax, 4
push dword [ebp - 0x14]
sub ecx, esi
add eax, esi
sub ecx, 4
push ecx
push eax
mov ecx, edi
call fcn.004594c8
push 0
lea eax, [esi + 2]
push eax
lea ecx, [ebp + 0x164]
call fcn.0043ab4d
mov esi, dword [ebp - 0x20]
mov byte [ebp - 0x15], 0
jmp 0x459986
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x459ae1
push 0
push eax
lea eax, [ebp + 0x17c]
push eax
call fcn.0045a720
jmp 0x459986
push eax
lea eax, [ebp + 0x17c]
push eax
lea ecx, [edi + 0x80]
call fcn.0041001f
jmp 0x459986
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
cmp dword [ebp + 0x178], 0x10
lea ebx, [ebp + 0x164]
jb 0x459b15
mov ebx, dword [ebp + 0x164]
mov eax, dword [ebp + 0x174]
cmp eax, 2
jb 0x459b5e
dec eax
add eax, ebx
mov dword [ebp - 0x24], eax
sub eax, ebx
push eax
push 0xd
push ebx
jmp 0x459b50
push 2
push 0x6dfce0
push esi
call fcn.0066e15e
add esp, 0xc
test eax, eax
je 0x459c1a
mov eax, dword [ebp - 0x24]
inc esi
sub eax, esi
push eax
push 0xd
push esi
call fcn.0066f1d0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x459b2e
or esi, 0xffffffff
xor ebx, ebx
mov dword [ebp + 0x118], 0xf
push esi
push ebx
lea eax, [ebp + 0x164]
mov dword [ebp + 0x104], ebx
push eax
lea ecx, [ebp + 0x104]
mov dword [ebp + 0x114], ebx
mov byte [ebp + 0x104], bl
call fcn.00437228
push 1
push str.______t___0_9_____t_
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 4
call fcn.00448d66
lea ecx, [ebp + 0xb4]
call fcn.00448e1b
push ebx
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp + 0xb4]
push eax
lea eax, [ebp + 0x104]
push eax
call fcn.00448509
test al, al
jne 0x459c21
push str.HttpRequest_status_line_not_recognizable__
lea ecx, [ebp]
call fcn.00444009
lea eax, [ebp + 0x104]
mov byte [ebp - 4], 7
push eax
mov eax, dword [ebp]
lea ecx, [ebp]
call dword [eax + 0x28]
mov eax, dword [ebp]
lea ecx, [ebp]
push 0x75ba98
call dword [eax + 0x24]
push ebx
lea eax, [ebp]
push eax
lea ecx, [ebp + 0x1c]
call fcn.00455a15
push 0x76625c
lea eax, [ebp + 0x1c]
jmp 0x45a0e9
sub esi, ebx
jmp 0x459b61
mov eax, dword [ebp + 0xc0]
mov ecx, dword [ebp + 0xbc]
sub eax, ecx
push 0xc
cdq
pop esi
idiv esi
cmp eax, 1
ja 0x459c42
lea ecx, [ebp + 0xe0]
jmp 0x459c45
add ecx, 0xc
lea eax, [ebp + 4]
push eax
call fcn.00454ad2
push 0x10
pop esi
cmp dword [eax + 0x14], esi
jb 0x459c58
mov eax, dword [eax]
push eax
call fcn.0067c59d
pop ecx
lea ecx, [ebp + 4]
mov dword [edi + 0x7c], eax
call fcn.004102c8
lea eax, [ebp + 0x164]
mov dword [ebp + 0x134], ebx
push eax
lea ecx, [ebp + 0x134]
mov dword [ebp + 0x144], ebx
mov dword [ebp + 0x148], ebx
call fcn.00410204
push 1
push str._.__:___t__.__r_n
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 8
call fcn.00448d66
lea ecx, [ebp + 0x4c]
call fcn.00448e1b
push ebx
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp + 0x4c]
push eax
lea eax, [ebp + 0x134]
push eax
call fcn.00448509
test al, al
je 0x459e08
lea eax, [edi + 0xb4]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x58]
mov edi, dword [ebp + 0x54]
sub eax, edi
push 0xc
pop ecx
cdq
idiv ecx
lea ecx, [ebp + 0x78]
mov dword [ebp - 0x10], eax
cmp eax, 1
jbe 0x459cef
lea ecx, [edi + 0xc]
lea eax, [ebp + 0x14c]
push eax
call fcn.00454ad2
lea ebx, [ebp + 0x14c]
mov byte [ebp - 4], 0xb
cmp dword [ebp + 0x160], esi
jb 0x459d13
mov ebx, dword [ebp + 0x14c]
lea ecx, [ebp + 0x14c]
jb 0x459d21
mov ecx, dword [ebp + 0x14c]
mov eax, dword [ebp + 0x15c]
lea esi, [ebp + 0x14c]
add eax, ecx
cmp dword [ebp + 0x160], 0x10
mov dword [ebp - 0x24], eax
jb 0x459d41
mov esi, dword [ebp + 0x14c]
cmp esi, eax
je 0x459d5f
mov edi, dword [ebp - 0x24]
sub ebx, esi
movsx eax, byte [esi]
push eax
call fcn.0067e2b0
mov byte [ebx + esi], al
inc esi
pop ecx
cmp esi, edi
jne 0x459d4a
mov edi, dword [ebp + 0x54]
cmp dword [ebp - 0x10], 2
lea ecx, [ebp + 0x78]
jbe 0x459d6b
lea ecx, [edi + 0x18]
lea eax, [ebp + 4]
push eax
call fcn.00454ad2
mov ecx, dword [ebp - 0x20]
push 0xc
pop eax
mov byte [ebp - 4], al
lea eax, [ebp + 0x14c]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.00459071
lea ecx, [ebp + 4]
push ecx
mov ecx, dword [eax]
add ecx, 0x28
call fcn.0040fb3f
lea ecx, [ebp + 4]
mov byte [ebp - 4], 0xb
call fcn.004102c8
lea eax, [ebp + 4]
push eax
lea ecx, [ebp + 0x6c]
call fcn.00454ad2
lea ecx, [ebp + 0x134]
xor ebx, ebx
cmp ecx, eax
je 0x459dce
mov byte [ebp - 0x1c], bl
push dword [ebp - 0x1c]
push eax
call fcn.0040fb18
lea ecx, [ebp + 4]
call fcn.004102c8
lea ecx, [ebp + 0x14c]
mov byte [ebp - 4], 0xa
call fcn.004102c8
push ebx
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp + 0x4c]
push eax
lea eax, [ebp + 0x134]
push eax
call fcn.00448509
push 0x10
pop esi
test al, al
jne 0x459cd3
mov edi, dword [ebp - 0x34]
push 8
mov dword [ebp + 0x14c], ebx
lea ecx, [ebp + 0x14c]
push str.location
mov dword [ebp + 0x15c], ebx
mov dword [ebp + 0x160], 0xf
mov byte [ebp + 0x14c], bl
call fcn.0040fe77
lea eax, [ebp + 0x14c]
mov byte [ebp - 4], 0xd
push eax
lea eax, [ebp - 0x84]
push eax
lea ecx, [edi + 0xb4]
call fcn.004590fd
lea ecx, [ebp + 0xec]
mov eax, dword [eax]
add eax, 0x28
mov dword [ebp + 0xec], ebx
push eax
mov dword [ebp + 0xfc], ebx
mov dword [ebp + 0x100], ebx
call fcn.00410204
mov eax, dword [ebp + 0x160]
mov byte [ebp - 4], 0xf
cmp eax, esi
jb 0x459eb4
mov ecx, dword [ebp + 0x14c]
inc eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x20], ecx
cmp eax, 0x1000
jb 0x459eab
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0042741e
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
push eax
push ecx
call fcn.0066bb0a
pop ecx
pop ecx
cmp dword [ebp + 0xfc], 0
mov dword [ebp + 0x15c], ebx
mov dword [ebp + 0x160], 0xf
mov byte [ebp + 0x14c], bl
je 0x459ee4
push dword [ebp - 0x14]
lea eax, [ebp + 0xec]
mov ecx, edi
push eax
call fcn.0045a5c7
mov eax, dword [ebp + 0x100]
mov edi, 0x1000
cmp eax, esi
jb 0x459f20
mov ecx, dword [ebp + 0xec]
inc eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], eax
cmp eax, edi
jb 0x459f17
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0042741e
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
push eax
push ecx
call fcn.0066bb0a
pop ecx
pop ecx
lea ecx, [ebp + 0x54]
mov dword [ebp + 0xfc], ebx
mov dword [ebp + 0x100], 0xf
mov byte [ebp + 0xec], bl
call fcn.0044d5a6
lea ecx, [ebp - 0x48]
call fcn.0044d511
lea ecx, [ebp - 0x3c]
call fcn.00413148
mov eax, dword [ebp + 0x148]
cmp eax, esi
jb 0x459f85
mov ecx, dword [ebp + 0x134]
inc eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], eax
cmp eax, edi
jb 0x459f7c
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0042741e
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
push eax
push ecx
call fcn.0066bb0a
pop ecx
pop ecx
lea ecx, [ebp + 0xbc]
mov dword [ebp + 0x144], ebx
mov dword [ebp + 0x148], 0xf
mov byte [ebp + 0x134], bl
call fcn.0044d5a6
lea ecx, [ebp - 0x5c]
call fcn.0044d511
lea ecx, [ebp - 0x50]
call fcn.00413148
mov eax, dword [ebp + 0x118]
cmp eax, esi
jb 0x459fed
mov ecx, dword [ebp + 0x104]
inc eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], eax
cmp eax, edi
jb 0x459fe4
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0042741e
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
push eax
push ecx
call fcn.0066bb0a
pop ecx
pop ecx
mov eax, dword [ebp + 0x178]
mov byte [ebp + 0x104], bl
mov dword [ebp + 0x118], 0xf
mov dword [ebp + 0x114], ebx
cmp eax, esi
jb 0x45a03a
mov ecx, dword [ebp + 0x164]
inc eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], eax
cmp eax, edi
jb 0x45a031
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0042741e
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
push eax
push ecx
call fcn.0066bb0a
pop ecx
pop ecx
mov eax, dword [ebp + 0x130]
mov byte [ebp + 0x164], bl
mov dword [ebp + 0x178], 0xf
mov dword [ebp + 0x174], ebx
cmp eax, esi
jb 0x45a087
mov ecx, dword [ebp + 0x11c]
inc eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], eax
cmp eax, edi
jb 0x45a07e
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0042741e
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
push eax
push ecx
call fcn.0066bb0a
pop ecx
pop ecx
lea ecx, [ebp - 0x11c]
mov dword [ebp + 0x12c], ebx
mov dword [ebp + 0x130], 0xf
mov byte [ebp + 0x11c], bl
call fcn.0043cc00
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x3180]
xor ecx, ebp
call fcn.0066c2cf
add ebp, 0x3184
leave
ret 4
push ebx
push str.getaddrinfo_failed
lea ecx, [ebp + 0x84]
call fcn.00455b25
push 0x76625c
lea eax, [ebp + 0x84]
push eax
call fcn.0066d585
int3