Function at 0x100076c0
Capabilities:
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x10017a63
mov eax, dword fs:[0]
push eax
sub esp, 0x438
mov eax, dword [0x100220e0]
xor eax, esp
mov dword [esp + 0x430], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100220e0]
xor eax, esp
push eax
lea eax, [esp + 0x44c]
mov dword fs:[0], eax
push str.Enter_
mov edi, edx
mov esi, ecx
push 0xe
xor ebx, ebx
push 4
mov edx, str.DownLoadFile
mov ecx, str..httpdownload.cpp
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], ebx
call fcn.10001780
add esp, 0xc
cmp esi, ebx
je 0x10007a44
cmp edi, ebx
je 0x10007a44
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.10007ab0
mov dword [esp + 0x454], ebx
lea ebx, [esp + 0x14]
call fcn.10007bf0
mov ebx, eax
call fcn.10007c80
mov edi, dword [esp + 0x14]
add edi, 7
push 0x2f
push edi
mov dword [esp + 0x20], edi
call dword [sym.imp.SHLWAPI.dll_StrChrIA]
mov esi, eax
test esi, esi
jne 0x100077c0
push str.NULL__pos
push 0x22
push 2
mov edx, str.DownLoadFile
mov ecx, str..httpdownload.cpp
call fcn.10001780
mov dword [esp + 0x460], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10007a5f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x10007a5f
mov byte [esi], 0
inc esi
test byte [0x1002283c], 1
jne 0x100077f6
or dword [0x1002283c], 1
mov byte [esp + 0x454], 1
call fcn.1000b010
push 0x10017e10
call fcn.10015675
add esp, 4
mov byte [esp + 0x454], 0
mov ecx, edi
call fcn.1000b2d0
mov ebp, eax
or ebx, 0xffffffff
cmp ebp, ebx
jne 0x1000783e
push str._1__sock
push 0x2a
push 2
mov edx, str.DownLoadFile
mov ecx, str..httpdownload.cpp
call fcn.10001780
mov dword [esp + 0x460], ebx
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jmp 0x100077ab
cmp dword [esp + 0x45c], ebx
je 0x100078d1
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea ecx, [esp + 0x460]
push ecx
push 0x1005
push 0xffff
push ebp
call edi
cmp eax, ebx
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
jne 0x10007890
call ebx
push eax
push str.SO_SNDTIMEO_setsockopt_failed:__d
push 0x35
push 2
mov edx, str.DownLoadFile
mov ecx, str..httpdownload.cpp
call fcn.10001780
add esp, 0x10
push 4
lea edx, [esp + 0x460]
push edx
push 0x1006
push 0xffff
push ebp
call edi
cmp eax, 0xffffffff
jne 0x100078ca
call ebx
push eax
push str.SO_RCVTIMEO_setsockopt_failed:__d
push 0x3b
push 2
mov edx, str.DownLoadFile
mov ecx, str..httpdownload.cpp
call fcn.10001780
add esp, 0x10
mov edi, dword [esp + 0x18]
or ebx, 0xffffffff
push 0x3ff
lea eax, [esp + 0x49]
push 0
push eax
mov byte [esp + 0x50], 0
call sub.MSVCR90.dll_memset
add esp, 0xc
push edi
push esi
push str.GET___s_HTTP_1.1_r_nHost:__s_r_nConnection:_close_r_n_r_n
push 0x400
lea ecx, [esp + 0x54]
push 0x400
push ecx
call dword [sym.imp.MSVCR90.dll__snprintf_s]
lea eax, [esp + 0x5c]
add esp, 0x18
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10007910
sub eax, edx
test byte [0x1002283c], 1
mov edi, eax
jne 0x1000794d
or dword [0x1002283c], 1
mov byte [esp + 0x454], 2
call fcn.1000b010
push 0x10017e10
call fcn.10015675
add esp, 4
mov byte [esp + 0x454], 0
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x48]
push eax
lea esi, [esp + 0x2c]
mov eax, ebp
call fcn.1000ba00
test eax, eax
jge 0x1000799e
push str.sendandfetchcontent___0
push 0x46
push 2
mov edx, str.DownLoadFile
mov ecx, str..httpdownload.cpp
call fcn.10001780
mov dword [esp + 0x460], ebx
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jmp 0x100077ab
mov edi, dword [esp + 0x20]
lea ecx, [esp + 0x28]
push edi
push ecx
call fcn.1000d95c
add esp, 8
mov byte [esp + 0x454], 3
cmp dword [eax + 0x18], 8
jb 0x100079c3
mov eax, dword [eax + 4]
jmp 0x100079c6
add eax, 4
push eax
call fcn.1000d8d1
add esp, 4
lea ecx, [esp + 0x28]
mov byte [esp + 0x454], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x24]
push edx
push esi
mov ecx, edi
call fcn.100071e0
add esp, 8
test eax, eax
jl 0x10007a03
mov dword [esp + 0x1c], 1
jmp 0x10007a1e
push str.WriteToFile___0
push 0x51
push 2
mov edx, str.DownLoadFile
mov ecx, str..httpdownload.cpp
call fcn.10001780
add esp, 0xc
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
mov dword [esp + 0x458], ebx
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jmp 0x100077ab
push str.NULL__lpszUrl__NULL__lpszFilePath
push 0x14
push 2
mov edx, str.DownLoadFile
mov ecx, str..httpdownload.cpp
call fcn.10001780
add esp, 0xc
push str.Leave_
push 0x59
push 4
mov edx, str.DownLoadFile
mov ecx, str..httpdownload.cpp
call fcn.10001780
mov eax, dword [esp + 0x28]
add esp, 0xc
mov ecx, dword [esp + 0x44c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x430]
xor ecx, esp
call fcn.10015494
add esp, 0x444
ret