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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0xe]
lea ebx, [edi + 0xe]
or eax, dword [ebx + 4]
jne 0x110482c1
mov ecx, ebx
call fcn.110481b0
test al, al
je 0x110482c1
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.11048a50
mov eax, dword [ebp - 4]
cmp eax, dword [0x110e4ebc]
jne 0x110484f5
push ebx
mov dword [0x6ac780], 1
lea eax, [ebp - 0x124]
push dword [0x5193cc]
push str._s_artheads_s_
push eax
call fcn.11048b70
mov esi, eax
add esp, 0x10
cmp esi, 0xfa
jg 0x110482b8
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
je 0x110482b4
movzx eax, word [edi + 8]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1107e661
mov dword [ebp - 4], eax
add esp, 4
xor eax, eax
xor ebx, ebx
cmp ax, word [edi + 8]
jae 0x110483a5
lea eax, [ebp - 0x124]
add eax, esi
push ebx
push str._d.png
push eax
call fcn.11011d70
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 0
push 0
push 1
push 0
push 0
lea eax, [ebp - 0x124]
push eax
push dword [0x110d6510]
call dword [sym.imp.d3dx9_43.dll_D3DXCreateTextureFromFileExA]
test eax, eax
js 0x110484bc
call dword [0x110af1f4]
movzx eax, word [edi + 8]
inc ebx
cmp ebx, eax
lea eax, [ebp - 0x124]
lea eax, [eax + esi]
jl 0x11048346
mov eax, 0xabcd
cmp word [edi + 0xc], ax
je 0x1104847a
xor eax, eax
mov ecx, esi
cmp esi, 0x104
jge 0x110483db
mov dl, byte [eax + str.highlight.off]
test dl, dl
je 0x110483db
mov byte [ebp + ecx - 0x124], dl
inc eax
inc ecx
cmp ecx, 0x104
jl 0x110483c0
mov al, byte [eax + str.highlight.off]
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov byte [ebp + ecx - 0x124], al
lea eax, [ebp - 0x124]
push eax
call ebx
cmp eax, 0xffffffff
je 0x11048400
mov byte [edi + 0x1f], 1
cmp byte [edi + 0x1f], 0
jne 0x11048432
cmp dword [0x110d71b8], 0
je 0x11048432
push esi
mov edx, str.highlight.on
lea ecx, [ebp - 0x124]
call fcn.11048250
lea eax, [ebp - 0x124]
push eax
call ebx
cmp eax, 0xffffffff
je 0x11048432
mov byte [edi + 0x1f], 2
xor eax, eax
cmp esi, 0x104
jge 0x1104845b
lea esp, [esp]
mov cl, byte [eax + str.background.off]
test cl, cl
je 0x1104845b
mov byte [ebp + esi - 0x124], cl
inc eax
inc esi
cmp esi, 0x104
jl 0x11048440
mov al, byte [eax + str.background.off]
mov byte [ebp + esi - 0x124], al
lea eax, [ebp - 0x124]
push eax
call ebx
cmp eax, 0xffffffff
je 0x1104847a
mov byte [edi + 0x1e], 1
mov eax, dword [ebp - 4]
lea esi, [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], esi
push eax
push ecx
lea eax, [ebp - 0x20]
push eax
call fcn.11048b90
mov dword [0x6ac780], 0
jmp 0x11048509
xor esi, esi
test ebx, ebx
jle 0x110484d3
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 0x110484c2
push dword [ebp - 4]
call fcn.1107e309
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 esi, [edi + 0x1e]
mov dword [edi + 0x1a], ecx
mov cl, byte [eax + 0x14]
mov byte [edi + 0x1f], cl
mov al, byte [eax + 0x15]
mov byte [esi], al
xor eax, eax
xor ebx, ebx
cmp ax, word [edi + 8]
jae 0x1104856d
push 0
mov edx, ebx
mov ecx, edi
call fcn.11014a80
cmp byte [esi], 0
mov edx, eax
je 0x1104853b
push dword [edx + 4]
lea eax, [edx + 0xc]
push 0xff
push eax
call fcn.110816e0
add esp, 0xc
jmp 0x11048564
cmp dword [edx + 4], 0
jbe 0x11048564
mov esi, 0xfffffff4
lea eax, [edx + 0xc]
sub esi, edx
jmp 0x11048550
cmp byte [eax], 0
je 0x11048558
mov byte [eax], 0xff
inc eax
lea ecx, [esi + eax]
cmp ecx, dword [edx + 4]
jb 0x11048550
lea esi, [edi + 0x1e]
movzx eax, word [edi + 8]
inc ebx
cmp ebx, eax
jl 0x11048513
mov byte [edi + 0x18], 1
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret