Function at 0x426590
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cba98
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x50a8c8]
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 + 8]
xor esi, esi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x18]
add eax, eax
mov dword [ebp - 0x5c], edi
mov byte [ebx + 0x60], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x60], esi
test eax, eax
jle 0x4268a2
lea eax, [ebx + 0x34]
mov dword [ebp - 0x70], eax
mov ecx, edi
call fcn.004061c0
push eax
push str.download__s
push 0x167
push str.utility::CHttpClientWrapper::download2file_ex
call fcn.0040b300
mov eax, dword [ebp - 0x54]
add esp, 0x10
cmp esi, dword [ebp + 0x18]
mov ecx, 1
mov dword [ebp - 0x3c], 7
cmove eax, ecx
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x54], eax
lea ecx, [ebp - 0x50]
mov dword [ebx + 0x44], eax
xor eax, eax
push 5
push str.Range
mov word [ebp - 0x50], ax
call fcn.00406060
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebx + 0x34]
call fcn.00425da0
push dword [ebp - 0x58]
mov edi, dword [ebp - 0x74]
lea ecx, [ebp - 0x34]
mov esi, dword [ebp - 0x78]
push edi
push esi
mov dword [ebp - 0x34], 0
call fcn.00405460
add esp, 0xc
lea eax, [ebp - 0x7c]
lea ecx, [ebx + 0x34]
push edi
push esi
push eax
call fcn.0041d420
cmp dword [ebp - 0x3c], 8
jb 0x426697
push dword [ebp - 0x50]
call fcn.0047ad70
add esp, 4
mov eax, dword [ebp - 0x5c]
xorps xmm0, xmm0
mov dword [ebx + 0x5c], 0
movlpd qword [ebp - 0x38], xmm0
cmp dword [eax + 0x14], 8
jb 0x4266b1
mov eax, dword [eax]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4266f5
lea eax, [ebp - 0x30]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push edi
test eax, eax
je 0x4266ef
mov esi, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4266fb
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x38]
mov ebx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x64]
mov dword [eax + 0x5c], esi
test ebx, ebx
jl 0x426852
jg 0x426713
test esi, esi
je 0x426852
push 6
xor eax, eax
mov dword [ebp - 0x14], 7
push str.bytes
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00406060
push ebx
push esi
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], 0
call fcn.00426ac0
add esp, 8
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00407d10
mov byte [ebp - 4], 0
cmp dword [ebp - 0x3c], 8
jb 0x426770
push dword [ebp - 0x50]
call fcn.0047ad70
add esp, 4
push 1
push 0x4f03b4
lea ecx, [ebp - 0x28]
call fcn.00407de0
push 5
xor eax, eax
mov dword [ebp - 0x3c], 7
push str.Range
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x40], 0
mov word [ebp - 0x50], ax
call fcn.00406060
mov ebx, dword [ebp - 0x70]
lea eax, [ebp - 0x50]
push eax
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.00409e70
mov esi, eax
cmp esi, dword [ebx]
je 0x4267da
cmp dword [esi + 0x24], 8
lea eax, [esi + 0x10]
mov ecx, dword [eax + 0x10]
jb 0x4267c8
mov eax, dword [eax]
push ecx
push eax
push dword [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x50]
call fcn.00405380
test eax, eax
jns 0x426801
lea eax, [ebp - 0x50]
push ecx
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
push eax
push ecx
mov ecx, ebx
call fcn.0040a030
push eax
add eax, 0x10
mov ecx, ebx
push eax
push esi
lea eax, [ebp - 0x68]
push eax
call fcn.0040a0f0
mov esi, dword [ebp - 0x68]
lea ecx, [esi + 0x28]
lea eax, [ebp - 0x28]
cmp ecx, eax
je 0x426815
push 0xffffffffffffffff
push 0
push eax
call fcn.00406720
cmp dword [ebp - 0x3c], 8
jb 0x426826
push dword [ebp - 0x50]
call fcn.0047ad70
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], 8
jb 0x42683e
push dword [ebp - 0x28]
call fcn.0047ad70
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
push dword [ebp - 0x6c]
mov edi, dword [ebp - 0x5c]
mov ebx, dword [ebp - 0x64]
mov ecx, ebx
push edi
push dword [ebp - 0x58]
call fcn.00426450
test al, al
jne 0x4268db
cmp byte [ebx + 0x60], al
jne 0x4268c2
mov esi, dword [ebx + 0x58]
test esi, esi
jne 0x426879
lea esi, [ebx + 0x48]
push 0xbb8
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [esi + 0xc], 0
jne 0x4268a2
mov ecx, dword [ebp + 0x18]
mov esi, dword [ebp - 0x60]
inc esi
mov dword [ebp - 0x60], esi
lea eax, [ecx + ecx]
cmp esi, eax
jl 0x4265f5
xor al, al
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.00493b03
mov esp, ebp
pop ebp
ret 0x18
push str.m_bPause_is_true
push 0x181
push str.utility::CHttpClientWrapper::download2file_ex
call fcn.0040b300
add esp, 0xc
jmp 0x4268a2
cmp dword [edi + 0x14], 8
jb 0x4268e3
mov edi, dword [edi]
push edi
push 0x4f03b8
push 0x17d
push str.utility::CHttpClientWrapper::download2file_ex
call fcn.0040b300
add esp, 0x10
mov al, 1
jmp 0x4268a4