Function at 0x8076c4
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ecx, 0x80c9e4
mov ebp, esp
push edi
lea eax, [ebp - 0x18]
mov edx, 0x9a862d
push esi
push ebx
sub esp, 0x1fc
mov edi, dword [ebp + 8]
mov dword [ebp - 0x18c], eax
mov esi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x18]
mov dword [ebp - 0x1c4], edi
mov edi, 0x8078d9
mov dword [ebp - 0x1c8], esi
lea esi, [ebp - 0x1ac]
mov dword [ebp - 0x1cc], ebx
mov dword [ebp - 0x194], ecx
mov dword [ebp - 0x190], edx
mov dword [ebp - 0x188], edi
mov dword [ebp - 0x184], esp
mov dword [esp], esi
call fcn.0080f6e4
mov ebx, dword [ebp + 0xc]
mov edx, 0xffffffff
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x1a8], edx
mov dword [esp], ecx
mov dword [esp + 4], ebx
call fcn.0092bbc8
mov eax, dword [ebp - 0x28]
lea edx, [eax - 0xc]
mov eax, dword [eax - 0xc]
test eax, eax
je 0x8077b4
dec eax
mov dword [ebp - 0x1d4], eax
mov eax, dword [edx + 8]
shr eax, 0x1f
test al, al
je 0x807934
mov eax, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x1d4]
cmp byte [eax + ebx], 0x5c
je 0x807954
mov esi, dword [eax - 0xc]
mov eax, dword [eax - 4]
dec esi
mov dword [ebp - 0x1d8], esi
shr eax, 0x1f
test al, al
je 0x8079ca
mov ebx, dword [ebp - 0x28]
add dword [ebp - 0x1d8], ebx
mov ecx, dword [ebp - 0x1d8]
cmp byte [ecx], 0x3a
je 0x807954
mov esi, esi
lea edi, [edi]
mov eax, 0x9e1daf
mov dword [ebp - 0x1d0], eax
lea esi, [ebp - 0x28]
mov edx, dword [ebp - 0x1d0]
mov dword [esp], edx
call sub.msvcrt.dll_strlen
mov dword [esp + 8], eax
mov edi, dword [ebp - 0x1d0]
mov eax, 4
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [ebp - 0x1a8], eax
call fcn.0092a038
mov ecx, dword [ebp - 0x28]
lea ebx, [ebp - 0x168]
mov dword [esp + 4], ebx
mov dword [esp], ecx
call sub.KERNEL32.dll_FindFirstFileA
mov edx, dword [ebp - 0x1c4]
sub esp, 8
mov dword [edx], eax
inc eax
je 0x80795e
lea ebx, [ebp - 0x13c]
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
mov dword [esp + 8], eax
mov edx, dword [ebp + 0x10]
lea ecx, [ebp - 0x13c]
mov dword [esp + 4], ecx
mov eax, 4
mov dword [ebp - 0x1a8], eax
mov dword [esp], edx
call fcn.0092a3d8
test byte [ebp - 0x168], 0x10
jne 0x8079e5
mov edx, dword [ebp - 0x1c8]
mov eax, dword [ebp - 0x1cc]
mov dword [edx], 2
mov dword [eax], 2
mov eax, dword [ebp - 0x28]
mov esi, dword [0x9f6098]
mov ebx, dword [0x9f609c]
lea ecx, [eax - 0xc]
cmp ecx, 0x9aba1c
mov dword [ebp - 0x1e8], esi
mov dword [ebp - 0x1e4], ebx
mov dword [ebp - 0x1f4], ecx
jne 0x807a46
mov eax, dword [ebp - 0x1e8]
mov edx, dword [ebp - 0x1e4]
mov dword [ebp - 0x1c0], eax
lea ebx, [ebp - 0x1ac]
mov dword [ebp - 0x1bc], edx
mov dword [esp], ebx
call fcn.0080f7c4
mov eax, dword [ebp - 0x1c0]
mov edx, dword [ebp - 0x1bc]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea ecx, [ebp - 0x28]
mov edx, 4
mov dword [esp], ecx
mov dword [ebp - 0x1a8], edx
call fcn.00929318
jmp 0x807768
mov eax, 0x9e1db2
jmp 0x8077b9
mov dword [edx], 0
call sub.KERNEL32.dll_GetLastError
xor edx, edx
cmp eax, 2
je 0x807977
call sub.KERNEL32.dll_GetLastError
mov edx, eax
mov dword [ebp - 0x1b8], edx
mov eax, dword [ebp - 0x1b8]
mov edx, dword [0x9f60e8]
mov dword [ebp - 0x1e0], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x1b4], edx
mov edi, dword [ebp - 0x1b4]
lea esi, [eax - 0xc]
mov dword [ebp - 0x1f8], esi
cmp esi, 0x9aba1c
mov dword [ebp - 0x1dc], edi
jne 0x807a8a
mov eax, dword [ebp - 0x1e0]
mov edx, dword [ebp - 0x1dc]
jmp 0x8078ab
lea edx, [ebp - 0x28]
mov edi, 4
mov dword [esp], edx
mov dword [ebp - 0x1a8], edi
call fcn.00929318
jmp 0x807793
mov edi, dword [ebp - 0x1c8]
mov esi, dword [ebp - 0x1cc]
mov dword [edi], 3
mov dword [esi], 3
jmp 0x80786f
mov edx, 0xffffffff
sub eax, 4
mov edi, 2
mov dword [esp + 4], edx
mov dword [esp], eax
mov dword [ebp - 0x1a8], edi
call fcn.00815de4
test eax, eax
jg 0x80789f
mov eax, dword [ebp - 0x1f4]
lea ecx, [ebp - 0x178]
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.00929958
jmp 0x80789f
mov ebx, 0xffffffff
sub eax, 4
mov ecx, 1
mov dword [esp + 4], ebx
mov dword [esp], eax
mov dword [ebp - 0x1a8], ecx
call fcn.00815de4
test eax, eax
jg 0x8079b9
mov esi, dword [ebp - 0x1f8]
lea edi, [ebp - 0x178]
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.00929958
jmp 0x8079b9