Function at 0x40c5a0
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50b8ad
mov eax, dword fs:[0]
push eax
sub esp, 0x1d0
mov eax, dword [0x55c640]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
push 0xc0
lea eax, [ebp - 0xec]
mov dword [ebp - 4], 2
push 0
push eax
call fcn.00489f10
add esp, 8
lea ecx, [ebp - 0xec]
call fcn.0044f4e0
push ecx
push 8
push str._error_log.txt
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 3
call fcn.00452910
test eax, eax
lea ecx, [ebp - 0xec]
mov eax, dword [ebp - 0xec]
mov eax, dword [eax + 4]
jne 0x40c635
add ecx, eax
mov eax, dword [ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x40c644
or eax, 4
jmp 0x40c644
add ecx, eax
mov edx, 4
xor eax, eax
cmp dword [ecx + 0x38], eax
cmove eax, edx
push 0
push eax
call fcn.00407930
push ebx
push ecx
mov edx, str.dowload_file2__xxx_name
lea ecx, [ebp - 0xdc]
call fcn.00456c60
lea edx, [ebp + 0x24]
mov ecx, eax
call fcn.00456a00
mov edx, str._nadorazmer
mov ecx, eax
call fcn.00456c60
add esp, 4
mov ecx, eax
call fcn.0044ccc0
push eax
call fcn.00456f10
add esp, 4
test ebx, ebx
jne 0x40c77e
push 1
push ebx
push 0x5404c4
lea ecx, [ebp + 0x24]
call fcn.00451530
cmp eax, 0xffffffff
je 0x40c8ca
push ebx
push ecx
mov edx, str.dowload_file2__creat
lea ecx, [ebp - 0xdc]
call fcn.00456c60
lea edx, [ebp + 0x24]
mov ecx, eax
call fcn.00456a00
mov edx, str._nadorazmer
mov ecx, eax
call fcn.00456c60
add esp, 4
mov ecx, eax
call fcn.0044ccc0
push eax
call fcn.00456f10
add esp, 4
lea eax, [ebp - 0x1ac]
push 0xc0
push ebx
push eax
call fcn.00489f10
add esp, 8
lea ecx, [ebp - 0x1ac]
call fcn.0044f4e0
push ecx
push 2
lea eax, [ebp + 0x24]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x1ac]
call fcn.0044f6e0
lea ecx, [ebp - 0x194]
call fcn.004529d0
test eax, eax
jne 0x40c74f
mov eax, dword [ebp - 0x1ac]
lea ecx, [ebp - 0x1ac]
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x38], ebx
jne 0x40c747
or eax, 4
push 0
push eax
call fcn.00407930
lea ecx, [ebp - 0x134]
mov byte [ebp - 4], 3
call fcn.0044f600
lea eax, [ebp - 0x134]
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
push eax
call fcn.0046ca3b
add esp, 4
xor esi, esi
jmp 0x40cc8a
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], 5
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0x1b4], eax
test eax, eax
je 0x40c7d3
mov ecx, dword [ebp + 0x38]
lea edi, [ebp + 0x24]
cmp ecx, 0x10
lea esi, [ebp + 0x24]
cmovae edi, dword [ebp + 0x24]
cmovae esi, dword [ebp + 0x24]
call fcn.005084f0
push eax
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x1b4]
add eax, edi
push eax
push esi
call fcn.00509880
add esp, 0x10
push 0
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x1bc]
push eax
call fcn.00507c40
add esp, 0xc
mov edx, str.dowload_file2__is_directory
cmp dword [ebp - 0x1bc], 3
sete al
movzx eax, al
push eax
push ecx
lea ecx, [ebp - 0xdc]
call fcn.00456c60
add esp, 4
mov ecx, eax
call fcn.0044c980
push eax
call fcn.00456f10
add esp, 4
cmp dword [ebp - 0x18], 8
jb 0x40c82f
push dword [ebp - 0x2c]
call fcn.00485250
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], 7
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0x1b4], eax
test eax, eax
je 0x40c882
cmp dword [ebp + 0x38], 0x10
lea edi, [ebp + 0x24]
lea esi, [ebp + 0x24]
cmovae edi, dword [ebp + 0x24]
cmovae esi, dword [ebp + 0x24]
call fcn.005084f0
push eax
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x1b4]
add eax, edi
push eax
push esi
call fcn.00509880
add esp, 0x10
push 0
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x1bc]
push eax
call fcn.00507c40
add esp, 0xc
cmp dword [ebp - 0x1bc], 3
mov byte [ebp - 4], 3
sete al
cmp dword [ebp - 0x18], 8
mov byte [ebp - 0x1ad], al
jb 0x40c8c6
push dword [ebp - 0x2c]
call fcn.00485250
mov al, byte [ebp - 0x1ad]
add esp, 4
test al, al
je 0x40c8d1
xor esi, esi
jmp 0x40cc8a
mov eax, dword [ebp + 0x34]
lea ecx, [ebp + 0x24]
push 0xffffffffffffffff
add eax, 0xfffffffc
push eax
lea eax, [ebp - 0x1d4]
push eax
call fcn.0044bca0
mov edx, str..zip
mov byte [ebp - 4], 9
mov ecx, eax
call fcn.00457350
mov byte [ebp - 4], 3
cmp dword [ebp - 0x1c0], 0x10
mov byte [ebp - 0x1ad], al
jb 0x40c920
push dword [ebp - 0x1d4]
call fcn.00485250
mov al, byte [ebp - 0x1ad]
add esp, 4
test al, al
je 0x40c9bd
cmp dword [ebp + 0x38], 0x10
lea ecx, [ebp + 0x24]
cmovae ecx, dword [ebp + 0x24]
call fcn.00468d00
push ebx
push ecx
mov esi, eax
mov edx, str.dowload_file2_curl_slist_append_file_size_test
push esi
push ecx
lea ecx, [ebp - 0xdc]
call fcn.00456c60
add esp, 4
mov ecx, eax
call fcn.0044ccc0
mov edx, str._nadorazmer
mov ecx, eax
call fcn.00456c60
add esp, 4
mov ecx, eax
call fcn.0044ccc0
push eax
call fcn.00456f10
add esp, 4
cmp esi, ebx
jne 0x40c9bd
push ebx
push ecx
push esi
push ecx
mov edx, str.dowload_file2_curl_slist_append_file_size_test
lea ecx, [ebp - 0xdc]
call fcn.00456c60
add esp, 4
mov ecx, eax
call fcn.0044ccc0
mov edx, str.___nadorazmer
mov ecx, eax
call fcn.00456c60
add esp, 4
mov ecx, eax
call fcn.0044ccc0
push eax
call fcn.00456f10
add esp, 4
jmp 0x40cc8a
xorps xmm0, xmm0
movlpd qword [ebp - 0x1bc], xmm0
call fcn.00487ccf
mov dword [0x567a34], eax
call fcn.00487ccf
mov dword [0x5678f4], eax
call dword [sym.imp.libcurl.dll_curl_easy_init]
mov edi, eax
test edi, edi
je 0x40cc84
mov edx, str.dowload_file2_dowload_file
lea ecx, [ebp - 0xdc]
call fcn.00456c60
push eax
call fcn.00456f10
add esp, 4
push edi
call dword [sym.imp.libcurl.dll_curl_easy_perform]
add esp, 4
lea ecx, [ebp - 0xdc]
mov edx, str.dowload_file2_curl_slist_append
call fcn.00456c60
push eax
call fcn.00456f10
add esp, 4
push str.Mozilla_5.0__Windows_NT_6.1__Win64__x64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_74.0.3729.169_Safari_537.36
push 0
call dword [sym.imp.libcurl.dll_curl_slist_append]
add esp, 8
mov dword [ebp - 0x18], 0xf
mov esi, eax
mov dword [ebp - 0x1c], 0
lea eax, [ebp + 0x24]
mov byte [ebp - 0x2c], 0
lea ecx, [ebp - 0x2c]
push 0xffffffffffffffff
push 0
push eax
call fcn.00451080
push ecx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xa
call fcn.00468a10
add esp, 4
lea ecx, [ebp - 0xdc]
mov edx, str.dowload_file2_namezz
call fcn.00456c60
lea edx, [ebp - 0x2c]
mov ecx, eax
call fcn.00456a00
push eax
call fcn.00456f10
sub esp, 0x14
lea eax, [ebp + 0x3c]
mov ecx, esp
mov dword [ebp - 0x1b4], esp
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00451080
sub esp, 0x18
mov byte [ebp - 4], 0xb
mov ecx, esp
mov dword [ebp - 0x1d8], esp
lea eax, [ebp - 0x2c]
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00451080
sub esp, 0x18
mov byte [ebp - 4], 0xc
mov ecx, esp
lea eax, [ebp + 0xc]
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00451080
push dword [ebp + 8]
push ebx
push ecx
push esi
mov ecx, edi
mov byte [ebp - 4], 0xa
call fcn.0040c080
add esp, 0x58
lea ecx, [ebp - 0xdc]
test al, al
jne 0x40cb49
mov edx, str.dowload_file2_GETreq1_false
call fcn.00456c60
push eax
call fcn.00456f10
add esp, 4
lea ecx, [ebp - 0x2c]
call sym.Dayz_updater.exe_public:_void___thiscall_pbo::signature::destructor_void_
xor esi, esi
jmp 0x40cc8a
mov edx, str.dowload_file2_potock1
call fcn.00456c60
movss xmm1, dword [0x55d9c4]
mov ecx, eax
call fcn.0044d340
push eax
call fcn.00456f10
add esp, 4
lea ecx, [ebp - 0xdc]
mov edx, str.dowload_file2_name
call fcn.00456c60
lea edx, [ebp + 0x24]
mov ecx, eax
call fcn.00456a00
push eax
call fcn.00456f10
add esp, 4
mov edx, str.dowload_file2_nadorazmer
push ebx
push ecx
lea ecx, [ebp - 0xdc]
call fcn.00456c60
add esp, 4
mov ecx, eax
call fcn.0044ccc0
push eax
call fcn.00456f10
add esp, 4
mov dword [ebp - 0x1c0], 7
cmp dword [ebp + 0x38], 0x10
lea esi, [ebp + 0x24]
mov dword [ebp - 0x1c4], 0
cmovae esi, dword [ebp + 0x24]
xor eax, eax
mov word [ebp - 0x1d4], ax
mov byte [ebp - 4], 0xd
call fcn.005084f0
push eax
lea eax, [ebp - 0x1d4]
push eax
push 0
push esi
call fcn.00509880
lea eax, [ebp - 0x1d4]
mov byte [ebp - 4], 0xe
push 0
push eax
call fcn.00506b90
add esp, 0x18
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x1d4]
mov esi, eax
mov edi, edx
call fcn.0040a970
push edi
push esi
mov edx, str.dowload_file2_boost_file_size
lea ecx, [ebp - 0xdc]
call fcn.00456c60
mov ecx, eax
call fcn.0044d1a0
push eax
call fcn.00456f10
mov eax, esi
add esp, 4
or eax, edi
jne 0x40cc58
cmp dword [ebp + 0x38], 0x10
lea ecx, [ebp + 0x24]
cmovae ecx, dword [ebp + 0x24]
call fcn.00468d00
mov esi, eax
xor edi, edi
push edi
push esi
mov edx, str.dowload_file2_file_size
lea ecx, [ebp - 0xdc]
call fcn.00456c60
mov ecx, eax
call fcn.0044d1a0
push eax
call fcn.00456f10
add esp, 4
lea ecx, [ebp - 0x2c]
call sym.Dayz_updater.exe_public:_void___thiscall_pbo::signature::destructor_void_
jmp 0x40cc8a
mov esi, dword [ebp - 0x1bc]
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 2
call fcn.0044f600
lea eax, [ebp - 0x74]
mov dword [ebp - 0x74], vtable.std::ios_base.0
push eax
call fcn.0046ca3b
add esp, 4
cmp dword [ebp + 0x20], 0x10
jb 0x40ccba
push dword [ebp + 0xc]
call fcn.00485250
add esp, 4
cmp dword [ebp + 0x38], 0x10
mov dword [ebp + 0x20], 0xf
mov dword [ebp + 0x1c], 0
mov byte [ebp + 0xc], 0
jb 0x40ccdd
push dword [ebp + 0x24]
call fcn.00485250
add esp, 4
cmp dword [ebp + 0x50], 0x10
mov dword [ebp + 0x38], 0xf
mov dword [ebp + 0x34], 0
mov byte [ebp + 0x24], 0
jb 0x40cd00
push dword [ebp + 0x3c]
call fcn.00485250
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00484516
mov esp, ebp
pop ebp
ret