Function at 0x41afa0
Capabilities:
Get file size

Disassembly:
push ecx
push ebx
push esi
mov esi, dword [esp + 0x20]
push edi
xor edi, edi
push edi
push edi
push edi
push edi
push 1
push edi
push esi
mov dword [esp + 0x28], edi
mov dword [esi + 0x1c], 0xa0ffffff
call fcn.0041b260
test al, al
je 0x41b214
mov ebx, dword [esp + 0x1c]
push ebp
test ebx, ebx
je 0x41afe3
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
jmp 0x41afe5
xor ebp, ebp
mov eax, dword [esi + 0xc]
mov edi, dword [esi + 8]
push eax
call fcn.0041b240
push edi
push eax
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push ebp
push ebx
push ecx
push edx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov edi, eax
pop ebp
test edi, edi
je 0x41b202
push 0
push 0
push 0
push 0
push 2
push edi
push esi
call fcn.0041b260
test al, al
je 0x41b1da
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0
push eax
push edi
push esi
call fcn.0041b2a0
test al, al
je 0x41b1e1
test byte [esi + 0x24], 1
je 0x41b064
push 0
push 0
push 0
push 0
push 8
push edi
push esi
call fcn.0041b260
test al, al
je 0x41b1da
mov ecx, dword [esp + 0x24]
push 0
push 0
push ecx
push 0
push 3
push edi
push esi
call fcn.0041b260
test al, al
je 0x41b1da
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x41b1c6
push 0
push 0x80
push 4
push 0
push 1
push 0xc0000000
push ebx
call fcn.0041b230
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
je 0x41b0c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
cmp eax, 0xb7
sete dl
lea edx, [edx + edx + 1]
mov dword [esp + 0x18], edx
jmp 0x41b0e4
lea eax, [esp + 0x1c]
push eax
push 0
push ebx
call fcn.0041a260
test eax, eax
je 0x41b1bd
mov dword [esp + 0x18], 3
mov ebx, dword [esp + 0x1c]
cmp ebx, 0xffffffff
je 0x41b1bd
mov ecx, dword [esp + 0x24]
push 0
push 0
push ecx
push 0
push 4
push edi
push esi
call fcn.0041b260
test al, al
je 0x41b1b4
test byte [esi], 1
je 0x41b159
test byte [esi + 0x24], 1
jne 0x41b159
cmp dword [esp + 0x18], 3
jne 0x41b159
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x41b159
mov ecx, dword [esp + 0x24]
cmp ecx, eax
jne 0x41b159
push 0
push 0
push ecx
push eax
push 7
push edi
push esi
call fcn.0041b260
test al, al
je 0x41b1b4
mov dword [esi + 0x1c], 0x20000000
mov dword [esp + 0xc], 1
jmp 0x41b18b
push 0
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x41b195
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x41b195
mov edx, dword [esp + 0x24]
push edx
push ebx
push edi
push esi
call fcn.0041b420
test eax, eax
mov dword [esp + 0xc], eax
je 0x41b19c
test byte [esi], 2
je 0x41b19c
mov dword [esi + 0x18], ebx
jmp 0x41b1e1
mov dword [esi + 0x1c], 0xa0000008
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x41b1e1
mov dword [esi + 0x1c], 0xa0000001
jmp 0x41b19c
mov dword [esi + 0x1c], 0xa0000006
jmp 0x41b1e1
mov eax, dword [esp + 0x24]
push eax
push 0xffffffffffffffff
push edi
push esi
call fcn.0041b420
mov dword [esp + 0xc], eax
jmp 0x41b1e1
mov dword [esi + 0x1c], 0xa0000001
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
mov eax, dword [esp + 4]
pop ebx
pop ecx
ret 0x14
mov eax, dword [esp + 0xc]
mov dword [esi + 0x1c], 0xa0000002
pop edi
pop esi
pop ebx
pop ecx
ret 0x14
mov eax, edi
mov dword [esi + 0x1c], 0xa0000001
pop edi
pop esi
pop ebx
pop ecx
ret 0x14