Function at 0x100af430
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp byte [ebp + 8], 0
push ebx
push esi
push edi
mov ebx, edx
mov edi, ecx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], edi
je 0x100af44f
call dword [0x10120eb4]
mov eax, dword [0x10175ffc]
mov eax, dword [eax + 4]
test eax, eax
je 0x100af47f
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
call dword [0x10120d58]
mov eax, dword [0x10175ffc]
mov dword [eax + 4], 0
mov eax, dword [0x10175ffc]
mov dword [eax + 8], 0
mov eax, dword [0x10175ff4]
mov eax, dword [eax + 4]
test eax, eax
je 0x100af4af
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
call dword [0x10120d58]
mov eax, dword [0x10175ff4]
mov dword [eax + 4], 0
mov eax, dword [0x10175ff4]
mov dword [eax + 8], 0
mov ecx, dword [0x1013cd38]
mov edx, 0x22
mov byte [ebp - 1], 0
mov byte [ebp + 0xb], 0
mov ecx, dword [ecx]
call fcn.10024740
push 0x1011f824
push ebx
push edi
lea esi, [eax - 1]
mov eax, dword [0x10175ff8]
neg esi
sbb esi, esi
and esi, 7
add esi, 0x46
push esi
push str.Appearanceh_cR_02dS_02d_s
push 0x40
push dword [eax]
call fcn.10016b60
mov eax, dword [0x10175ff8]
add esp, 0x1c
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
movzx ebx, byte [ebp - 1]
cmp eax, 0xffffffff
mov eax, dword [0x10175ffc]
mov ecx, 1
push str..dat
push dword [ebp - 8]
cmovne ebx, ecx
push edi
push esi
push str.Appearanceh_cR_02dS_02d_s
push 0x40
push dword [eax]
call fcn.10016b60
mov eax, dword [0x10175ffc]
add esp, 0x1c
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x100af66f
test al, 0x10
jne 0x100af572
mov eax, dword [0x10175ffc]
mov eax, dword [eax]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
call dword [0x10120d54]
mov ecx, dword [0x10175ffc]
mov dword [ecx + 4], eax
mov eax, dword [0x10175ffc]
mov dword [eax + 8], 1
test bl, bl
je 0x100af584
mov eax, dword [0x10175ff8]
mov ecx, dword [0x10175ffc]
mov dword [eax + 0xc], ecx
mov byte [ebp + 0xb], 1
movzx edi, byte [ebp + 0xb]
mov eax, 0x10175ffc
movzx ecx, bl
shl ecx, 2
sub eax, ecx
cmp dword [ebp - 8], 0
mov ecx, dword [edi*4 + 0x10175ff8]
mov dword [0x10154a34], eax
mov eax, dword [0x1013cd20]
mov eax, dword [eax]
mov dword [ecx + 0xc], eax
je 0x100af6b3
mov eax, dword [0x10175ff0]
xor bl, bl
push 0x1011f824
push 0
push dword [ebp - 0xc]
push esi
push str.Appearanceh_cR_02dS_02d_s
push 0x40
push dword [eax]
call fcn.10016b60
mov eax, dword [0x10175ff0]
add esp, 0x1c
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push str..dat
push 0
push dword [ebp - 0xc]
cmp eax, 0xffffffff
movzx ebx, bl
mov eax, 1
push esi
cmovne ebx, eax
mov eax, dword [0x10175ff4]
push str.Appearanceh_cR_02dS_02d_s
push 0x40
push dword [eax]
call fcn.10016b60
mov eax, dword [0x10175ff4]
add esp, 0x1c
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x100af683
test al, 0x10
jne 0x100af656
mov eax, dword [0x10175ff4]
mov eax, dword [eax]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
call dword [0x10120d54]
mov ecx, dword [0x10175ff4]
mov dword [ecx + 4], eax
mov eax, dword [0x10175ff4]
mov dword [eax + 8], 1
test bl, bl
je 0x100af668
mov eax, dword [0x10175ff0]
mov ecx, dword [0x10175ff4]
mov dword [eax + 0xc], ecx
mov esi, 1
jmp 0x100af689
test bl, bl
jne 0x100af588
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor esi, esi
test bl, bl
je 0x100af6b3
mov ecx, dword [edi*4 + 0x10175ff8]
mov edx, 0x10175ff4
movzx eax, bl
shl eax, 2
sub edx, eax
mov eax, dword [edx]
mov dword [ecx + 0xc], eax
mov eax, dword [0x1013cd20]
mov ecx, dword [esi*4 + 0x10175ff0]
mov eax, dword [eax]
mov dword [ecx + 0xc], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4