Function at 0x4413f0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4a1d28
push 0x470da0
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, 0x1848
call fcn.00470d70
mov eax, dword [0x4ae830]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x24], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x184c], ecx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 4], 0
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
mov ecx, dword [ebp + 8]
add ecx, 0x70
call fcn.00417120
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
jne 0x44147d
jmp 0x44174a
mov dword [ebp - 0x834], 0
lea eax, [ebp - 0x834]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x183c], eax
cmp dword [ebp - 0x183c], 0xffffffff
jne 0x4414b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4414b6
jmp 0x44174a
mov edx, dword [ebp - 0x834]
xor eax, eax
mov dword [ebp - 0x830], edx
mov dword [ebp - 0x82c], eax
mov eax, dword [ebp - 0x830]
mov edx, dword [ebp - 0x82c]
mov cl, 0x20
call fcn.0046fd50
mov ecx, dword [ebp - 0x183c]
xor esi, esi
add eax, ecx
adc edx, esi
mov dword [ebp - 0x830], eax
mov dword [ebp - 0x82c], edx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x1850], edx
mov eax, dword [ebp - 0x1850]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x830]
jne 0x441520
mov edx, dword [ebp - 0x1850]
mov eax, dword [edx + 0xc]
cmp eax, dword [ebp - 0x82c]
je 0x441542
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov edx, dword [ebp + 8]
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1854], eax
mov ecx, dword [ebp - 0x1854]
mov edx, dword [ebp - 0x1854]
mov eax, dword [ecx + 8]
or eax, dword [edx + 0xc]
je 0x4415bd
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x1858], ecx
mov dword [ebp - 0x185c], edx
mov eax, dword [ebp - 0x1858]
mov ecx, dword [ebp - 0x185c]
mov edx, dword [eax + 0xc]
cmp edx, dword [ecx + 0x14]
jb 0x4415bd
ja 0x44159b
mov eax, dword [ebp - 0x1858]
mov ecx, dword [ebp - 0x185c]
mov edx, dword [eax + 8]
cmp edx, dword [ecx + 0x10]
jbe 0x4415bd
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov edx, dword [ebp + 8]
mov dword [ebp - 0x1860], edx
mov eax, dword [ebp - 0x1860]
mov ecx, dword [ebp - 0x1860]
mov edx, dword [eax + 8]
or edx, dword [ecx + 0xc]
je 0x4415ea
push 2
push 0
push 0
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor ecx, ecx
mov word [ebp - 0x1844], cx
mov dx, word [0x492534]
mov word [ebp - 0x1038], dx
push 0x7fe
push 0
lea eax, [ebp - 0x1036]
push eax
call fcn.0046fba0
add esp, 0xc
mov cx, word [0x492538]
mov word [ebp - 0x1838], cx
push 0x7fe
push 0
lea edx, [ebp - 0x1836]
push edx
call fcn.0046fba0
add esp, 0xc
mov ax, word [0x49253c]
mov word [ebp - 0x828], ax
push 0x7fe
push 0
lea ecx, [ebp - 0x826]
push ecx
call fcn.0046fba0
add esp, 0xc
mov dword [ebp - 0x838], 0
push 0x400
lea edx, [ebp - 0x828]
push edx
lea eax, [ebp - 0x1844]
push eax
push 0x400
lea ecx, [ebp - 0x1838]
push ecx
push 0x400
lea edx, [ebp - 0x1038]
push edx
mov ecx, dword [ebp + 8]
add ecx, 0x54
call fcn.00417120
push eax
mov ecx, dword [ebp - 0x184c]
call fcn.004419e0
push 0
push 0
movzx eax, word [ebp - 0x1844]
push eax
lea ecx, [ebp - 0x1838]
push ecx
mov ecx, dword [ebp - 0x184c]
call fcn.00441af0
mov dword [ebp - 0x1840], eax
cmp dword [ebp - 0x1840], 0
je 0x441742
lea edx, [ebp - 0x828]
push edx
mov eax, dword [ebp - 0x1840]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x184c]
call fcn.004417f0
mov dword [ebp - 0x1848], eax
cmp dword [ebp - 0x1848], 0
je 0x441735
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x1848]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x184c]
call fcn.00440e70
test eax, eax
je 0x441728
mov dword [ebp - 0x1c], 1
mov edx, dword [ebp - 0x1848]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x1840]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor ecx, ecx
jne 0x44144b
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xfffffffe
jmp 0x44176d
cmp dword [ebp - 0x1c], 0
je 0x44179e
mov eax, dword [ebp - 0x184c]
cmp dword [eax + 4], 0
je 0x44179c
mov ecx, dword [ebp - 0x184c]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 8]
push eax
push 4
mov ecx, dword [ebp - 0x184c]
mov edx, dword [ecx + 4]
call edx
add esp, 0xc
jmp 0x4417c7
mov eax, dword [ebp - 0x184c]
cmp dword [eax + 4], 0
je 0x4417c7
mov ecx, dword [ebp - 0x184c]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 8]
push eax
push 3
mov ecx, dword [ebp - 0x184c]
mov edx, dword [ecx + 4]
call edx
add esp, 0xc
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.0046fd33
mov esp, ebp
pop ebp
ret 4