Function at 0x42b5f0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d4048
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x5178cc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x84], ebx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x4c]
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x20]
movzx eax, al
mov dword [ebp - 0x80], eax
xor eax, eax
push 0xffffffffffffffff
push eax
push esi
mov dword [ebp - 0x7c], edi
mov byte [ebx + 0x60], 0
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x3c], 0
mov word [ebp - 0x4c], ax
call fcn.00406e70
cmp dword [ebp - 0x80], 0
mov dword [ebp - 4], 0
je 0x42b6cc
push 5
push 0
push str.https
mov ecx, esi
call fcn.00407d60
test eax, eax
jne 0x42b6cc
push 4
push str.http
lea ecx, [ebp - 0x4c]
call fcn.004067b0
mov eax, dword [esi + 0x10]
mov ecx, esi
add eax, 0xfffffffb
push eax
push 5
lea eax, [ebp - 0x74]
push eax
call fcn.00407d20
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
call fcn.004084b0
mov byte [ebp - 4], 0
cmp dword [ebp - 0x60], 8
jb 0x42b6cc
push dword [ebp - 0x74]
call fcn.0048ec00
add esp, 4
cmp dword [ebp + 0x18], 0
mov dword [ebp - 0x50], 0
jle 0x42b944
lea esi, [ebx + 0x34]
mov ecx, edi
call fcn.00406910
push eax
push str.download__s
push 0x170
push str.utility::CHttpClientWrapper::download2file_ex
call fcn.0040bb00
mov eax, dword [ebp - 0x80]
lea ecx, [ebp - 0x74]
add esp, 0x10
mov dword [ebx + 0x44], eax
xor eax, eax
mov dword [ebp - 0x60], 7
mov dword [ebp - 0x64], 0
mov word [ebp - 0x74], ax
push 5
push str.Range
call fcn.004067b0
lea eax, [ebp - 0x74]
mov ecx, esi
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.0042adf0
push dword [ebp - 0x78]
mov edi, dword [ebp - 0x88]
lea ecx, [ebp - 0x58]
mov esi, dword [ebp - 0x8c]
push edi
push esi
mov dword [ebp - 0x58], 0
call fcn.00405bb0
add esp, 0xc
lea eax, [ebp - 0x90]
lea ecx, [ebx + 0x34]
push edi
push esi
push eax
call fcn.00421130
cmp dword [ebp - 0x60], 8
jb 0x42b77f
push dword [ebp - 0x74]
call fcn.0048ec00
add esp, 4
cmp dword [ebp - 0x50], 0
mov dword [ebx + 0x5c], 0
je 0x42b8f6
mov eax, dword [ebp - 0x7c]
xorps xmm0, xmm0
movlpd qword [ebp - 0x5c], xmm0
cmp dword [eax + 0x14], 8
jb 0x42b7a3
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 ebx, eax
cmp ebx, 0xffffffff
je 0x42b7e7
lea eax, [ebp - 0x34]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push ebx
test eax, eax
je 0x42b7e1
mov esi, dword [ebp - 0x34]
mov edi, dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x42b7ed
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x5c]
mov edi, dword [ebp - 0x58]
mov ebx, dword [ebp - 0x84]
push edi
push esi
push str.start_size__d
push 0x17a
push str.utility::CHttpClientWrapper::download2file_ex
mov dword [ebx + 0x5c], esi
call fcn.0040bb00
add esp, 0x14
test edi, edi
jl 0x42b8f6
jg 0x42b821
test esi, esi
je 0x42b8f6
push 6
xor eax, eax
mov dword [ebp - 0x18], 7
push str.bytes
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
call fcn.004067b0
push edi
push esi
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 2
call fcn.0042bb80
add esp, 8
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.004084b0
mov byte [ebp - 4], 2
cmp dword [ebp - 0x60], 8
jb 0x42b87b
push dword [ebp - 0x74]
call fcn.0048ec00
add esp, 4
push 1
push 0x4f9f90
lea ecx, [ebp - 0x2c]
call fcn.00408580
push 5
xor eax, eax
mov dword [ebp - 0x60], 7
push str.Range
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x64], 0
mov word [ebp - 0x74], ax
call fcn.004067b0
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebx + 0x34]
call fcn.00409d90
lea ecx, [ebp - 0x2c]
cmp eax, ecx
je 0x42b8d0
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.00406e70
cmp dword [ebp - 0x60], 8
jb 0x42b8e1
push dword [ebp - 0x74]
call fcn.0048ec00
add esp, 4
mov byte [ebp - 4], 0
cmp dword [ebp - 0x18], 8
jb 0x42b8f6
push dword [ebp - 0x2c]
call fcn.0048ec00
add esp, 4
push dword [ebp - 0x78]
mov edi, dword [ebp - 0x7c]
lea eax, [ebp - 0x4c]
push edi
push eax
mov ecx, ebx
call fcn.0042b4b0
test al, al
jne 0x42b990
cmp byte [ebx + 0x60], al
jne 0x42b977
mov esi, dword [ebx + 0x58]
test esi, esi
jne 0x42b91f
lea esi, [ebx + 0x48]
push dword [ebp + 0x1c]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [esi + 0xc], 0
jne 0x42b944
mov eax, dword [ebp - 0x50]
lea esi, [ebx + 0x34]
inc eax
mov dword [ebp - 0x50], eax
cmp eax, dword [ebp + 0x18]
jl 0x42b6e0
xor bl, bl
cmp dword [ebp - 0x38], 8
jb 0x42b957
push dword [ebp - 0x4c]
call fcn.0048ec00
add esp, 4
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 - 0x14]
xor ecx, ebp
call fcn.0049b793
mov esp, ebp
pop ebp
ret 0x1c
push str.m_bPause_is_true
push 0x188
push str.utility::CHttpClientWrapper::download2file_ex
call fcn.0040bb00
add esp, 0xc
jmp 0x42b944
cmp dword [edi + 0x14], 8
jb 0x42b998
mov edi, dword [edi]
push edi
push 0x4f9f94
push 0x184
push str.utility::CHttpClientWrapper::download2file_ex
call fcn.0040bb00
add esp, 0x10
mov bl, 1
jmp 0x42b946