Function at 0x18005302
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x180fd00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ecx + 0x14]
push esi
push edi
mov edx, eax
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x20]
call fcn.18011546
push dword [ebp - 0x20]
xor ebx, ebx
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
call fcn.18005bdc
push 0x180e4290
lea ecx, [ebp - 0x38]
call fcn.18005a55
push str..lzma
lea ecx, [ebp - 0x1c]
call fcn.18005bdc
lea eax, [ebp - 0x34]
push 0x18007158
push eax
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0x38]
call fcn.1801139c
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.18003140
mov eax, dword [ebp - 0x30]
mov esi, ebx
mov ecx, dword [ebp - 0x34]
sub eax, ecx
sar eax, 2
test eax, eax
je 0x180053db
lea eax, [ecx + esi*4]
push eax
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0x18]
call fcn.180114a5
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x20]
pop ecx
lea ecx, [ebp - 0x1c]
lea eax, [eax + esi*4]
push eax
call fcn.180114a5
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
call fcn.1800db02
pop ecx
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.18003140
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.18003140
mov eax, dword [ebp - 0x30]
inc esi
mov ecx, dword [ebp - 0x34]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x18005387
mov edi, str.AsusUpdate.log
lea ecx, [ebp - 0x18]
push edi
call fcn.18005bdc
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0x48]
call fcn.180114a5
pop ecx
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.18003140
mov ecx, dword [ebp - 0x48]
call fcn.1800d860
test al, al
je 0x18005466
push edi
lea ecx, [ebp - 0x18]
call fcn.18005bdc
lea eax, [ebp - 0x18]
push str..old
push eax
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x1c]
call fcn.180114a5
pop ecx
mov edx, eax
lea ecx, [ebp - 0x24]
call fcn.18005b2d
pop ecx
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.18003140
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.18003140
mov esi, dword [ebp - 0x24]
mov edx, esi
push ecx
mov ecx, dword [ebp - 0x48]
call fcn.1800db02
pop ecx
lea ecx, [esi - 0x10]
call fcn.18003140
push edi
lea ecx, [ebp - 0x18]
call fcn.18005bdc
lea eax, [ebp - 0x18]
push str..bak
push eax
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0x24]
call fcn.180114a5
pop ecx
mov edx, eax
lea ecx, [ebp - 0x1c]
call fcn.18005b2d
pop ecx
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.18003140
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.18003140
mov esi, dword [ebp - 0x1c]
mov ecx, esi
call fcn.1800d860
test al, al
je 0x180054ba
mov ecx, esi
call fcn.18008be3
push str..lzma
lea ecx, [ebp - 0x18]
call fcn.18005bdc
lea eax, [ebp - 0x34]
push 0x18007158
push eax
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x20]
call fcn.1801139c
pop ecx
pop ecx
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.18003140
mov edx, dword [ebp - 0x30]
mov eax, edx
mov ecx, dword [ebp - 0x34]
sub eax, ecx
mov byte [ebp - 0x24], bl
push dword [ebp - 0x24]
sar eax, 2
push eax
call fcn.1800658e
mov eax, dword [ebp - 0x30]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x34]
sub eax, ecx
sar eax, 2
cmp eax, 9
jbe 0x1800554f
mov edi, ebx
add eax, 0xfffffff7
je 0x1800554f
lea eax, [ecx + edi*4]
push eax
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x24]
call fcn.180114a5
pop ecx
mov ecx, dword [eax]
call fcn.18008be3
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.18003140
mov eax, dword [ebp - 0x30]
inc edi
mov ecx, dword [ebp - 0x34]
sub eax, ecx
sar eax, 2
sub eax, 9
cmp edi, eax
jb 0x1800551a
or ebx, 0xffffffff
mov dword [ebp - 0x50], 0x1800aacb
or dword [ebp - 0x4c], ebx
lea ecx, [ebp - 0x44]
or dword [ebp - 0x3c], ebx
mov dword [ebp - 0x40], 0x1800aae9
call fcn.18005c3b
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0xa]
push eax
movzx eax, word [ebp - 0xc]
push eax
movzx eax, word [ebp - 0xe]
push eax
movzx eax, word [ebp - 0x12]
push eax
movzx eax, word [ebp - 0x14]
push eax
lea eax, [ebp - 0x44]
push str._04d__02d__02d__02d_02d.log.lzma
push eax
call fcn.18011d09
add esp, 0x1c
lea eax, [ebp - 0x44]
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x54]
push eax
call fcn.180114a5
mov eax, dword [ebp - 0x28]
pop ecx
lea ecx, [ebp - 0x28]
push dword [eax]
call fcn.18005dc3
push 0
lea ecx, [ebp - 0x4c]
mov edx, dword [eax]
call fcn.1800aa1b
pop ecx
mov ecx, dword [ebp - 0x28]
mov edi, eax
add ecx, 0xfffffff0
call fcn.18003140
test edi, edi
jne 0x1800568e
push dword [ebp - 0x54]
lea ecx, [ebp - 0x28]
call fcn.18005dc3
push 1
lea ecx, [ebp - 0x3c]
mov edx, dword [eax]
call fcn.1800aa1b
pop ecx
mov ecx, dword [ebp - 0x28]
mov edi, eax
add ecx, 0xfffffff0
call fcn.18003140
test edi, edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x18005673
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1800563b
call edi
test eax, eax
je 0x1800563b
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x40]
jmp 0x18005645
mov eax, dword [ebp - 0x28]
xor ecx, ecx
add ecx, ebx
adc eax, 0
push ecx
push eax
push ecx
lea edx, [ebp - 0x50]
lea ecx, [ebp - 0x40]
call fcn.18005214
add esp, 0xc
mov ebx, eax
cmp dword [ebp - 0x3c], 0xffffffff
je 0x18005673
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1800566f
call edi
jmp 0x18005673
or dword [ebp - 0x3c], 0xffffffff
cmp dword [ebp - 0x4c], 0xffffffff
je 0x1800568e
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1800568a
call edi
jmp 0x1800568e
or dword [ebp - 0x4c], 0xffffffff
mov ecx, dword [ebp - 0x54]
test ebx, ebx
sete bl
lea ecx, [ecx - 0x10]
call fcn.18003140
mov ecx, dword [ebp - 0x44]
lea ecx, [ecx - 0x10]
call fcn.18003140
lea ecx, [esi - 0x10]
call fcn.18003140
mov ecx, dword [ebp - 0x48]
lea ecx, [ecx - 0x10]
call fcn.18003140
mov ecx, dword [ebp - 0x38]
lea ecx, [ecx - 0x10]
call fcn.18003140
mov esi, dword [ebp - 0x34]
test esi, esi
je 0x18005705
mov edi, dword [ebp - 0x30]
cmp esi, edi
je 0x180056e9
mov ecx, dword [esi]
sub ecx, 0x10
call fcn.18003140
add esi, 4
cmp esi, edi
jne 0x180056d5
mov esi, dword [ebp - 0x34]
mov eax, dword [ebp - 0x2c]
sub eax, esi
and eax, 0xfffffffc
push eax
push esi
call fcn.180064b3
xor eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.18003140
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.180a61d8
leave
ret