Function at 0x100c96db
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x264
mov eax, dword [0x101042d0]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
push esi
mov esi, edx
push edi
test ecx, ecx
jne 0x100c97c5
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, dword [0x101042e0]
mov esi, eax
call fcn.100290c0
or ebx, 0xffffffff
mov ecx, dword [0x101042e4]
xor edi, edi
mov dword [esp + 0x14], eax
cmp ecx, ebx
je 0x100c97ea
call fcn.100290c0
test eax, eax
je 0x100c97e4
cmp eax, ebx
je 0x100c978e
jmp 0x100c9784
xor edx, edx
call fcn.1003b000
push edi
call sym.ucrtbase.dll__free_base
pop ecx
jmp 0x100c978e
mov edx, eax
call fcn.1003b000
test eax, eax
jne 0x100c976f
mov ecx, dword [0x101042e4]
xor edx, edx
call fcn.1003b000
push dword [esp + 0x10]
jmp 0x100c9749
mov ecx, dword [esp + 0x10]
call fcn.1003e545
push 0
call sym.ucrtbase.dll__free_base
mov eax, dword [esp + 0x14]
pop ecx
imul edi, dword [esp + 0x14], 0x364
add edi, eax
push esi
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
test edi, edi
jne 0x100c97a0
mov edi, 0x101049f4
jmp 0x100c97a3
add edi, 0x10
mov dword [edi], 0x16
call sym.ucrtbase.dll__invalid_parameter_noinfo
mov eax, ebx
mov ecx, dword [esp + 0x26c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10068820
mov esp, ebp
pop ebp
ret
or ebx, 0xffffffff
cmp ecx, ebx
jne 0x100c981a
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, dword [0x101042e0]
mov esi, eax
call fcn.100290c0
jmp 0x100c971a
mov ecx, dword [0x101042e4]
mov edx, ebx
call fcn.1003b000
test eax, eax
je 0x100c978e
push 0x364
push 2
call sym.ucrtbase.dll__calloc_base
mov dword [esp + 0x18], eax
pop ecx
pop ecx
mov ecx, dword [0x101042e4]
test eax, eax
je 0x100c9741
jmp 0x100c9751
test esi, esi
je 0x100c97cc
lea eax, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindNextFileW]
test eax, eax
jne 0x100c9ac7
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 2
jb 0x100c9854
cmp eax, 3
jbe 0x100c9961
cmp eax, 8
je 0x100c9895
cmp eax, 0x12
je 0x100c9961
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, dword [0x101042e0]
mov esi, eax
call fcn.100290c0
mov ecx, dword [0x101042e4]
xor edi, edi
mov dword [esp + 0x14], eax
cmp ecx, ebx
je 0x100c9a33
call fcn.100290c0
test eax, eax
je 0x100c9a2d
cmp eax, ebx
je 0x100c9aa7
jmp 0x100c9a9d
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, dword [0x101042e0]
mov esi, eax
call fcn.100290c0
mov ecx, dword [0x101042e4]
xor edi, edi
mov dword [esp + 0x14], eax
cmp ecx, ebx
je 0x100c98cd
call fcn.100290c0
test eax, eax
je 0x100c98c7
cmp eax, ebx
je 0x100c9941
jmp 0x100c9937
mov ecx, dword [0x101042e4]
mov edx, ebx
call fcn.1003b000
test eax, eax
je 0x100c9941
push 0x364
push 2
call sym.ucrtbase.dll__calloc_base
mov dword [esp + 0x18], eax
pop ecx
pop ecx
mov ecx, dword [0x101042e4]
test eax, eax
jne 0x100c9904
xor edx, edx
call fcn.1003b000
push edi
call sym.ucrtbase.dll__free_base
pop ecx
jmp 0x100c9941
mov edx, eax
call fcn.1003b000
test eax, eax
jne 0x100c9922
mov ecx, dword [0x101042e4]
xor edx, edx
call fcn.1003b000
push dword [esp + 0x10]
jmp 0x100c98fc
mov ecx, dword [esp + 0x10]
call fcn.1003e545
push 0
call sym.ucrtbase.dll__free_base
mov eax, dword [esp + 0x14]
pop ecx
imul edi, dword [esp + 0x14], 0x364
add edi, eax
push esi
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
test edi, edi
jne 0x100c9953
mov edi, 0x101049f4
jmp 0x100c9956
add edi, 0x10
mov dword [edi], 0xc
jmp 0x100c97ae
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, dword [0x101042e0]
mov esi, eax
call fcn.100290c0
mov ecx, dword [0x101042e4]
xor edi, edi
mov dword [esp + 0x14], eax
cmp ecx, ebx
je 0x100c9999
call fcn.100290c0
test eax, eax
je 0x100c9993
cmp eax, ebx
je 0x100c9a0d
jmp 0x100c9a03
mov ecx, dword [0x101042e4]
mov edx, ebx
call fcn.1003b000
test eax, eax
je 0x100c9a0d
push 0x364
push 2
call sym.ucrtbase.dll__calloc_base
mov dword [esp + 0x18], eax
pop ecx
pop ecx
mov ecx, dword [0x101042e4]
test eax, eax
jne 0x100c99d0
xor edx, edx
call fcn.1003b000
push edi
call sym.ucrtbase.dll__free_base
pop ecx
jmp 0x100c9a0d
mov edx, eax
call fcn.1003b000
test eax, eax
jne 0x100c99ee
mov ecx, dword [0x101042e4]
xor edx, edx
call fcn.1003b000
push dword [esp + 0x10]
jmp 0x100c99c8
mov ecx, dword [esp + 0x10]
call fcn.1003e545
push 0
call sym.ucrtbase.dll__free_base
mov eax, dword [esp + 0x14]
pop ecx
imul edi, dword [esp + 0x14], 0x364
add edi, eax
push esi
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
test edi, edi
jne 0x100c9a1f
mov edi, 0x101049f4
jmp 0x100c9a22
add edi, 0x10
mov dword [edi], 2
jmp 0x100c97ae
mov ecx, dword [0x101042e4]
mov edx, ebx
call fcn.1003b000
test eax, eax
je 0x100c9aa7
push 0x364
push 2
call sym.ucrtbase.dll__calloc_base
mov dword [esp + 0x18], eax
pop ecx
pop ecx
mov ecx, dword [0x101042e4]
test eax, eax
jne 0x100c9a6a
xor edx, edx
call fcn.1003b000
push edi
call sym.ucrtbase.dll__free_base
pop ecx
jmp 0x100c9aa7
mov edx, eax
call fcn.1003b000
test eax, eax
jne 0x100c9a88
mov ecx, dword [0x101042e4]
xor edx, edx
call fcn.1003b000
push dword [esp + 0x10]
jmp 0x100c9a62
mov ecx, dword [esp + 0x10]
call fcn.1003e545
push 0
call sym.ucrtbase.dll__free_base
mov eax, dword [esp + 0x14]
pop ecx
imul edi, dword [esp + 0x14], 0x364
add edi, eax
push esi
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
test edi, edi
jne 0x100c9ab9
mov edi, 0x101049f4
jmp 0x100c9abc
add edi, 0x10
mov dword [edi], 0x16
jmp 0x100c97ae
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
add eax, 0xffffff80
neg eax
sbb eax, eax
and eax, dword [esp + 0x18]
mov dword [esi], eax
call fcn.100c9bbf
lea ecx, [esp + 0x24]
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
call fcn.100c9bbf
lea ecx, [esp + 0x2c]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
call fcn.100c9bbf
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x38]
mov dword [esi + 0x20], eax
lea eax, [esp + 0x44]
push eax
lea eax, [esi + 0x24]
mov dword [esi + 0x1c], edx
push 0x104
push eax
call sym.ucrtbase.dll_wcscpy_s
add esp, 0xc
test eax, eax
je 0x100c97b0
xor edi, edi
push edi
push edi
push edi
push edi
push edi
call sym.ucrtbase.dll__invoke_watson
int3