Function at 0x66e406b8
Capabilities:
Get file attributes
Get file size

Disassembly:
push 0x52c
mov eax, 0x66f7a40e
call fcn.66f2d094
mov edi, ecx
mov esi, dword [ebp + 8]
xor eax, eax
cmp dword [edi + 0x28], eax
jne 0x66e40950
test esi, esi
setne al
test eax, eax
jne 0x66e406e5
call fcn.66e140ac
lea ebx, [edi + 0x8c]
push ebx
call fcn.66e20712
push esi
lea ecx, [ebp - 0x51c]
call fcn.66e15472
and dword [ebp - 4], 0
lea ecx, [ebp - 0x51c]
push 0
push 0x66f8af3c
call fcn.66e23908
cmp eax, 0xffffffff
jne 0x66e407fb
push 0
push 0x66f92c14
lea ecx, [ebp - 0x51c]
call fcn.66e23908
cmp eax, 0xffffffff
jne 0x66e407fb
push 0
push 0x66f8e190
lea ecx, [ebp - 0x51c]
call fcn.66e23908
cmp eax, 0xffffffff
jne 0x66e407fb
push 0x104
lea eax, [ebp - 0x518]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x66e407fb
xor eax, eax
push eax
push eax
push eax
push eax
push 0x100
lea eax, [ebp - 0x310]
push eax
push 3
lea eax, [ebp - 0x520]
push eax
lea eax, [ebp - 0x518]
push eax
call fcn.66f30721
mov ecx, 0x100
lea eax, [ebp - 0x110]
push ecx
push eax
push ecx
lea eax, [ebp - 0x210]
push eax
xor eax, eax
push eax
push eax
push eax
push eax
push esi
call fcn.66f30721
add esp, 0x48
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x520]
push eax
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.66f3062e
add esp, 0x18
lea eax, [ebp - 0x414]
lea ecx, [ebp - 0x51c]
push eax
call fcn.66e15d87
cmp dword [ebp + 0xc], 0
jbe 0x66e40852
xor eax, eax
push eax
push eax
push 3
push eax
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x520], eax
cmp eax, 0xffffffff
je 0x66e40852
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push dword [ebp - 0x520]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, dword [ebp + 0xc]
jbe 0x66e40852
mov ecx, dword [ebp - 0x51c]
lea ecx, [ecx - 0x10]
call fcn.66e14d3f
xor eax, eax
jmp 0x66e40950
cmp dword [edi + 0x34], 0
mov dword [ebp - 0x520], 0x2010
je 0x66e4086c
mov dword [ebp - 0x520], 0x3010
mov esi, dword [ebp - 0x51c]
call fcn.66e14b58
push dword [ebp - 0x520]
xor ecx, ecx
push ecx
mov eax, dword [eax + 8]
push ecx
push ecx
push esi
push eax
call dword [sym.imp.USER32.dll_LoadImageA]
mov dword [ebx], eax
test eax, eax
je 0x66e4083d
lea ecx, [ebp - 0x538]
push ecx
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
test eax, eax
jne 0x66e408b4
push dword [ebx]
call dword [sym.imp.GDI32.dll_DeleteObject]
and dword [ebx], 0
jmp 0x66e4083d
xor esi, esi
lea eax, [ebp - 0x51c]
inc esi
lea ecx, [edi + 0x98]
push eax
mov dword [edi + 0x18], esi
call fcn.66e16556
push dword [ebp - 0x51c]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x66e408df
mov dword [edi + 0x24], esi
mov ax, word [ebp - 0x526]
movzx ecx, ax
mov dword [edi + 8], ecx
push 0x20
pop esi
cmp ecx, 8
jle 0x66e4090b
cmp ecx, esi
jge 0x66e4090b
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push ebx
call fcn.66e40ca5
mov ax, word [ebp - 0x526]
cmp ax, si
jb 0x66e4091a
push dword [edi + 0x3c]
push dword [ebx]
call fcn.66e4181c
mov ecx, edi
call fcn.66e425d3
lea esi, [edi + 0x90]
push esi
call fcn.66e20712
and dword [esi], 0
lea esi, [edi + 0x94]
push esi
call fcn.66e20712
mov ecx, dword [ebp - 0x51c]
and dword [esi], 0
add ecx, 0xfffffff0
call fcn.66e14d3f
xor eax, eax
inc eax
call fcn.66f2d043
ret 8