Function at 0x10048a52
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0xc], edx
push edi
lea ecx, [ebp - 0x24]
call fcn.10048d51
mov edi, dword [ebp + 0xc]
xor ebx, ebx
test edi, edi
je 0x10048a73
mov byte [edi], bl
sub esp, 0x18
lea eax, [ebp - 0x24]
mov ecx, esp
push eax
call fcn.1000285d
call fcn.1004848d
add esp, 0x18
test al, al
mov eax, dword [ebp + 8]
je 0x10048aa8
test eax, eax
je 0x10048a97
mov byte [eax], 1
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
call fcn.10003a3e
push ebx
jmp 0x10048d3e
test eax, eax
je 0x10048aae
mov byte [eax], bl
mov ebx, dword [ebp - 0x14]
cmp ebx, 4
jae 0x10048ac8
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
call fcn.10003a3e
push 0
jmp 0x10048d3e
lea eax, [ebx - 4]
push eax
lea ecx, [ebp - 0x24]
call fcn.10003d8a
movzx eax, word [eax]
push eax
call fcn.100124d6
pop ecx
cmp ax, 0x2e
jne 0x10048ab6
lea eax, [ebx - 3]
push eax
lea ecx, [ebp - 0x24]
call fcn.10003d8a
movzx eax, word [eax]
push eax
call fcn.100124d6
movzx eax, ax
pop ecx
mov dword [ebp + 0xc], eax
lea ecx, [ebp - 0x24]
lea eax, [ebx - 2]
push eax
call fcn.10003d8a
movzx eax, word [eax]
push eax
call fcn.100124d6
movzx eax, ax
pop ecx
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x24]
lea eax, [ebx - 1]
push eax
call fcn.10003d8a
movzx eax, word [eax]
push eax
call fcn.100124d6
mov edx, dword [ebp + 0xc]
pop ecx
movzx ecx, ax
mov eax, dword [ebp - 8]
cmp dx, 0x64
jne 0x10048b58
mov dword [ebp + 0xc], 0x6c
cmp ax, word [ebp + 0xc]
jne 0x10048d0f
cmp cx, word [ebp + 0xc]
je 0x10048b7d
mov dword [ebp + 0xc], 0x65
cmp dx, word [ebp + 0xc]
jne 0x10048d0f
cmp ax, 0x78
jne 0x10048d0f
cmp cx, word [ebp + 0xc]
jne 0x10048d0f
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x3c]
call fcn.1000285d
push 8
pop edx
cmp dword [ebp - 0x28], edx
lea eax, [ebp - 0x3c]
cmovae eax, dword [ebp - 0x3c]
cmp word [eax + ebx*2 - 0xa], 0x2a
jne 0x10048bbb
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
call fcn.10003a3e
xor ebx, ebx
lea ecx, [ebp - 0x3c]
push ebx
push 1
call fcn.10002b9c
jmp 0x10048aa2
cmp dword [ebp - 0x28], edx
lea ecx, [ebp - 0x3c]
movsx ax, byte [0x100a04c0]
cmovae ecx, dword [ebp - 0x3c]
mov word [ecx + ebx*2 - 6], ax
lea ecx, [ebp - 0x3c]
cmp dword [ebp - 0x28], edx
movsx ax, byte [0x100a04c1]
cmovae ecx, dword [ebp - 0x3c]
mov word [ecx + ebx*2 - 4], ax
lea ecx, [ebp - 0x3c]
cmp dword [ebp - 0x28], edx
movsx ax, byte [0x100a04c2]
cmovae ecx, dword [ebp - 0x3c]
sub esp, 0x18
mov word [ecx + ebx*2 - 2], ax
lea eax, [ebp - 0x3c]
mov ecx, esp
push eax
call fcn.1000285d
call fcn.100485e7
add esp, 0x18
lea eax, [ebp - 0x3c]
cmp dword [ebp - 0x28], 8
cmovae eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
lea eax, [ebp - 0x3c]
setne bl
sub esp, 0x18
mov ecx, esp
push eax
call fcn.1000285d
call fcn.10048523
add esp, 0x18
lea eax, [ebp - 0x24]
cmp dword [ebp - 0x10], 8
lea ecx, [ebp - 0x6c]
cmovae eax, dword [ebp - 0x24]
push eax
call fcn.10002d0c
lea edx, [ebp - 0x6c]
lea ecx, [ebp - 0x54]
call fcn.10047590
push 0
push 1
lea ecx, [ebp - 0x6c]
call fcn.10002b9c
cmp dword [ebp - 0x40], 0x10
lea eax, [ebp - 0x54]
cmovae eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
test bl, bl
je 0x10048cd4
mov ebx, dword [ebp - 0xc]
xor edi, edi
mov edx, edi
movzx ecx, word [ebx]
test ecx, ecx
je 0x10048ca2
mov eax, dword [ebx + 4]
cmp word [eax], di
je 0x10048ca2
inc edx
add eax, 2
cmp edx, ecx
jb 0x10048c95
movsx cx, byte [0x100a04c0]
mov eax, dword [ebx + 4]
mov word [eax + edx*2 - 6], cx
movsx cx, byte [0x100a04c1]
mov eax, dword [ebx + 4]
mov word [eax + edx*2 - 4], cx
movsx cx, byte [0x100a04c2]
mov eax, dword [ebx + 4]
mov word [eax + edx*2 - 2], cx
jmp 0x10048cf5
sub esp, 0x18
lea eax, [ebp - 0x24]
mov ecx, esp
push eax
call fcn.1000285d
call fcn.10047da6
add esp, 0x18
test al, al
je 0x10048cf5
test edi, edi
je 0x10048cf5
mov byte [edi], 1
xor ebx, ebx
lea ecx, [ebp - 0x54]
push ebx
push 1
call fcn.100022c0
push ebx
push 1
lea ecx, [ebp - 0x3c]
call fcn.10002b9c
jmp 0x10048d30
sub esp, 0x18
lea eax, [ebp - 0x24]
mov ecx, esp
push eax
call fcn.1000285d
call fcn.10047da6
add esp, 0x18
test al, al
je 0x10048d30
test edi, edi
je 0x10048d30
mov byte [edi], 1
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
call fcn.10003a3e
xor eax, eax
push eax
push 1
lea ecx, [ebp - 0x24]
call fcn.10002b9c
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret