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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x521df1
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x56e910]
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 ebx, ecx
mov dword [ebp - 0x64], ebx
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x68], eax
push str.LDCurlDownloader::downloadfile_start
push 0x1bb
push str.LDCurlDownloader::downloadFile
mov dword [ebp - 4], 0
call fcn.0043de00
add esp, 0xc
push 8
call fcn.004e46a3
add esp, 4
test eax, eax
je 0x4272b4
mov dword [eax], 0
mov byte [eax + 4], 0
jmp 0x4272b6
xor eax, eax
xorps xmm0, xmm0
mov dword [ebx], eax
lea edx, [ebp - 0x60]
movlpd qword [ebp - 0x60], xmm0
mov ecx, esi
call fcn.004269b0
mov edi, dword [ebp - 0x60]
test al, al
je 0x427318
cmp dword [ebp - 0x5c], 0
jl 0x427318
jg 0x4272dd
test edi, edi
je 0x427318
cmp dword [esi + 0x14], 0x10
jb 0x4272e7
mov eax, dword [esi]
jmp 0x4272e9
mov eax, esi
push 0
push 0x80
push 4
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [ebx]
push 2
push 0
push 0
mov dword [ecx], eax
mov eax, dword [ebx]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x427341
cmp dword [esi + 0x14], 0x10
jb 0x427322
mov eax, dword [esi]
jmp 0x427324
mov eax, esi
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [ebx]
mov dword [ecx], eax
mov eax, dword [ebx]
cmp dword [eax], 0xffffffff
jne 0x42739e
lea eax, [ebp - 0x84]
push esi
push eax
call fcn.004459a0
add esp, 8
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x427364
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.open_file_error__error:_d__s
push 0x1d5
push str.LDCurlDownloader::downloadFile
call fcn.0043de00
add esp, 0x14
cmp dword [ebp - 0x70], 8
jb 0x427397
push dword [ebp - 0x84]
call fcn.00488de0
add esp, 4
xor bl, bl
jmp 0x427771
xorps xmm0, xmm0
mov dword [ebp - 0x58], 0
mov byte [ebp - 0x54], 0
movlpd qword [ebp - 0x50], xmm0
mov dword [ebp - 0x38], 0
mov byte [ebp - 4], 2
mov ecx, dword [ebp + 0x20]
test ecx, ecx
jne 0x4273c8
mov dword [ebp - 0x38], ecx
jmp 0x4273de
lea eax, [ebp + 0x10]
cmp ecx, eax
mov eax, dword [ecx]
jne 0x4273d7
lea edx, [ebp - 0x48]
push edx
jmp 0x4273d9
push 0
call dword [eax]
mov dword [ebp - 0x38], eax
mov esi, dword [ebp - 0x5c]
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x4c], esi
call fcn.004a7e40
mov edi, eax
mov dword [ebp - 0x6c], edi
test edi, edi
jne 0x427413
push str.curl_init_error
push 0x1e0
push str.LDCurlDownloader::downloadFile
call fcn.0043de00
add esp, 0xc
xor bl, bl
jmp 0x42774e
test esi, esi
jl 0x42742d
mov eax, dword [ebp - 0x60]
jg 0x427420
test eax, eax
je 0x42742d
push esi
push eax
push 0x15
push edi
call fcn.004a7ef0
add esp, 0x10
xorps xmm0, xmm0
push 0
movq qword [ebp - 0x18], xmm0
push 0
mov dword [ebp - 0x14], 0
call fcn.004255b0
mov esi, eax
mov dword [ebp - 0x18], esi
push str.Content_Type:_application_x_www_form_urlencoded
push 0
mov byte [ebp - 4], 3
call fcn.004a82c0
push str.User_Agent:_Mozilla_5.0
push eax
call fcn.004a82c0
mov esi, dword [esi]
add esp, 0x10
mov dword [ebp - 0x5c], eax
cmp esi, dword [ebp - 0x18]
je 0x4274d6
mov ebx, dword [ebp - 0x18]
mov edi, eax
jmp 0x427480
push 0xffffffffffffffff
lea ecx, [esi + 8]
mov dword [ebp - 0x1c], 0xf
push 0
push ecx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x30], 0
call fcn.004092b0
cmp dword [ebp - 0x1c], 0x10
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
push eax
push edi
call fcn.004a82c0
add esp, 8
mov edi, eax
cmp dword [ebp - 0x1c], 0x10
jb 0x4274ca
push dword [ebp - 0x30]
call fcn.00488de0
add esp, 4
mov esi, dword [esi]
cmp esi, ebx
jne 0x427480
mov edi, dword [ebp - 0x6c]
mov ebx, dword [ebp - 0x64]
push 0x426ab0
push 0x4e2b
push edi
call fcn.004a7ef0
add esp, 0xc
push dword [ebx]
push 0x2711
push edi
call fcn.004a7ef0
add esp, 0xc
push 1
push 0x34
push edi
call fcn.004a7ef0
add esp, 0xc
push 0
push 0x40
push edi
call fcn.004a7ef0
add esp, 0xc
push 0
push 0x51
push edi
call fcn.004a7ef0
add esp, 0xc
push 0
push 0x1400000
push 0x75c2
push edi
call fcn.004a7ef0
push 5
push 0x44
push edi
call fcn.004a7ef0
add esp, 0x1c
push 1
push 0x4b
push edi
call fcn.004a7ef0
add esp, 0xc
push 0xfa0
push 0x9c
push edi
call fcn.004a7ef0
add esp, 0xc
push 0x1b7740
push 0x9b
push edi
call fcn.004a7ef0
add esp, 0xc
push 1
push 0x63
push edi
call fcn.004a7ef0
add esp, 0xc
push 0
push 0x2b
push edi
call fcn.004a7ef0
add esp, 0xc
lea eax, [ebp - 0x58]
push eax
push 0x2749
push edi
call fcn.004a7ef0
add esp, 0xc
push 0x426b30
push 0x4e58
push edi
call fcn.004a7ef0
mov ebx, dword [ebp - 0x68]
add esp, 0xc
cmp dword [ebx + 0x14], 0x10
jb 0x4275be
mov eax, dword [ebx]
jmp 0x4275c0
mov eax, ebx
push eax
push 0x2712
push edi
call fcn.004a7ef0
add esp, 0xc
push edi
call fcn.004a7ee0
add esp, 4
test eax, eax
je 0x4276ee
push eax
call fcn.004a8ad0
mov edx, eax
mov dword [ebp - 0x1c], 0xf
add esp, 4
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x30], 0
cmp byte [edx], 0
jne 0x427606
xor ecx, ecx
jmp 0x427619
mov ecx, edx
lea esi, [ecx + 1]
jmp 0x427610
mov al, byte [ecx]
inc ecx
test al, al
jne 0x427610
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x30]
call fcn.004096a0
lea eax, [ebp - 0x84]
mov byte [ebp - 4], 4
push ebx
push eax
call fcn.004459a0
mov esi, eax
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.004459a0
add esp, 0x10
mov byte [ebp - 4], 6
cmp dword [esi + 0x14], 8
jb 0x427659
mov esi, dword [esi]
cmp dword [eax + 0x14], 8
jb 0x427661
mov eax, dword [eax]
push esi
push eax
push str.curl_download_error__s__s
push 0x20a
push str.LDCurlDownloader::downloadFile
call fcn.0043de00
add esp, 0x14
cmp dword [ebp - 0x88], 8
jb 0x427691
push dword [ebp - 0x9c]
call fcn.00488de0
add esp, 4
xor eax, eax
mov dword [ebp - 0x88], 7
cmp dword [ebp - 0x70], 8
mov dword [ebp - 0x8c], 0
mov word [ebp - 0x9c], ax
jb 0x4276c2
push dword [ebp - 0x84]
call fcn.00488de0
add esp, 4
xor eax, eax
mov dword [ebp - 0x70], 7
cmp dword [ebp - 0x1c], 0x10
mov dword [ebp - 0x74], 0
mov word [ebp - 0x84], ax
jb 0x4276ea
push dword [ebp - 0x30]
call fcn.00488de0
add esp, 4
xor bl, bl
jmp 0x427707
push str.curl_download__file_sucess
push 0x20e
push str.LDCurlDownloader::downloadFile
call fcn.0043de00
add esp, 0xc
mov bl, 1
mov esi, dword [ebp - 0x64]
mov eax, dword [esi]
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x427722
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi]
mov dword [eax], 0xffffffff
push edi
call fcn.004a7e20
add esp, 4
push dword [esi]
call fcn.00488de0
add esp, 4
mov dword [esi], 0
lea ecx, [ebp - 0x18]
call fcn.00425550
push dword [ebp - 0x18]
call fcn.00488de0
add esp, 4
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x427771
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 0x427790
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.004e4694
mov esp, ebp
pop ebp
ret 0x20