Function at 0x4071e0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c3e2e
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x4fd43c]
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 - 0x68], ebx
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x60], eax
push str.LDCurlDownloader::downloadfile_start
push 0x1b3
push str.LDCurlDownloader::downloadFile
mov dword [ebp - 4], 0
call fcn.00436bb0
push 8
call fcn.004a187d
xorps xmm0, xmm0
add esp, 0x10
movlpd qword [ebp - 0x5c], xmm0
movq qword [eax], xmm0
mov dword [ebx], eax
mov eax, esi
cmp dword [esi + 0x14], 0x10
jb 0x407259
mov eax, dword [esi]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 0x64], edi
cmp edi, 0xffffffff
je 0x4072ef
lea eax, [ebp - 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4072e7
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
push dword [ebp - 0x64]
mov dword [ebp - 0x54], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x58], edi
call eax
cmp dword [ebp - 0x54], 0
jl 0x4072fb
jg 0x4072ad
test edi, edi
je 0x4072fb
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x4072b7
mov eax, dword [esi]
push 0
push 0x80
push 4
push 0
push 3
push 0xc0000000
push eax
mov eax, dword [sym.imp.KERNEL32.dll_CreateFileA]
call eax
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 0x407323
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call eax
mov eax, dword [ebp - 0x58]
mov edi, dword [ebp - 0x5c]
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x54], eax
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x407305
mov eax, dword [esi]
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
push eax
mov eax, dword [sym.imp.KERNEL32.dll_CreateFileA]
call eax
mov ecx, dword [ebx]
mov dword [ecx], eax
mov eax, dword [ebx]
cmp dword [eax], 0xffffffff
jne 0x4073b2
lea eax, [ebp - 0x98]
push esi
push eax
call fcn.0043c840
add esp, 8
mov esi, eax
mov byte [ebp - 4], 1
cmp dword [esi + 0x14], 8
jb 0x40734c
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
push str.open_file_error__error:_d__s
push 0x1cd
push str.LDCurlDownloader::downloadFile
call fcn.00436bb0
mov edx, dword [ebp - 0x84]
add esp, 0x14
cmp edx, 8
jb 0x4073ab
mov ecx, dword [ebp - 0x98]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4073a1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40770d
push edx
push ecx
call fcn.004a1afe
add esp, 8
xor bl, bl
jmp 0x4076d5
xorps xmm0, xmm0
mov dword [ebp - 0x50], 0
mov byte [ebp - 0x4c], 0
movlpd qword [ebp - 0x48], xmm0
mov dword [ebp - 0x1c], 0
lea eax, [ebp + 0x10]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x40]
call fcn.00405090
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], eax
call dword [sym.imp.libcurl.dll_curl_easy_init]
mov edi, eax
test edi, edi
jne 0x40740f
push str.curl_init_error
push 0x1d8
push str.LDCurlDownloader::downloadFile
call fcn.00436bb0
add esp, 0xc
xor bl, bl
jmp 0x4076b6
mov ecx, dword [ebp - 0x54]
mov esi, dword [sym.imp.libcurl.dll_curl_easy_setopt]
test ecx, ecx
jl 0x40742f
mov eax, dword [ebp - 0x58]
jg 0x407425
test eax, eax
je 0x40742f
push ecx
push eax
push 0x15
push edi
call esi
add esp, 0x10
push 0x4068b0
push 0x4e2b
push edi
call esi
push dword [ebx]
push 0x2711
push edi
call esi
push 1
push 0x34
push edi
call esi
push 0
push 0x40
push edi
call esi
push 0
push 0x51
push edi
call esi
push 0
push 0x1400000
push 0x75c2
push edi
call esi
add esp, 0x4c
push 5
push 0x44
push edi
call esi
push 1
push 0x4b
push edi
call esi
push 0xfa0
push 0x9c
push edi
call esi
push 0x1b7740
push 0x9b
push edi
call esi
push 1
push 0x63
push edi
call esi
push 0
push 0x2b
push edi
call esi
add esp, 0x48
lea eax, [ebp - 0x50]
push eax
push 0x2749
push edi
call esi
push 0x406930
push 0x4e58
push edi
call esi
mov ebx, dword [ebp - 0x60]
add esp, 0x18
mov eax, ebx
cmp dword [ebx + 0x14], 0x10
jb 0x4074cf
mov eax, dword [ebx]
push eax
push 0x2712
push edi
call esi
push edi
call dword [sym.imp.libcurl.dll_curl_easy_perform]
add esp, 0x10
test eax, eax
je 0x407669
push eax
call dword [sym.imp.libcurl.dll_curl_easy_strerror]
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0xb0]
push ebx
push eax
call fcn.0043c840
add esp, 0xc
mov esi, eax
mov byte [ebp - 4], 3
cmp dword [esi + 0x14], 8
jb 0x407512
mov esi, dword [esi]
mov edx, dword [ebp - 0x60]
mov ecx, edx
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0xf
mov byte [ebp - 0x80], 0
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x407533
sub ecx, ebx
push ecx
push edx
lea ecx, [ebp - 0x80]
call fcn.00407760
lea eax, [ebp - 0x80]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x98]
push eax
call fcn.0043c840
add esp, 8
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 8
jb 0x407569
mov eax, dword [eax]
push esi
push eax
push str.curl_download_error__s__s
push 0x1f9
push str.LDCurlDownloader::downloadFile
call fcn.00436bb0
mov edx, dword [ebp - 0x84]
add esp, 0x14
cmp edx, 8
jb 0x4075c2
mov ecx, dword [ebp - 0x98]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4075b8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407712
push edx
push ecx
call fcn.004a1afe
add esp, 8
mov edx, dword [ebp - 0x6c]
xor eax, eax
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 7
mov word [ebp - 0x98], ax
cmp edx, 0x10
jb 0x407613
mov ecx, dword [ebp - 0x80]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x407609
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407712
push edx
push ecx
call fcn.004a1afe
add esp, 8
mov edx, dword [ebp - 0x9c]
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0xf
mov byte [ebp - 0x80], 0
cmp edx, 8
jb 0x407665
mov ecx, dword [ebp - 0xb0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40765b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407712
push edx
push ecx
call fcn.004a1afe
add esp, 8
xor bl, bl
jmp 0x407682
push str.curl_download__file_sucess
push 0x1fd
push str.LDCurlDownloader::downloadFile
call fcn.00436bb0
add esp, 0xc
mov bl, 1
mov esi, dword [ebp - 0x68]
mov eax, dword [esi]
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x40769d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi]
mov dword [eax], 0xffffffff
push edi
call dword [sym.imp.libcurl.dll_curl_easy_cleanup]
push 8
push dword [esi]
call fcn.004a1afe
add esp, 0xc
mov dword [esi], 0
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x4076d5
mov edx, dword [ecx]
lea eax, [ebp - 0x40]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x4076ed
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.004a186f
mov esp, ebp
pop ebp
ret 0x30
call fcn.004a670d
call fcn.004a670d
int3