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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x521e31
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.0043de40
add esp, 0xc
push 8
call fcn.004e46e3
add esp, 4
test eax, eax
je 0x4272e4
mov dword [eax], 0
mov byte [eax + 4], 0
jmp 0x4272e6
xor eax, eax
xorps xmm0, xmm0
mov dword [ebx], eax
lea edx, [ebp - 0x60]
movlpd qword [ebp - 0x60], xmm0
mov ecx, esi
call fcn.004269e0
mov edi, dword [ebp - 0x60]
test al, al
je 0x427348
cmp dword [ebp - 0x5c], 0
jl 0x427348
jg 0x42730d
test edi, edi
je 0x427348
cmp dword [esi + 0x14], 0x10
jb 0x427317
mov eax, dword [esi]
jmp 0x427319
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 0x427371
cmp dword [esi + 0x14], 0x10
jb 0x427352
mov eax, dword [esi]
jmp 0x427354
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 0x4273ce
lea eax, [ebp - 0x84]
push esi
push eax
call fcn.004459f0
add esp, 8
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x427394
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.0043de40
add esp, 0x14
cmp dword [ebp - 0x70], 8
jb 0x4273c7
push dword [ebp - 0x84]
call fcn.00488e40
add esp, 4
xor bl, bl
jmp 0x4277a1
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 0x4273f8
mov dword [ebp - 0x38], ecx
jmp 0x42740e
lea eax, [ebp + 0x10]
cmp ecx, eax
mov eax, dword [ecx]
jne 0x427407
lea edx, [ebp - 0x48]
push edx
jmp 0x427409
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.004a7e80
mov edi, eax
mov dword [ebp - 0x6c], edi
test edi, edi
jne 0x427443
push str.curl_init_error
push 0x1e0
push str.LDCurlDownloader::downloadFile
call fcn.0043de40
add esp, 0xc
xor bl, bl
jmp 0x42777e
test esi, esi
jl 0x42745d
mov eax, dword [ebp - 0x60]
jg 0x427450
test eax, eax
je 0x42745d
push esi
push eax
push 0x15
push edi
call fcn.004a7f30
add esp, 0x10
xorps xmm0, xmm0
push 0
movq qword [ebp - 0x18], xmm0
push 0
mov dword [ebp - 0x14], 0
call fcn.004255e0
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.004a8300
push str.User_Agent:_Mozilla_5.0
push eax
call fcn.004a8300
mov esi, dword [esi]
add esp, 0x10
mov dword [ebp - 0x5c], eax
cmp esi, dword [ebp - 0x18]
je 0x427506
mov ebx, dword [ebp - 0x18]
mov edi, eax
jmp 0x4274b0
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.004a8300
add esp, 8
mov edi, eax
cmp dword [ebp - 0x1c], 0x10
jb 0x4274fa
push dword [ebp - 0x30]
call fcn.00488e40
add esp, 4
mov esi, dword [esi]
cmp esi, ebx
jne 0x4274b0
mov edi, dword [ebp - 0x6c]
mov ebx, dword [ebp - 0x64]
push 0x426ae0
push 0x4e2b
push edi
call fcn.004a7f30
add esp, 0xc
push dword [ebx]
push 0x2711
push edi
call fcn.004a7f30
add esp, 0xc
push 1
push 0x34
push edi
call fcn.004a7f30
add esp, 0xc
push 0
push 0x40
push edi
call fcn.004a7f30
add esp, 0xc
push 0
push 0x51
push edi
call fcn.004a7f30
add esp, 0xc
push 0
push 0x1400000
push 0x75c2
push edi
call fcn.004a7f30
push 5
push 0x44
push edi
call fcn.004a7f30
add esp, 0x1c
push 1
push 0x4b
push edi
call fcn.004a7f30
add esp, 0xc
push 0xfa0
push 0x9c
push edi
call fcn.004a7f30
add esp, 0xc
push 0x1b7740
push 0x9b
push edi
call fcn.004a7f30
add esp, 0xc
push 1
push 0x63
push edi
call fcn.004a7f30
add esp, 0xc
push 0
push 0x2b
push edi
call fcn.004a7f30
add esp, 0xc
lea eax, [ebp - 0x58]
push eax
push 0x2749
push edi
call fcn.004a7f30
add esp, 0xc
push 0x426b60
push 0x4e58
push edi
call fcn.004a7f30
mov ebx, dword [ebp - 0x68]
add esp, 0xc
cmp dword [ebx + 0x14], 0x10
jb 0x4275ee
mov eax, dword [ebx]
jmp 0x4275f0
mov eax, ebx
push eax
push 0x2712
push edi
call fcn.004a7f30
add esp, 0xc
push edi
call fcn.004a7f20
add esp, 4
test eax, eax
je 0x42771e
push eax
call fcn.004a8b10
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 0x427636
xor ecx, ecx
jmp 0x427649
mov ecx, edx
lea esi, [ecx + 1]
jmp 0x427640
mov al, byte [ecx]
inc ecx
test al, al
jne 0x427640
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.004459f0
mov esi, eax
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.004459f0
add esp, 0x10
mov byte [ebp - 4], 6
cmp dword [esi + 0x14], 8
jb 0x427689
mov esi, dword [esi]
cmp dword [eax + 0x14], 8
jb 0x427691
mov eax, dword [eax]
push esi
push eax
push str.curl_download_error__s__s
push 0x20a
push str.LDCurlDownloader::downloadFile
call fcn.0043de40
add esp, 0x14
cmp dword [ebp - 0x88], 8
jb 0x4276c1
push dword [ebp - 0x9c]
call fcn.00488e40
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 0x4276f2
push dword [ebp - 0x84]
call fcn.00488e40
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 0x42771a
push dword [ebp - 0x30]
call fcn.00488e40
add esp, 4
xor bl, bl
jmp 0x427737
push str.curl_download__file_sucess
push 0x20e
push str.LDCurlDownloader::downloadFile
call fcn.0043de40
add esp, 0xc
mov bl, 1
mov esi, dword [ebp - 0x64]
mov eax, dword [esi]
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x427752
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi]
mov dword [eax], 0xffffffff
push edi
call fcn.004a7e60
add esp, 4
push dword [esi]
call fcn.00488e40
add esp, 4
mov dword [esi], 0
lea ecx, [ebp - 0x18]
call fcn.00425580
push dword [ebp - 0x18]
call fcn.00488e40
add esp, 4
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x4277a1
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 0x4277c0
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.004e46d4
mov esp, ebp
pop ebp
ret 0x20