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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0xe]
lea ebx, [edi + 0xe]
or eax, dword [ebx + 4]
jne 0x100ae651
mov ecx, ebx
call fcn.100ae540
test al, al
je 0x100ae651
mov byte [edi + 0x19], 1
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
lea eax, [ebp - 4]
push eax
call fcn.100aef10
mov eax, dword [ebp - 4]
cmp eax, dword [0x10154a54]
jne 0x100ae885
push ebx
mov dword [0x6ac780], 1
lea eax, [ebp - 0x128]
push dword [0x5193cc]
push str._s_artheads_s_
push eax
call fcn.100af030
mov esi, eax
add esp, 0x10
cmp esi, 0xfa
jg 0x100ae648
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
je 0x100ae644
movzx eax, word [edi + 8]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100ea11b
mov dword [ebp - 4], eax
add esp, 4
xor eax, eax
xor ebx, ebx
cmp ax, word [edi + 8]
jae 0x100ae735
lea eax, [ebp - 0x128]
add eax, esi
push ebx
push str._d.png
push eax
call fcn.1000d880
mov eax, dword [ebp - 4]
add esp, 0xc
lea eax, [eax + ebx*4]
push eax
push 0
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 1
push 0x15
push 0
push 1
push 0
push 0
lea eax, [ebp - 0x128]
push eax
push dword [0x1017533c]
call dword [sym.imp.d3dx9_43.dll_D3DXCreateTextureFromFileExA]
test eax, eax
js 0x100ae84c
call dword [0x101212e8]
movzx eax, word [edi + 8]
inc ebx
cmp ebx, eax
lea eax, [ebp - 0x128]
lea eax, [eax + esi]
jl 0x100ae6d6
mov eax, 0xabcd
cmp word [edi + 0xc], ax
je 0x100ae80a
xor eax, eax
mov ecx, esi
cmp esi, 0x104
jge 0x100ae76b
mov dl, byte [eax + str.highlight.off]
test dl, dl
je 0x100ae76b
mov byte [ebp + ecx - 0x128], dl
inc eax
inc ecx
cmp ecx, 0x104
jl 0x100ae750
mov al, byte [eax + str.highlight.off]
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov byte [ebp + ecx - 0x128], al
lea eax, [ebp - 0x128]
push eax
call ebx
cmp eax, 0xffffffff
je 0x100ae790
mov byte [edi + 0x1f], 1
cmp byte [edi + 0x1f], 0
jne 0x100ae7c2
cmp dword [0x10175fec], 0
je 0x100ae7c2
push esi
mov edx, str.highlight.on
lea ecx, [ebp - 0x128]
call fcn.100ae5e0
lea eax, [ebp - 0x128]
push eax
call ebx
cmp eax, 0xffffffff
je 0x100ae7c2
mov byte [edi + 0x1f], 2
xor eax, eax
cmp esi, 0x104
jge 0x100ae7eb
nop dword [eax]
mov cl, byte [eax + str.background.off]
test cl, cl
je 0x100ae7eb
mov byte [ebp + esi - 0x128], cl
inc eax
inc esi
cmp esi, 0x104
jl 0x100ae7d0
mov al, byte [eax + str.background.off]
mov byte [ebp + esi - 0x128], al
lea eax, [ebp - 0x128]
push eax
call ebx
cmp eax, 0xffffffff
je 0x100ae80a
mov byte [edi + 0x1e], 1
mov eax, dword [ebp - 4]
lea ebx, [edi + 0x1e]
mov dword [edi + 0x1a], eax
lea eax, [edi + 8]
mov dword [ebp - 0x18], eax
lea eax, [edi + 0x1f]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 4]
mov dword [ebp - 0xc], eax
lea eax, [edi + 0xe]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], ebx
push eax
push ecx
lea eax, [ebp - 0x20]
push eax
call fcn.100af050
mov dword [0x6ac780], 0
jmp 0x100ae899
xor esi, esi
test ebx, ebx
jle 0x100ae863
mov eax, dword [ebp - 4]
mov eax, dword [eax + esi*4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
inc esi
cmp esi, ebx
jl 0x100ae852
push dword [ebp - 4]
call fcn.100e9b5e
add esp, 4
mov byte [edi + 0x19], 1
mov dword [0x6ac780], 0
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [eax + 0x10]
lea ebx, [edi + 0x1e]
mov dword [edi + 0x1a], ecx
mov cl, byte [eax + 0x14]
mov byte [edi + 0x1f], cl
mov al, byte [eax + 0x15]
mov byte [ebx], al
xor eax, eax
xor esi, esi
cmp ax, word [edi + 8]
jae 0x100ae8ed
push 0
mov edx, esi
mov ecx, edi
call fcn.100172e0
cmp byte [ebx], 0
mov ecx, eax
je 0x100ae8cb
push dword [ecx + 4]
lea eax, [ecx + 0xc]
push 0xff
push eax
call fcn.100ed150
add esp, 0xc
jmp 0x100ae8e4
xor eax, eax
cmp dword [ecx + 4], eax
jbe 0x100ae8e4
cmp byte [eax + ecx + 0xc], 0
je 0x100ae8de
mov byte [eax + ecx + 0xc], 0xff
inc eax
cmp eax, dword [ecx + 4]
jb 0x100ae8d2
movzx eax, word [edi + 8]
inc esi
cmp esi, eax
jl 0x100ae8a3
mov byte [edi + 0x18], 1
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret