Function at 0x42bea0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d2f98
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x5148c8]
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 - 0x74], ebx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x44]
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0x20]
movzx eax, al
mov dword [ebp - 0x78], eax
xor eax, eax
push 0xffffffffffffffff
push eax
push esi
mov dword [ebp - 0x7c], edi
mov byte [ebx + 0x60], 0
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
call fcn.00406d70
cmp dword [ebp - 0x78], 0
mov dword [ebp - 4], 0
je 0x42bf79
push 5
push 0
push str.https
mov ecx, esi
call fcn.00407cd0
test eax, eax
jne 0x42bf79
push 4
push str.http
lea ecx, [ebp - 0x44]
call fcn.004066b0
mov eax, dword [esi + 0x10]
mov ecx, esi
add eax, 0xfffffffb
push eax
push 5
lea eax, [ebp - 0x6c]
push eax
call fcn.00407c90
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.00408420
mov byte [ebp - 4], 0
cmp dword [ebp - 0x58], 8
jb 0x42bf79
push dword [ebp - 0x6c]
call fcn.0048d9a0
add esp, 4
lea esi, [ebx + 0x34]
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x88], esi
lea esp, [esp]
mov ecx, edi
call fcn.00406810
push eax
push str.download__s
push 0x16f
push str.utility::CHttpClientWrapper::download2file_ex
call fcn.0040ba80
mov eax, dword [ebp - 0x78]
lea ecx, [ebp - 0x6c]
add esp, 0x10
mov dword [ebx + 0x44], eax
xor eax, eax
mov dword [ebp - 0x58], 7
mov dword [ebp - 0x5c], 0
mov word [ebp - 0x6c], ax
push 5
push str.Range
call fcn.004066b0
lea eax, [ebp - 0x6c]
mov ecx, esi
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.0042b6b0
push dword [ebp - 0x70]
mov edi, dword [ebp - 0x8c]
lea ecx, [ebp - 0x50]
mov esi, dword [ebp - 0x90]
push edi
push esi
mov dword [ebp - 0x50], 0
call fcn.00405ab0
add esp, 0xc
lea eax, [ebp - 0x94]
lea ecx, [ebx + 0x34]
push edi
push esi
push eax
call fcn.00422940
cmp dword [ebp - 0x58], 8
jb 0x42c02f
push dword [ebp - 0x6c]
call fcn.0048d9a0
add esp, 4
mov eax, dword [ebp - 0x7c]
xorps xmm0, xmm0
mov dword [ebx + 0x5c], 0
movlpd qword [ebp - 0x54], xmm0
cmp dword [eax + 0x14], 8
jb 0x42c049
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 0x42c08d
lea eax, [ebp - 0x4c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push edi
test eax, eax
je 0x42c087
mov esi, dword [ebp - 0x4c]
mov ebx, dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x42c093
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x54]
mov ebx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x74]
mov dword [eax + 0x5c], esi
test ebx, ebx
jl 0x42c1d9
jg 0x42c0ab
test esi, esi
je 0x42c1d9
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.004066b0
push ebx
push esi
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 2
call fcn.0042c460
add esp, 8
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.00408420
mov byte [ebp - 4], 2
cmp dword [ebp - 0x58], 8
jb 0x42c105
push dword [ebp - 0x6c]
call fcn.0048d9a0
add esp, 4
push 1
push 0x4f803c
lea ecx, [ebp - 0x2c]
call fcn.004084f0
push 5
xor eax, eax
mov dword [ebp - 0x58], 7
push str.Range
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x5c], 0
mov word [ebp - 0x6c], ax
call fcn.004066b0
mov ebx, dword [ebp - 0x88]
lea eax, [ebp - 0x6c]
push eax
mov ecx, ebx
mov byte [ebp - 4], 4
call fcn.0040a5b0
mov esi, eax
cmp esi, dword [ebx]
je 0x42c172
cmp dword [esi + 0x24], 8
lea eax, [esi + 0x10]
mov ecx, dword [eax + 0x10]
jb 0x42c160
mov eax, dword [eax]
push ecx
push eax
push dword [ebp - 0x5c]
push ecx
lea ecx, [ebp - 0x6c]
call fcn.004059d0
test eax, eax
jns 0x42c19f
lea eax, [ebp - 0x6c]
push ecx
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x50]
push eax
push ecx
mov ecx, ebx
call fcn.0040a7b0
push eax
add eax, 0x10
mov ecx, ebx
push eax
push esi
lea eax, [ebp - 0x84]
push eax
call fcn.0040a870
mov esi, dword [ebp - 0x84]
lea ecx, [esi + 0x28]
lea eax, [ebp - 0x2c]
cmp ecx, eax
je 0x42c1b3
push 0xffffffffffffffff
push 0
push eax
call fcn.00406d70
cmp dword [ebp - 0x58], 8
jb 0x42c1c4
push dword [ebp - 0x6c]
call fcn.0048d9a0
add esp, 4
mov byte [ebp - 4], 0
cmp dword [ebp - 0x18], 8
jb 0x42c1d9
push dword [ebp - 0x2c]
call fcn.0048d9a0
add esp, 4
push dword [ebp - 0x70]
mov edi, dword [ebp - 0x7c]
lea eax, [ebp - 0x44]
mov ebx, dword [ebp - 0x74]
mov ecx, ebx
push edi
push eax
call fcn.0042bd60
test al, al
jne 0x42c245
cmp byte [ebx + 0x60], al
jne 0x42c22a
mov esi, dword [ebx + 0x58]
test esi, esi
jne 0x42c201
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 0x42c241
mov eax, dword [ebp - 0x80]
lea esi, [ebx + 0x34]
inc eax
mov dword [ebp - 0x80], eax
cmp eax, 3
jl 0x42bf90
xor bl, bl
jmp 0x42c267
push str.m_bPause_is_true
push 0x186
push str.utility::CHttpClientWrapper::download2file_ex
call fcn.0040ba80
add esp, 0xc
xor bl, bl
jmp 0x42c267
cmp dword [edi + 0x14], 8
jb 0x42c24d
mov edi, dword [edi]
push edi
push 0x4f8040
push 0x182
push str.utility::CHttpClientWrapper::download2file_ex
call fcn.0040ba80
add esp, 0x10
mov bl, 1
cmp dword [ebp - 0x30], 8
jb 0x42c278
push dword [ebp - 0x44]
call fcn.0048d9a0
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.0049a4c3
mov esp, ebp
pop ebp
ret 0x1c