Function at 0x4aa46d
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
mov esi, ecx
cmp byte [esi + 0x3f], 0
je 0x4aa483
xor al, al
jmp 0x4aa7c3
push edi
call fcn.004a9f9b
mov edi, eax
mov ecx, edi
mov dword [ebp - 4], edi
call fcn.004a3a8b
test al, al
jne 0x4aa4ba
push dword [0x550630]
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x40], 0x30
call fcn.0046960b
pop ecx
pop ecx
jmp 0x4aa4ff
cmp byte [0x54afdc], 0
je 0x4aa50f
call fcn.00488a21
mov edx, eax
mov ecx, edi
call fcn.00472312
test al, al
jne 0x4aa50f
push 0x4f3aa8
push dword [0x550648]
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x40], 0x34
call fcn.0046960b
add esp, 0xc
cmp eax, 6
je 0x4aa50f
mov dl, 1
mov ecx, edi
call fcn.0046b3e9
xor al, al
jmp 0x4aa7c2
mov eax, dword [esi + 0x20]
mov eax, dword [eax + 0x168]
cmp byte [eax + 0x28], 0
push ebx
jne 0x4aa578
test dword [esi + 0x34], 0x200
jne 0x4aa581
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov ecx, edi
lea ebx, [ecx + 2]
mov dx, word [ecx]
inc ecx
inc ecx
test dx, dx
jne 0x4aa534
sub ecx, ebx
sar ecx, 1
cmp eax, 0xffffffff
je 0x4aa54b
test al, 0x10
jne 0x4aa557
test ecx, ecx
jle 0x4aa578
cmp word [edi + ecx*2 - 2], 0x5c
jne 0x4aa578
mov ecx, dword [esi + 0x20]
call fcn.0040a1b1
mov edx, eax
mov ecx, edi
call fcn.004a327a
mov dl, 1
mov ecx, edi
mov ebx, eax
call fcn.0046b3e9
mov dword [ebp - 4], ebx
mov edi, ebx
test dword [esi + 0x34], 0x200
je 0x4aa592
mov eax, dword [esi + 0x20]
mov ecx, dword [eax + 0x168]
push edi
call fcn.0044190f
jmp 0x4aa5a1
mov eax, dword [esi + 0x20]
mov ecx, dword [eax + 0x168]
push edi
call fcn.00442518
push 0x4e6
mov ecx, esi
call fcn.00467d80
movzx ebx, al
neg ebx
sbb ebx, ebx
push 0x4b4
mov ecx, esi
and ebx, 0x10
call fcn.00467d80
movzx edi, al
neg edi
sbb edi, edi
and edi, 0x40
or edi, ebx
mov ebx, dword [esi + 0x38]
push 0x4b2
mov ecx, esi
call fcn.00467d80
mov ecx, dword [ebx]
movzx eax, al
neg eax
sbb eax, eax
and eax, 2
and ecx, 0xffffffad
or eax, ecx
or eax, edi
push 0x606
mov ecx, esi
mov dword [ebx], eax
call fcn.00467d80
neg al
sbb al, al
inc al
mov byte [0x54b1ca], al
mov eax, dword [esi + 0x30]
xor ebx, ebx
xor edi, edi
cmp dword [eax + 0x14], ebx
je 0x4aa63f
mov ecx, dword [esi + 0x30]
push edi
call fcn.00429bc3
test al, al
jne 0x4aa636
mov ecx, dword [esi + 0x30]
push edi
call fcn.00429b62
mov eax, dword [eax + 0x10]
cmp eax, ebx
je 0x4aa636
mov byte [eax + 0x24], bl
mov eax, dword [esi + 0x30]
inc edi
cmp edi, dword [eax + 0x14]
jne 0x4aa616
mov edi, 0x200
test dword [esi + 0x34], edi
jne 0x4aa66d
push 0x5c
push dword [ebp - 4]
call sub.MSVCRT.dll_wcsrchr
pop ecx
pop ecx
cmp eax, ebx
je 0x4aa660
xor ecx, ecx
mov word [eax], cx
jmp 0x4aa66d
mov ecx, dword [ebp - 4]
mov dl, 1
call fcn.0046b3e9
mov dword [ebp - 4], ebx
mov edx, dword [ebp - 4]
cmp edx, ebx
je 0x4aa67e
mov ecx, 0x54b928
call fcn.004a384c
push ebx
push 0x4be
mov ecx, esi
call fcn.004a9919
mov ecx, eax
call fcn.0048ded7
mov ecx, dword [esi + 0x20]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004134b4
mov ecx, dword [ebp - 0xc]
mov dl, 1
call fcn.0046b3e9
mov ecx, dword [esi + 0x20]
mov dword [ebp - 8], ebx
test dword [esi + 0x34], edi
je 0x4aa6ce
call fcn.0040d1aa
mov ecx, eax
call fcn.0048c22b
mov edx, eax
lea ecx, [ebp - 8]
call fcn.0048d9fe
jmp 0x4aa6d6
call fcn.0040884d
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x38]
mov ecx, dword [esi + 0x20]
mov edx, dword [ebp - 8]
push ebx
push dword [eax]
call fcn.0041e824
test al, al
jne 0x4aa6f0
mov byte [esi + 0x3e], bl
jmp 0x4aa6ff
push dword [esi + 0x28]
mov ecx, dword [esi + 0x20]
xor dl, dl
mov byte [esi + 0x3e], 1
call dword [esi + 0x24]
cmp byte [esi + 0x41], bl
je 0x4aa7b5
call fcn.0043382f
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x4aa7b5
mov eax, dword [esi + 4]
push 0x5d6
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 4], eax
call fcn.0046e5c1
mov esi, dword [esi + 0x20]
mov ecx, esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x10], esi
call fcn.00490f07
test al, al
je 0x4aa7a8
push 4
push 1
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x24]
call fcn.0048ebd1
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push ebx
push ebx
push 0x1004
push dword [ebp - 4]
call esi
xor edi, edi
cmp eax, ebx
mov dword [ebp - 0x18], eax
jle 0x4aa7a8
push 0xf000
push edi
push 0x102c
push dword [ebp - 4]
call esi
shr eax, 0xc
dec eax
je 0x4aa7a2
mov ecx, dword [ebp - 0x14]
push edi
call fcn.0043378c
cmp eax, ebx
je 0x4aa7a2
lea ecx, [ebp - 0x24]
push ecx
mov ecx, eax
call fcn.0043564d
inc edi
cmp edi, dword [ebp - 0x18]
jl 0x4aa774
lea ecx, [ebp - 0x24]
call fcn.0048e6b4
call fcn.0046e5dd
mov ecx, dword [ebp - 8]
mov dl, 1
call fcn.0046b3e9
mov al, 1
pop ebx
pop edi
pop esi
leave
ret