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

Disassembly:
push 0xa38
mov eax, 0x5f4277
call fcn.005bd067
mov ebx, ecx
mov esi, dword [ebp + 8]
xor edi, edi
cmp dword [ebx + 0x28], edi
je 0x4aac6f
xor eax, eax
jmp 0x4aaec8
test esi, esi
jne 0x4aac78
call fcn.00477c7d
lea eax, [ebx + 0x8c]
push eax
call fcn.00498910
push esi
lea ecx, [ebp - 0xa2c]
call fcn.004030b4
push edi
push 0x63fe60
lea ecx, [ebp - 0xa2c]
mov dword [ebp - 4], edi
call fcn.004053f6
cmp eax, 0xffffffff
jne 0x4aad8a
push edi
push 0x6064c0
lea ecx, [ebp - 0xa2c]
call fcn.004053f6
cmp eax, 0xffffffff
jne 0x4aad8a
push edi
push 0x6026cc
lea ecx, [ebp - 0xa2c]
call fcn.004053f6
cmp eax, 0xffffffff
jne 0x4aad8a
push 0x104
lea eax, [ebp - 0xa28]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4aad8a
push edi
push edi
push edi
push edi
mov edi, 0x100
lea eax, [ebp - 0x820]
push edi
push eax
push 3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xa28]
push eax
call fcn.005ce698
push edi
lea eax, [ebp - 0x420]
push eax
push edi
lea eax, [ebp - 0x620]
xor edi, edi
push eax
push edi
push edi
push edi
push edi
push esi
call fcn.005ce698
add esp, 0x48
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x620]
push eax
lea eax, [ebp - 0x820]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x220]
push 0x104
push eax
call fcn.005cf4e2
lea eax, [ebp - 0x220]
push eax
call fcn.005ce0d0
add esp, 0x1c
lea ecx, [ebp - 0xa2c]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.004020e3
cmp dword [ebp + 0xc], 0
jbe 0x4aadd4
push edi
push edi
push 3
push edi
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4aadd4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, dword [ebp + 0xc]
jbe 0x4aadd4
mov ecx, dword [ebp - 0xa2c]
lea ecx, [ecx - 0x10]
call fcn.00402325
jmp 0x4aac68
mov esi, dword [ebx + 0x34]
mov edi, dword [ebp - 0xa2c]
call fcn.00491f54
neg esi
sbb esi, esi
xor ecx, ecx
mov eax, dword [eax + 8]
and esi, 0x1000
add esi, 0x2010
push esi
push ecx
push ecx
push ecx
push edi
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
lea esi, [ebx + 0x8c]
mov dword [esi], eax
test eax, eax
je 0x4aadc1
lea ecx, [ebp - 0xa44]
push ecx
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
jne 0x4aae30
push dword [esi]
call dword [sym.imp.GDI32.dll_DeleteObject]
and dword [esi], 0
jmp 0x4aadc1
xor edi, edi
lea eax, [ebp - 0xa2c]
inc edi
lea ecx, [ebx + 0x98]
push eax
mov dword [ebx + 0x18], edi
call fcn.0040215c
push dword [ebp - 0xa2c]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x4aae5b
mov dword [ebx + 0x24], edi
mov cx, word [ebp - 0xa32]
movzx eax, cx
mov dword [ebx + 8], eax
add eax, 0xfffffff7
cmp eax, 0x16
ja 0x4aae83
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push esi
call fcn.004ab223
mov cx, word [ebp - 0xa32]
cmp cx, 0x20
jb 0x4aae93
push dword [ebx + 0x3c]
push dword [esi]
call fcn.004abdb2
mov ecx, ebx
call fcn.004acb71
lea esi, [ebx + 0x90]
push esi
call fcn.00498910
and dword [esi], 0
lea esi, [ebx + 0x94]
push esi
call fcn.00498910
mov ecx, dword [ebp - 0xa2c]
and dword [esi], 0
add ecx, 0xfffffff0
call fcn.00402325
mov eax, edi
call fcn.005bd011
ret 8