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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50d188
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x5557a0]
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
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x58], eax
push str.downloadfile_start
push 0x126
push str.CCurlDownloader::downloadFile
mov dword [ebp - 4], 0
call fcn.00435bf0
add esp, 0xc
call fcn.00494cb0
mov edi, eax
mov dword [ebp - 0x78], edi
test edi, edi
jne 0x41534e
push str.init_error
push 0x12c
push str.CCurlDownloader::downloadFile
call fcn.00435bf0
add esp, 0xc
xor bl, bl
jmp 0x415716
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x54], 0
jb 0x41535f
mov eax, dword [esi]
jmp 0x415361
mov eax, esi
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x54], eax
cmp eax, 0xffffffff
jne 0x4153b0
cmp dword [esi + 0x14], 8
jb 0x41538a
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.open_file_error:__s.__d
push 0x13a
push str.CCurlDownloader::downloadFile
call fcn.00435bf0
add esp, 0x14
xor bl, bl
jmp 0x415716
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x38], 0
lea eax, [ebp + 0x10]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x48]
call fcn.004157c0
xorps xmm0, xmm0
mov dword [ebp - 0x50], 0
push 0
movq qword [ebp - 0x30], xmm0
push 0
mov dword [ebp - 0x2c], 0
call fcn.00415880
mov ebx, eax
mov dword [ebp - 0x30], ebx
push str.Content_Type:_application_x_www_form_urlencoded
push 0
mov byte [ebp - 4], 2
call fcn.00495140
push str.User_Agent:_Mozilla_5.0
push eax
call fcn.00495140
mov esi, dword [ebx]
add esp, 0x10
mov dword [ebp - 0x74], eax
cmp esi, ebx
je 0x415473
mov edi, eax
jmp 0x415420
push 0xffffffffffffffff
lea ecx, [esi + 8]
mov dword [ebp - 0x14], 0xf
push 0
push ecx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00403590
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push edi
call fcn.00495140
add esp, 8
mov edi, eax
cmp dword [ebp - 0x14], 0x10
jb 0x41546a
push dword [ebp - 0x28]
call fcn.0047c460
add esp, 4
mov esi, dword [esi]
cmp esi, ebx
jne 0x415420
mov edi, dword [ebp - 0x78]
push 0x414c20
push 0x4e2b
push edi
call fcn.00494d60
lea eax, [ebp - 0x54]
push eax
push 0x2711
push edi
call fcn.00494d60
push 1
push 0x34
push edi
call fcn.00494d60
push 0
push 0x40
push edi
call fcn.00494d60
push 0
push 0x51
push edi
call fcn.00494d60
push 0
push 0x1400000
push 0x75c2
push edi
call fcn.00494d60
add esp, 0x4c
push 5
push 0x44
push edi
call fcn.00494d60
push 1
push 0x4b
push edi
call fcn.00494d60
push 1
push 0x63
push edi
call fcn.00494d60
push 0
push 0x2b
push edi
call fcn.00494d60
lea eax, [ebp - 0x50]
push eax
push 0x2749
push edi
call fcn.00494d60
push 0x414c80
push 0x4e58
push edi
call fcn.00494d60
mov ecx, dword [ebp - 0x58]
add esp, 0x30
mov eax, esp
movdqu xmm0, xmmword [ecx]
push 0x2712
push edi
movdqu xmmword [eax], xmm0
movq xmm0, qword [ecx + 0x10]
movq qword [eax + 0x10], xmm0
call fcn.00494d60
push edi
call fcn.00494d50
mov esi, eax
add esp, 0x24
test esi, esi
je 0x4156b5
push esi
call fcn.00495950
mov edx, eax
mov dword [ebp - 0x14], 0xf
add esp, 4
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
cmp byte [edx], 0
jne 0x41556a
xor ecx, ecx
jmp 0x415579
mov ecx, edx
lea ebx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x415570
sub ecx, ebx
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00403990
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.0043a990
add esp, 8
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 8
jb 0x4155a3
mov eax, dword [eax]
push eax
push str.download_error__s
push 0x168
push str.CCurlDownloader::downloadFile
call fcn.00435bf0
add esp, 0x10
cmp dword [ebp - 0x5c], 8
jb 0x4155cc
push dword [ebp - 0x70]
call fcn.0047c460
add esp, 4
xor eax, eax
mov byte [ebp - 4], 2
cmp dword [ebp - 0x14], 0x10
mov dword [ebp - 0x5c], 7
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
jb 0x4155f5
push dword [ebp - 0x28]
call fcn.0047c460
add esp, 4
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.00495950
mov edx, eax
mov dword [ebp - 0x14], 0xf
add esp, 4
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
cmp byte [edx], 0
jne 0x415624
xor ecx, ecx
jmp 0x415639
mov ecx, edx
lea esi, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x415630
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00403990
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.0043a950
add esp, 8
mov byte [ebp - 4], 6
cmp dword [eax + 0x14], 8
jb 0x415663
mov eax, dword [eax]
push eax
push str.download_file_error__s
push 0x174
push str.CCurlDownloader::downloadFile
call fcn.00435bf0
add esp, 0x10
cmp dword [ebp - 0x5c], 8
jb 0x41568c
push dword [ebp - 0x70]
call fcn.0047c460
add esp, 4
xor eax, eax
mov dword [ebp - 0x5c], 7
cmp dword [ebp - 0x14], 0x10
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
jb 0x4156b1
push dword [ebp - 0x28]
call fcn.0047c460
add esp, 4
xor bl, bl
jmp 0x4156d7
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.download__file_sucess
push 0x178
push str.CCurlDownloader::downloadFile
call fcn.00435bf0
add esp, 0xc
mov bl, 1
push edi
call fcn.00494c90
add esp, 4
lea ecx, [ebp - 0x30]
call fcn.00415820
push dword [ebp - 0x30]
call fcn.0047c460
mov byte [ebp - 4], 0
add esp, 4
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x415716
mov edx, dword [ecx]
lea eax, [ebp - 0x48]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 0x20]
test ecx, ecx
je 0x415735
mov esi, dword [ecx]
lea eax, [ebp + 0x10]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov al, bl
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.004d14e6
mov esp, ebp
pop ebp
ret 0x20