Function at 0x518d70
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c3b4c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x11c4
call fcn.00584c40
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x94], 0
push edi
mov dword [ebp - 0x10], esp
push str.settings
mov ecx, dword [esi]
mov dword [ebp - 0x4c], esi
call fcn.0051b0c0
cmp dword [eax + 0x10], 0
je 0x519023
mov edi, edi
cmp byte [0x618c03], 0
je 0x519023
mov ecx, dword [esi]
push str.settings
call fcn.0051b0c0
cmp dword [eax + 0x14], 8
jb 0x518de1
mov eax, dword [eax]
push 0
push 0
lea ecx, [ebp - 0x48]
push ecx
push eax
push 0
call dword [sym.imp.urlmon.dll_URLOpenBlockingStreamW]
test eax, eax
jns 0x519034
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x9c], eax
fild dword [ebp - 0x9c]
test eax, eax
jns 0x518e16
fadd qword [0x5f4758]
mov eax, dword [str.error]
mov dword [ebp - 0x64], 0
mov byte [ebp - 0x64], 0
mov dword [ebp - 0x64], eax
movzx eax, byte [0x5e7ec4]
fstp qword [ebp - 0x78]
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], 5
mov byte [ebp - 0x60], al
mov byte [ebp - 0x5f], 0
lea eax, [ebp - 0x64]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0xe0]
call fcn.00447260
fld qword [ebp - 0x78]
mov dword [ebp - 0xc8], 0
fstp qword [ebp - 0xb0]
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xb4], 0xf
mov byte [ebp - 0xc8], 0
mov byte [ebp - 0xa8], 0
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 1
push ecx
lea eax, [ebp - 0xa0]
push eax
push ecx
lea ecx, [ebp - 0xec]
call fcn.004456c0
push 0x20
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.0044a110
mov ecx, 6
mov dword [ebp - 0x30], 0x1a
mov esi, str.Could_not_connect_with_.
mov dword [ebp - 0x2c], 0x1f
mov edi, eax
mov dword [ebp - 0x40], eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov byte [eax + 0x1a], 0
push 0x20
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.0044a110
mov ecx, dword [str.settings_open_url]
mov edx, eax
mov dword [ebp - 0x18], 0x11
mov dword [ebp - 0x14], 0x1f
mov dword [ebp - 0x28], edx
mov dword [edx], ecx
mov ecx, dword [0x5f2d84]
mov dword [edx + 4], ecx
mov ecx, dword [0x5f2d88]
mov dword [edx + 8], ecx
mov eax, dword [0x5f2d8c]
mov dword [edx + 0xc], eax
movzx eax, byte [0x5f2d90]
mov byte [edx + 0x10], al
mov byte [edx + 0x11], 0
lea eax, [ebp - 0xec]
mov byte [ebp - 4], 4
push eax
push 0x23
lea eax, [ebp - 0x40]
mov ecx, 2
push str.settings.cpp
push eax
lea edx, [ebp - 0x28]
call fcn.004d4b60
mov byte [ebp - 4], 3
add esp, 0x10
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x518f93
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x518f89
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x51998a
push ecx
push edx
call fcn.00583877
add esp, 8
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0x10
jb 0x518fcb
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x518fc1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x51998a
push ecx
push edx
call fcn.00583877
add esp, 8
lea ecx, [ebp - 0xec]
call fcn.00449240
push fcn.00438e00
push 1
push 0x40
lea eax, [ebp - 0xe0]
mov byte [ebp - 4], 0
push eax
call fcn.00583d37
mov ecx, dword [ebp - 0x50]
cmp ecx, 0x10
jb 0x519023
mov edx, dword [ebp - 0x64]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x519019
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x51998a
push ecx
push edx
call fcn.00583877
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x1d4], 0x5dee48
mov dword [ebp - 0x1c4], 0x5dee40
mov dword [ebp - 0x164], 0
mov dword [ebp - 0x144], 0
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x13c], 0
mov dword [ebp - method.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
push ecx
lea eax, [ebp - 0x1bc]
mov dword [ebp - 4], 5
or dword [ebp - 0x94], 1
lea ecx, [ebp - 0x1d4]
push eax
call fcn.004576f0
mov dword [ebp - 4], 6
mov eax, dword [ebp - 0x1d4]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0x1d4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x1d8], eax
lea ecx, [ebp - 0x1bc]
call fcn.0044bc60
mov dword [ebp - method.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebp - 0x184], 0
mov dword [ebp - 0x180], 0
mov dword [ebp - 4], 7
lea esp, [esp]
mov ecx, dword [ebp - 0x48]
lea edx, [ebp - 0x44]
push edx
push 0x1000
mov dword [ebp - 0x44], 0
lea edx, [ebp - 0x11d4]
mov eax, dword [ecx]
push edx
push ecx
call dword [eax + 0xc]
mov ecx, dword [ebp - 0x44]
mov esi, eax
mov dword [ebp - 0x9c], esi
test ecx, ecx
je 0x519427
push 0
push ecx
lea eax, [ebp - 0x11d4]
push eax
lea ecx, [ebp - 0x1c4]
call fcn.004658d0
mov eax, dword [ebp - 0x44]
lea ecx, [ebp - 0x11d4]
add eax, ecx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp ecx, eax
je 0x51917e
sub eax, ecx
push eax
mov eax, ecx
lea ecx, [ebp - 0x28]
push eax
call fcn.00449cf0
mov dword [ebp - 0x7c], 0xf
mov dword [ebp - 0x80], 4
mov dword [ebp - 0x90], 0x6e6f736a
mov byte [ebp - 0x8c], 0
lea eax, [ebp - 0x90]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0xe0]
call fcn.00447260
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xa
push eax
lea ecx, [ebp - 0xc8]
call fcn.00447260
fldz
fstp qword [ebp - 0xb0]
mov byte [ebp - 0xa8], 0
lea edi, [ebp - 0xe0]
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0xa0]
mov dword [ebp - 0x70], 0
sub eax, edi
mov dword [ebp - 0x6c], 0
sar eax, 6
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x98], eax
test eax, eax
je 0x5192b3
cmp eax, 0x3ffffff
ja 0x519994
push eax
call fcn.0044f820
mov esi, eax
mov eax, dword [ebp - 0x98]
shl eax, 6
add eax, esi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x70]
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x98], eax
mov dword [ebp - 0xf8], esi
mov dword [ebp - 0xf4], esi
mov dword [ebp - 0xf0], eax
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 0xd
cmp edi, eax
je 0x5192a4
lea ecx, [ecx]
push edi
mov ecx, esi
mov dword [ebp - 0xa0], esi
call fcn.00447260
lea eax, [edi + 0x18]
mov byte [ebp - 4], 0xe
lea ecx, [esi + 0x18]
push eax
call fcn.00447260
fld qword [edi + 0x30]
fstp qword [esi + 0x30]
mov al, byte [edi + 0x38]
add edi, 0x40
mov byte [esi + 0x38], al
add esi, 0x40
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 0xd
mov dword [ebp - 0xf4], esi
cmp edi, eax
jne 0x519260
mov dword [ebp - 0xf8], esi
mov dword [ebp - 0x6c], esi
mov esi, dword [ebp - 0x9c]
mov dword [ebp - 0x40], 0
mov edi, 0x7d7b
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 2
mov word [ebp - 0x40], di
mov byte [ebp - 0x3e], 0
mov eax, dword [str.settings]
mov ecx, dword [0x5f2d5c]
mov dword [ebp - 0x64], 0
mov byte [ebp - 0x64], 0
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], 8
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], ecx
mov byte [ebp - 0x5c], 0
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 0x11
push eax
push 0x2f
lea eax, [ebp - 0x40]
xor ecx, ecx
push str.settings.cpp
push eax
lea edx, [ebp - 0x64]
call fcn.004d4b60
mov byte [ebp - 4], 0x10
add esp, 0x10
mov ecx, dword [ebp - 0x50]
cmp ecx, 0x10
jb 0x51935b
mov edx, dword [ebp - 0x64]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x519351
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x51998a
push ecx
push edx
call fcn.00583877
add esp, 8
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0x10
jb 0x519393
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x519389
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x51998a
push ecx
push edx
call fcn.00583877
add esp, 8
lea ecx, [ebp - 0x70]
call fcn.00449240
push fcn.00438e00
push 1
push 0x40
lea eax, [ebp - 0xe0]
mov byte [ebp - 4], 9
push eax
call fcn.00583d37
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x7c]
cmp ecx, 0x10
jb 0x5193ef
mov edx, dword [ebp - 0x90]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x5193e5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x51998a
push ecx
push edx
call fcn.00583877
add esp, 8
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x519427
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x51941d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x51998a
push ecx
push edx
call fcn.00583877
add esp, 8
test esi, esi
js 0x51943c
cmp esi, 1
jne 0x519100
test esi, esi
jns 0x51965d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xa0], eax
fild dword [ebp - 0xa0]
test eax, eax
jns 0x519458
fadd qword [0x5f4758]
push 5
mov dword [ebp - 0x40], 0
lea ecx, [ebp - 0x40]
push str.error
fstp qword [ebp - 0x78]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.00449cf0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 0x12
push eax
lea ecx, [ebp - 0xe0]
call fcn.00447260
fld qword [ebp - 0x78]
mov dword [ebp - 0xc8], 0
fstp qword [ebp - 0xb0]
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xb4], 0xf
mov byte [ebp - 0xc8], 0
mov byte [ebp - 0xa8], 0
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 0x13
push ecx
lea eax, [ebp - 0xa0]
push eax
push ecx
lea ecx, [ebp - 0xec]
call fcn.004456c0
push 0x20
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 0x14
call fcn.0044a110
mov ecx, dword [str.Download_failed_]
mov edx, eax
mov dword [ebp - 0x80], 0x12
mov dword [ebp - 0x7c], 0x1f
mov dword [ebp - 0x90], edx
mov dword [edx], ecx
mov ecx, dword [0x5f2dd8]
mov dword [edx + 4], ecx
mov ecx, dword [0x5f2ddc]
mov dword [edx + 8], ecx
mov eax, dword [0x5f2de0]
mov dword [edx + 0xc], eax
mov ax, word [0x5f2de4]
mov word [edx + 0x10], ax
mov byte [edx + 0x12], 0
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x28]
push 0x18
mov dword [ebp - 0x28], 0
push str.settings_download_failed
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.00449cf0
lea eax, [ebp - 0xec]
mov byte [ebp - 4], 0x16
push eax
push 0x34
lea eax, [ebp - 0x90]
mov ecx, 2
push str.settings.cpp
push eax
lea edx, [ebp - 0x28]
call fcn.004d4b60
mov byte [ebp - 4], 0x15
add esp, 0x10
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x5195cd
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x5195c3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x51998f
push ecx
push edx
call fcn.00583877
add esp, 8
mov byte [ebp - 4], 0x14
mov ecx, dword [ebp - 0x7c]
cmp ecx, 0x10
jb 0x519608
mov edx, dword [ebp - 0x90]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x5195fe
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x51998f
push ecx
push edx
call fcn.00583877
add esp, 8
lea ecx, [ebp - 0xec]
call fcn.00449240
push fcn.00438e00
push 1
push 0x40
lea eax, [ebp - 0xe0]
mov byte [ebp - 4], 0x12
push eax
call fcn.00583d37
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 7
call fcn.004470b0
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
lea ecx, [ebp - 0x1d4]
call fcn.00454000
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x4c]
mov edi, dword [edi]
add edi, 0x2b8
mov ecx, edi
mov esi, dword [edi]
push dword [esi + 4]
push edi
call fcn.005247f0
mov dword [esi + 4], esi
mov dword [esi], esi
mov dword [esi + 8], esi
mov dword [edi + 4], 0
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x10c]
push 0
mov byte [ebp - 0x114], 0
call fcn.00465b40
lea edx, [ebp - 0x114]
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x1d4]
call fcn.004d85a0
mov eax, dword [ebp - 0x4c]
lea ecx, [ebp - 0x114]
push str.access
mov esi, dword [eax]
call fcn.004dc650
sub esp, 0x10
mov ecx, esp
push eax
call fcn.004d8890
mov ecx, esi
call fcn.0051f280
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x10c]
push dword [ebp - 0x114]
call fcn.00464cd0
mov dword [ebp - 4], 7
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
xor esi, esi
nop
cmp byte [0x618c03], 0
je 0x519728
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x78], 0x64
mov dword [ebp - 0x74], 0
call fcn.0044d050
inc esi
cmp esi, 0x1770
jl 0x519700
mov eax, dword [ebp - 0x1d4]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0x1d4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x1d8], eax
lea ecx, [ebp - 0x1bc]
call fcn.004571f0
mov eax, dword [ebp - 0x1d4]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_iostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_iostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x1d4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ebp + ecx - 0x1d8], eax
mov eax, dword [ebp - 0x1c4]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x1c4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x1c8], eax
mov eax, dword [ebp - 0x1d4]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_istream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x1d4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0x1d8], eax
lea eax, [ebp - 0x16c]
mov dword [ebp - 4], 0x25
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0057190c
mov esi, dword [ebp - 0x4c]
add esp, 4
mov dword [ebp - 4], 0xffffffff
jmp 0x518dc0
call fcn.00591c98
call fcn.00591c98
call fcn.0044b8f0
int3