Function at 0x45f710
Capabilities:
Create tcp socket
Create udp socket
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x646727
mov eax, dword fs:[0]
push eax
sub esp, 0x544
mov eax, dword [0x6bc858]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
push edi
push 1
mov ebx, ecx
push 2
mov dword [ebp - 0x4e0], ebx
call dword [sym.imp.WS2_32.dll_socket]
cmp dword [ebx + 0x180], 0x10
mov dword [ebp - 0x4e4], eax
jb 0x45f76a
mov eax, dword [ebx + 0x16c]
jmp 0x45f770
lea eax, [ebx + 0x16c]
push eax
lea esi, [ebp - 0x4e4]
call fcn.00429cd0
add esp, 4
test eax, eax
je 0x45f7a4
mov eax, 0xfffffff1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005f0da0
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x438], edi
push 8
mov dword [ebp - 4], edi
call fcn.005f0fe0
add esp, 4
cmp eax, edi
je 0x460061
mov dword [ebp - 0x438], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x438]
lea eax, [ebp - 0x438]
mov dword [ecx], eax
mov esi, 0xf
mov dword [ebp - 0x420], esi
mov dword [ebp - 0x424], edi
mov byte [ebp - 0x434], dl
mov dword [ebp - 4], 1
mov dword [ebp - 0x478], edi
push 8
mov byte [ebp - 4], 2
call fcn.005f0fe0
add esp, 4
cmp eax, edi
je 0x46002e
mov dword [ebp - 0x478], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x478]
lea edx, [ebp - 0x478]
mov dword [eax], edx
mov dword [ebp - 0x460], esi
mov dword [ebp - 0x464], edi
mov byte [ebp - 0x474], cl
mov dword [ebp - 0x498], edi
push 8
mov byte [ebp - 4], 4
call fcn.005f0fe0
add esp, 4
cmp eax, edi
je 0x45fffb
mov dword [ebp - 0x498], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x498]
lea ecx, [ebp - 0x498]
mov dword [edx], ecx
mov dword [ebp - 0x480], esi
mov dword [ebp - 0x484], edi
mov byte [ebp - 0x494], 0
lea eax, [ebx + 0xe8]
push eax
lea ecx, [ebp - 0x4b8]
push str.GET
push ecx
mov byte [ebp - 4], 5
call fcn.00460d00
add esp, 0xc
push eax
lea edx, [ebp - 0x4d8]
push edx
mov ecx, str._HTTP_1.1_r_n
mov byte [ebp - 4], 6
call fcn.0041f780
add esp, 8
mov esi, eax
lea edi, [ebp - 0x438]
mov byte [ebp - 4], 7
call fcn.00419940
lea ecx, [ebp - 0x4d8]
mov byte [ebp - 4], 6
call fcn.00412410
lea ecx, [ebp - 0x4b8]
mov byte [ebp - 4], 5
call fcn.00412410
lea eax, [ebx + 0xc8]
push eax
lea ecx, [ebp - 0x4d8]
push str.Host:
push ecx
call fcn.00460d00
add esp, 0xc
push eax
lea edx, [ebp - 0x4b8]
push edx
mov ecx, 0x683888
mov byte [ebp - 4], 8
call fcn.0041f780
add esp, 8
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
mov byte [ebp - 4], 9
call fcn.004129f0
lea ecx, [ebp - 0x4b8]
mov byte [ebp - 4], 8
call fcn.00412410
lea ecx, [ebp - 0x4d8]
mov byte [ebp - 4], 5
call fcn.00412410
push 0xd
push str.Accept:___r_n
mov ecx, edi
call fcn.00412ae0
push 0x12
push str.Pragma:_no_cache_r_n
mov ecx, edi
call fcn.00412ae0
push 0x19
push str.Cache_Control:_no_cache_r_n
mov ecx, edi
call fcn.00412ae0
cmp dword [ebx + 0x11c], 0
je 0x45f9ef
lea eax, [ebx + 0x108]
push eax
lea ecx, [ebp - 0x4d8]
push str.Referer:
push ecx
call fcn.00460d00
add esp, 0xc
push eax
lea edx, [ebp - 0x4b8]
push edx
mov ecx, 0x683888
mov byte [ebp - 4], 0xa
call fcn.0041f780
add esp, 8
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
mov byte [ebp - 4], 0xb
call fcn.004129f0
lea ecx, [ebp - 0x4b8]
mov byte [ebp - 4], 0xa
call fcn.00412410
lea ecx, [ebp - 0x4d8]
mov byte [ebp - 4], 5
call fcn.00412410
push 0x13
push str.Connection:_close_r_n
lea ecx, [ebp - 0x438]
call fcn.00412ae0
mov eax, dword [ebx + 0xa4]
mov ecx, dword [ebx + 0xa0]
push eax
push ecx
push str.Range:_bytes_d__d_r_n
lea ecx, [ebp - 0x4b8]
call fcn.004d2ae0
add esp, 0xc
mov esi, eax
lea edi, [ebp - 0x478]
mov byte [ebp - 4], 0xc
call fcn.00419940
lea ecx, [ebp - 0x4b8]
mov byte [ebp - 4], 5
call fcn.00412410
cmp dword [ebx + 4], 0
je 0x45fa5a
push 0xffffffffffffffff
push 0
mov edx, edi
push edx
lea ecx, [ebp - 0x438]
call fcn.004129f0
push 2
push 0x683888
lea ecx, [ebp - 0x438]
call fcn.00412ae0
cmp dword [ebp - 0x420], 0x10
mov eax, dword [ebp - 0x434]
jae 0x45fa81
lea eax, [ebp - 0x434]
mov edi, dword [ebp - 0x424]
push eax
lea ebx, [ebp - 0x4e4]
call fcn.00429ee0
add esp, 4
xor ebx, ebx
push ebx
push 0x6745b6
lea ecx, [ebp - 0x438]
call fcn.00412c10
push 0x401
lea eax, [ebp - 0x418]
push ebx
push eax
call fcn.005ff630
add esp, 0xc
lea ecx, [ebp - 0x4dc]
push ecx
lea edx, [ebp - 0x418]
push edx
lea eax, [ebp - 0x4e4]
mov dword [ebp - 0x4dc], ebx
call fcn.00429e10
add esp, 8
cmp dword [ebp - 0x4dc], ebx
jg 0x45fb22
lea ecx, [ebp - 0x498]
mov byte [ebp - 4], 3
call fcn.00412410
lea ecx, [ebp - 0x478]
mov byte [ebp - 4], 1
call fcn.00412410
lea ecx, [ebp - 0x438]
mov dword [ebp - 4], 0xffffffff
call fcn.00412410
mov eax, 0xffffffec
jmp 0x45f788
lea eax, [ebp - 0x418]
push eax
call fcn.004600a0
mov esi, eax
mov dword [ebp - 0x458], ebx
push 8
mov byte [ebp - 4], 0xd
call fcn.005f0fe0
add esp, 4
cmp eax, ebx
je 0x45ffc8
mov dword [ebp - 0x458], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x458]
lea ecx, [ebp - 0x458]
mov dword [edx], ecx
mov dword [ebp - 0x440], 0xf
mov dword [ebp - 0x444], ebx
mov byte [ebp - 0x454], 0
mov edi, dword [ebp - 0x4e0]
push 0xffffffffffffffff
push ebx
lea eax, [edi + 0x2c]
push eax
mov byte [ebp - 4], 0xe
call fcn.004126e0
mov eax, dword [ebp - 0x454]
cmp dword [edi + 0x15c], ebx
jne 0x45fbc8
cmp dword [ebp - 0x440], 0x10
jae 0x45fbb3
lea eax, [ebp - 0x454]
push 0x682830
push eax
call fcn.005f5530
mov ebx, eax
mov dword [ebp - 0x4e0], ebx
jmp 0x45fbea
cmp dword [ebp - 0x440], 0x10
jae 0x45fbd7
lea eax, [ebp - 0x454]
push 0x683988
push eax
call fcn.005f5530
mov dword [ebp - 0x4e0], eax
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x45fc61
push str.Error_in_file_open__n
lea eax, [ebp - 0x4ec]
mov dword [ebp - 0x4ec], str.HTTPDownload.cpp
mov dword [ebp - 0x4e8], 0x1f8
call fcn.0041d7b0
add esp, 4
lea ecx, [ebp - 0x458]
mov byte [ebp - 4], 5
call fcn.00412410
lea ecx, [ebp - 0x498]
mov byte [ebp - 4], 3
call fcn.00412410
lea ecx, [ebp - 0x478]
mov byte [ebp - 4], 1
call fcn.00412410
lea ecx, [ebp - 0x438]
mov dword [ebp - 4], 0xffffffff
call fcn.00412410
mov eax, 0xfffffff6
jmp 0x45f788
mov ecx, dword [edi + 0xa0]
push 0
push ecx
push ebx
call fcn.005f6220
add esp, 0xc
push str.Entering_the_key_section__n
lea eax, [ebp - 0x4ec]
mov dword [ebp - 0x4ec], str.HTTPDownload.cpp
mov dword [ebp - 0x4e8], 0x1fd
call fcn.0041d7b0
mov edx, dword [ebp - 0x4dc]
add esp, 4
push ebx
sub edx, esi
push edx
lea eax, [ebp + esi - 0x418]
push 1
push eax
call fcn.005f5d70
mov ebx, dword [edi + 0xa0]
sub ebx, esi
add ebx, dword [ebp - 0x4dc]
xor esi, esi
add esp, 0x10
cmp dword [edi + 8], esi
jne 0x45fe40
push 0x401
lea ecx, [ebp - 0x418]
push 0
push ecx
call fcn.005ff630
add esp, 0xc
lea edx, [ebp - 0x4dc]
push edx
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x4e4]
call fcn.00429e10
mov eax, dword [ebp - 0x4dc]
add esp, 8
test eax, eax
je 0x45ff73
cmp eax, 0xffffffff
je 0x45ff73
mov ecx, dword [ebp - 0x4e0]
push ecx
push eax
lea edx, [ebp - 0x418]
push 1
push edx
call fcn.005f5d70
add ebx, dword [ebp - 0x4dc]
inc esi
add esp, 0x10
cmp esi, 0x64
jl 0x45fe36
sub esp, 0x20
mov esi, esp
mov dword [ebp - 0x4f8], esp
mov dword [ebp - 0x4e8], esi
mov dword [esi], 0
push 8
mov byte [ebp - 4], 0x10
call fcn.005f0fe0
add esp, 4
test eax, eax
je 0x45ff3c
mov dword [esi], eax
xor ecx, ecx
xor edx, edx
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, dword [esi]
mov dword [eax], esi
push 0xffffffffffffffff
mov byte [ebp - 4], 0x11
push edx
lea ecx, [edi + 0x6c]
push ecx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], edx
mov ecx, esi
mov byte [esi + 4], dl
call fcn.004126e0
sub esp, 0x20
mov esi, esp
mov dword [ebp - 0x4e8], esp
mov dword [ebp - 0x4e8], esi
mov dword [esi], 0
push 8
mov byte [ebp - 4], 0x13
call fcn.005f0fe0
add esp, 4
test eax, eax
je 0x45ff05
mov dword [esi], eax
xor edx, edx
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], edx
mov edx, dword [esi]
mov dword [edx], esi
mov byte [ebp - 4], 0x14
push 0xffffffffffffffff
mov dword [esi + 0x14], ecx
push ecx
mov dword [esi + 0x18], 0xf
lea eax, [edi + 0x4c]
mov byte [esi + 4], cl
push eax
mov ecx, esi
call fcn.004126e0
mov byte [ebp - 4], 0x12
mov ecx, dword [edi + 0x148]
mov edx, dword [edi + 0x14c]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [edi + 0x150]
mov dword [eax + 4], edx
mov edx, dword [edi + 0x154]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, dword [edi + 0x160]
push eax
push ebx
mov byte [ebp - 4], 0xe
call fcn.004603f0
xor esi, esi
cmp dword [edi + 8], 0
je 0x45fccf
add dword [edi + 0xa0], ebx
sub esp, 0x20
lea ecx, [edi + 0x6c]
mov edx, esp
mov dword [ebp - 0x4e8], esp
push ecx
push edx
call fcn.004121e0
sub esp, 0x20
mov byte [ebp - 4], 0xf
lea eax, [edi + 0x4c]
mov ecx, esp
mov dword [ebp - 0x4f8], esp
push eax
push ecx
call fcn.004121e0
mov edx, dword [edi + 0x148]
mov ecx, dword [edi + 0x14c]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [edi + 0x150]
mov dword [eax + 4], ecx
mov ecx, dword [edi + 0x154]
mov dword [eax + 8], edx
mov edx, dword [edi + 0x160]
push edx
push ebx
mov dword [eax + 0xc], ecx
mov byte [ebp - 4], 0xe
call fcn.004603f0
mov eax, dword [ebp - 0x4e0]
push eax
call fcn.005f64a0
add esp, 4
lea ecx, [ebp - 0x458]
mov byte [ebp - 4], 5
call fcn.00412410
lea ecx, [ebp - 0x498]
mov byte [ebp - 4], 3
call fcn.00412410
lea ecx, [ebp - 0x478]
mov byte [ebp - 4], 1
call fcn.00412410
lea ecx, [ebp - 0x438]
mov dword [ebp - 4], 0xffffffff
call fcn.00412410
mov eax, 0xfffffffb
jmp 0x45f788
lea ecx, [ebp - 0x4f4]
push ecx
lea ecx, [ebp - 0x514]
mov dword [ebp - 0x4f4], 0
call fcn.005f41f0
push 0x6a361c
lea edx, [ebp - 0x514]
push edx
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call fcn.006009e0
lea eax, [ebp - 0x500]
push eax
lea ecx, [ebp - 0x538]
mov dword [ebp - 0x500], 0
call fcn.005f41f0
push 0x6a361c
lea ecx, [ebp - 0x538]
push ecx
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call fcn.006009e0
mov edx, dword [ebp - 0x4e0]
push edx
call fcn.005f64a0
add esp, 4
lea ecx, [ebp - 0x458]
mov byte [ebp - 4], 5
call fcn.00412410
lea ecx, [ebp - 0x498]
mov byte [ebp - 4], 3
call fcn.00412410
lea ecx, [ebp - 0x478]
mov byte [ebp - 4], 1
call fcn.00412410
lea ecx, [ebp - 0x438]
mov dword [ebp - 4], 0xffffffff
call fcn.00412410
xor eax, eax
jmp 0x45f788
lea eax, [ebp - 0x508]
push eax
lea ecx, [ebp - 0x550]
mov dword [ebp - 0x508], ebx
call fcn.005f41f0
push 0x6a361c
lea ecx, [ebp - 0x550]
push ecx
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call fcn.006009e0
lea edx, [ebp - 0x504]
push edx
lea ecx, [ebp - 0x52c]
mov dword [ebp - 0x504], edi
call fcn.005f41f0
push 0x6a361c
lea eax, [ebp - 0x52c]
push eax
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call fcn.006009e0
lea ecx, [ebp - 0x4fc]
push ecx
lea ecx, [ebp - 0x544]
mov dword [ebp - 0x4fc], edi
call fcn.005f41f0
push 0x6a361c
lea edx, [ebp - 0x544]
push edx
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call fcn.006009e0
lea eax, [ebp - 0x4f0]
push eax
lea ecx, [ebp - 0x520]
mov dword [ebp - 0x4f0], edi
call fcn.005f41f0
push 0x6a361c
lea ecx, [ebp - 0x520]
push ecx
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call fcn.006009e0
int3