Function at 0x10042ae0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0x20]
push ebx
mov ebx, dword [ebp + 0x24]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0xc], ebx
call fcn.100ddff0
test eax, eax
jne 0x10042b03
xor ebx, ebx
jmp 0x10042dc3
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
jb 0x10042b0f
mov eax, dword [ebp + 8]
push esi
push edi
push eax
lea ecx, [ebp - 0x14]
call fcn.10002490
mov edi, dword [ebp - 0x14]
push edi
call fcn.1000aa00
add esp, 4
or esi, 0xffffffff
test eax, eax
je 0x10042daa
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
test eax, eax
je 0x10042daa
push str..lnk
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10042daa
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x1c]
call fcn.10002490
lea eax, [ebp - 0x1c]
push eax
push 0x10202944
push 2
call fcn.100db7b0
add esp, 4
push eax
lea eax, [ebp - 8]
push eax
call fcn.10007f40
add esp, 0xc
push eax
lea eax, [ebp - 4]
push eax
call fcn.10007e90
mov edx, dword [ebp - 8]
add esp, 0xc
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10042bab
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 4]
call fcn.100032c0
lea eax, [ebp - 0x1c]
push eax
push 0x10202944
push 1
call fcn.100db7b0
add esp, 4
push eax
lea eax, [ebp - 8]
push eax
call fcn.10007f40
add esp, 0xc
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.10007e90
mov edx, dword [ebp - 8]
add esp, 0xc
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10042bfa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x18]
call fcn.100032c0
mov esi, dword [ebp - 4]
push esi
mov dword [ebp - 8], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10042c7d
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebx]
mov eax, dword [eax + 4]
sub eax, ebx
sar eax, 2
test eax, eax
je 0x10042c58
mov edi, eax
xor esi, esi
lea esp, [esp]
lea eax, [ebp - 4]
push eax
push ebx
call fcn.10033f10
add esp, 8
test al, al
je 0x10042c46
mov esi, 1
add ebx, 4
sub edi, 1
jne 0x10042c30
mov edi, dword [ebp - 0x14]
test esi, esi
mov esi, dword [ebp - 4]
jne 0x10042c7a
mov ecx, dword [ebp - 0x20]
push 1
push esi
call fcn.101271d0
mov ebx, dword [ebp - 0xc]
lea eax, [ebp - 4]
push eax
mov ecx, ebx
call fcn.10052030
mov dword [ebp - 8], 1
jmp 0x10042c7d
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x18]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10042d47
mov eax, dword [ebx]
mov ebx, dword [ebx + 4]
sub ebx, eax
mov dword [ebp - 0x10], 0
sar ebx, 2
mov dword [ebp - 0x24], eax
test ebx, ebx
je 0x10042cff
mov edi, eax
lea esp, [esp]
mov eax, dword [edi]
mov ecx, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10042cda
test dx, dx
je 0x10042cd6
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10042cda
add eax, 4
add ecx, 4
test dx, dx
jne 0x10042cb4
xor eax, eax
jmp 0x10042cdf
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10042ced
mov edx, 1
mov dword [ebp - 0x10], edx
jmp 0x10042cf0
mov edx, dword [ebp - 0x10]
add edi, 4
sub ebx, 1
jne 0x10042cb0
mov edi, dword [ebp - 0x14]
test edx, edx
jne 0x10042d47
mov ecx, dword [ebp - 0x20]
push 1
push esi
call fcn.101271d0
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax + 4]
cmp dword [eax + 8], ebx
je 0x10042d34
lea eax, [esi - 0x10]
push eax
call fcn.10002a60
add eax, 0x10
add esp, 4
mov dword [ebx], eax
mov eax, dword [ebp - 0xc]
add dword [eax + 4], 4
mov eax, 1
jmp 0x10042d49
lea ecx, [ebp - 0x18]
push ecx
push ebx
mov ecx, eax
call fcn.100048e0
mov eax, 1
jmp 0x10042d49
xor eax, eax
xor ebx, ebx
cmp dword [ebp - 8], ebx
jne 0x10042d54
test eax, eax
je 0x10042d59
mov ebx, 1
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10042d71
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 4]
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10042d8e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1c]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10042dac
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10042dac
xor ebx, ebx
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], esi
dec esi
test esi, esi
jg 0x10042dc1
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
pop edi
pop esi
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x10042df9
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10042def
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10042e00
push edx
push ecx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 8
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.101e6c40
int3