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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001a154
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x4e34
call fcn.1000e2f0
mov eax, dword [0x100213d0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
and dword [ebp - 0x4e3c], 0
mov esi, ecx
mov dword [ebp - 0x4e44], esi
mov dword [ebp - 0x4e38], 1
and dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x2724]
push eax
call sub.MSVCR100.dll_strcpy
mov eax, dword [esi + 0xb4]
pop ecx
pop ecx
test eax, eax
je 0x10002579
cmp byte [eax], 0
je 0x10002579
lea eax, [ebp - 0x2724]
push eax
call sub.MSVCR100.dll_strlen
push dword [esi + 0xb4]
mov edi, eax
call sub.MSVCR100.dll_strlen
pop ecx
pop ecx
cmp edi, eax
jle 0x10002579
sub edi, eax
lea edi, [ebp + edi - 0x2724]
cmp byte [edi - 1], 0x2e
jne 0x10002579
push dword [esi + 0xb4]
push edi
call dword [sym.imp.MSVCR100.dll__stricmp]
pop ecx
pop ecx
test eax, eax
jne 0x10002579
mov byte [edi - 1], al
mov edi, dword [sym.imp.MSVCR100.dll_strrchr]
lea eax, [ebp - 0x2724]
push 0x2e
push eax
call edi
mov ebx, eax
lea eax, [ebp - 0x2724]
push 0x5c
push eax
call edi
add esp, 0x10
test ebx, ebx
je 0x100025ab
cmp eax, ebx
jbe 0x100025a4
xor ebx, ebx
test ebx, ebx
je 0x100025ab
mov byte [ebx], 0
cmp dword [esi + 0x14], 0
je 0x100025ea
lea eax, [ebp - 0x2724]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp + eax - 0x2724]
cmp byte [eax - 1], 0x29
jne 0x100025ea
add eax, 0xfffffffe
jmp 0x100025dd
mov cl, byte [eax]
cmp cl, 0x30
jl 0x100025e2
cmp cl, 0x39
jg 0x100025e2
dec eax
cmp byte [eax], 0
jne 0x100025d0
cmp byte [eax], 0x28
jne 0x100025ea
mov byte [eax], 0
mov ecx, 0x10021114
call fcn.10001a1a
mov eax, dword [ebp - 0x4e38]
inc dword [ebp - 0x4e38]
test ebx, ebx
je 0x10002626
lea ecx, [ebx + 1]
push ecx
push eax
lea eax, [ebp - 0x2724]
push eax
lea eax, [ebp - 0x4e3c]
push str._s__d_._s
push eax
call fcn.1000161d
add esp, 0x14
jmp 0x10002642
push eax
lea eax, [ebp - 0x2724]
push eax
lea eax, [ebp - 0x4e3c]
push str._s__d_
push eax
call fcn.1000161d
add esp, 0x10
mov eax, dword [ebp - 0x4e38]
push dword [ebp - 0x4e3c]
mov dword [ebp - 0x4e40], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x100025f4
xor edi, edi
inc edi
push dword [esi + 0xb4]
mov eax, edi
inc edi
test ebx, ebx
je 0x10002691
lea ecx, [ebx + 1]
push ecx
push eax
lea eax, [ebp - 0x2724]
push eax
lea eax, [ebp - 0x4e3c]
push str._s__d_._s._s
push eax
call fcn.1000161d
add esp, 0x18
jmp 0x100026ad
push eax
lea eax, [ebp - 0x2724]
push eax
lea eax, [ebp - 0x4e3c]
push str._s__d_._s
push eax
call fcn.1000161d
add esp, 0x14
push dword [ebp - 0x4e3c]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10002662
cmp dword [ebp - 0x4e40], edi
jle 0x100026cc
mov edi, dword [ebp - 0x4e40]
push dword [esi + 0xb4]
lea eax, [edi - 1]
test ebx, ebx
je 0x100026f9
inc ebx
push ebx
push eax
lea eax, [ebp - 0x2724]
push eax
lea eax, [ebp - 0x4e3c]
push str._s__d_._s._s
push eax
call fcn.1000161d
add esp, 0x18
jmp 0x10002715
push eax
lea eax, [ebp - 0x2724]
push eax
lea eax, [ebp - 0x4e3c]
push str._s__d_._s
push eax
call fcn.1000161d
add esp, 0x14
mov eax, dword [esi + 0x98]
xor ebx, ebx
cmp eax, ebx
je 0x1000272e
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
pop ecx
mov dword [esi + 0x98], ebx
mov dword [esi + 0x98], ebx
mov edi, dword [ebp - 0x4e3c]
mov byte [ebp - 4], 1
cmp edi, ebx
je 0x1000274b
push edi
call sub.MSVCR100.dll_strlen
pop ecx
jmp 0x1000274d
xor eax, eax
inc eax
push eax
call sub.MSVCR100.dll_void____cdecl_operator_new___unsigned_int_
pop ecx
mov dword [esi + 0x98], eax
cmp eax, ebx
jne 0x10002769
call fcn.100096b5
mov dword [ebp - 4], ebx
jmp 0x10002734
push edi
push eax
mov byte [ebp - 4], 0
call sub.MSVCR100.dll_strcpy
pop ecx
pop ecx
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push dword [esi + 0x98]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x1000279d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
dec dword [0x10021130]
push 0x10021118
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [ebp - 0x4e34]
push eax
push edi
call fcn.10009722
pop ecx
pop ecx
mov dword [ebp - 0x4e38], ebx
lea eax, [ebp - 0x4e34]
push eax
mov byte [ebp - 4], 3
push 0x1001c2f4
lea eax, [ebp - 0x4e38]
cmp dword [ebp + 0xc], ebx
je 0x100027e5
push str._s___s_
jmp 0x100027ea
push str._s__s
push eax
call fcn.1000161d
add esp, 0x10
push 4
push dword [ebp - 0x4e38]
mov ecx, esi
call fcn.100016b4
push 3
push 0x15
mov ecx, esi
call fcn.10001780
cmp dword [ebp - 0x4e38], ebx
je 0x10002821
push dword [ebp - 0x4e38]
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
pop ecx
cmp edi, ebx
je 0x1000282c
push edi
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1000dd44
leave
ret 8