Function at 0x100c76de
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 esi, esi
jne 0x100c77c8
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]
or ebx, 0xffffffff
xor edi, edi
mov dword [esp + 0x14], eax
cmp ecx, ebx
je 0x100c785c
call fcn.100290c0
test eax, eax
je 0x100c7856
cmp eax, ebx
je 0x100c7791
jmp 0x100c7787
xor edx, edx
call fcn.1003b000
push edi
call sym.ucrtbase.dll__free_base
pop ecx
jmp 0x100c7791
mov edx, eax
call fcn.1003b000
test eax, eax
jne 0x100c7772
mov ecx, dword [0x101042e4]
xor edx, edx
call fcn.1003b000
push dword [esp + 0x10]
jmp 0x100c774c
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 0x100c77a3
mov edi, 0x101049f4
jmp 0x100c77a6
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
test ecx, ecx
je 0x100c7707
xor edi, edi
lea eax, [esp + 0x18]
push edi
push edi
push edi
push eax
push edi
push ecx
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindFirstFileExW]
or ebx, 0xffffffff
mov dword [esp + 0x14], eax
cmp eax, ebx
jne 0x100c7abb
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 2
jb 0x100c7817
cmp eax, 3
jbe 0x100c7959
cmp eax, 8
je 0x100c7890
cmp eax, 0x12
je 0x100c7959
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]
mov dword [esp + 0x14], eax
cmp ecx, ebx
je 0x100c7a28
call fcn.100290c0
test eax, eax
je 0x100c7a22
cmp eax, ebx
je 0x100c7a9b
jmp 0x100c7a91
mov ecx, dword [0x101042e4]
mov edx, ebx
call fcn.1003b000
test eax, eax
je 0x100c7791
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 0x100c7744
jmp 0x100c7754
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]
mov dword [esp + 0x14], eax
cmp ecx, ebx
je 0x100c78c6
call fcn.100290c0
test eax, eax
je 0x100c78c0
cmp eax, ebx
je 0x100c7939
jmp 0x100c792f
mov ecx, dword [0x101042e4]
mov edx, ebx
call fcn.1003b000
test eax, eax
je 0x100c7939
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 0x100c78fd
xor edx, edx
call fcn.1003b000
push edi
call sym.ucrtbase.dll__free_base
pop ecx
jmp 0x100c7939
mov edx, eax
call fcn.1003b000
test eax, eax
jne 0x100c791b
mov ecx, dword [0x101042e4]
xor edx, edx
call fcn.1003b000
push dword [esp + 0x10]
jmp 0x100c78f5
mov ecx, dword [esp + 0x10]
call fcn.1003e545
push edi
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 0x100c794b
mov edi, 0x101049f4
jmp 0x100c794e
add edi, 0x10
mov dword [edi], 0xc
jmp 0x100c77b1
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]
mov dword [esp + 0x14], eax
cmp ecx, ebx
je 0x100c798f
call fcn.100290c0
test eax, eax
je 0x100c7989
cmp eax, ebx
je 0x100c7a02
jmp 0x100c79f8
mov ecx, dword [0x101042e4]
mov edx, ebx
call fcn.1003b000
test eax, eax
je 0x100c7a02
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 0x100c79c6
xor edx, edx
call fcn.1003b000
push edi
call sym.ucrtbase.dll__free_base
pop ecx
jmp 0x100c7a02
mov edx, eax
call fcn.1003b000
test eax, eax
jne 0x100c79e4
mov ecx, dword [0x101042e4]
xor edx, edx
call fcn.1003b000
push dword [esp + 0x10]
jmp 0x100c79be
mov ecx, dword [esp + 0x10]
call fcn.1003e545
push edi
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 0x100c7a14
mov edi, 0x101049f4
jmp 0x100c7a17
add edi, 0x10
mov dword [edi], 2
jmp 0x100c77b1
mov ecx, dword [0x101042e4]
mov edx, ebx
call fcn.1003b000
test eax, eax
je 0x100c7a9b
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 0x100c7a5f
xor edx, edx
call fcn.1003b000
push edi
call sym.ucrtbase.dll__free_base
pop ecx
jmp 0x100c7a9b
mov edx, eax
call fcn.1003b000
test eax, eax
jne 0x100c7a7d
mov ecx, dword [0x101042e4]
xor edx, edx
call fcn.1003b000
push dword [esp + 0x10]
jmp 0x100c7a57
mov ecx, dword [esp + 0x10]
call fcn.1003e545
push edi
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 0x100c7aad
mov edi, 0x101049f4
jmp 0x100c7ab0
add edi, 0x10
mov dword [edi], 0x16
jmp 0x100c77b1
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.100c9b3d
lea ecx, [esp + 0x24]
mov dword [esi + 4], eax
call fcn.100c9b3d
lea ecx, [esp + 0x2c]
mov dword [esi + 8], eax
call fcn.100c9b3d
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x38]
mov dword [esi + 0x10], eax
lea eax, [esp + 0x44]
push eax
lea eax, [esi + 0x14]
push 0x104
push eax
call sym.ucrtbase.dll_wcscpy_s
add esp, 0xc
test eax, eax
jne 0x100c7b1a
mov eax, dword [esp + 0x14]
jmp 0x100c77b3
push edi
push edi
push edi
push edi
push edi
call sym.ucrtbase.dll__invoke_watson
int3