Function at 0x100d31ce
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x25c
mov eax, dword [0x1010e2b0]
xor eax, esp
mov dword [esp + 0x258], eax
push ebx
push esi
mov esi, edx
push edi
test ecx, ecx
jne 0x100d32a3
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
or edi, 0xffffffff
mov ecx, dword [0x1010e2c0]
mov esi, eax
cmp ecx, edi
je 0x100d32bf
call fcn.10029fa0
mov ebx, eax
test ebx, ebx
je 0x100d32b9
cmp ebx, edi
jne 0x100d327c
push esi
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov eax, 0x1010eac0
mov dword [eax], 0x16
call sym.ucrtbase.dll__invalid_parameter_noinfo
mov eax, edi
jmp 0x100d360c
xor edx, edx
call fcn.10032a89
push 0
call sym.ucrtbase.dll__free_base
pop ecx
jmp 0x100d3223
mov edx, ebx
call fcn.10032a89
test eax, eax
jne 0x100d326d
mov ecx, dword [0x1010e2c0]
xor edx, edx
call fcn.10032a89
push ebx
jmp 0x100d324a
mov ecx, ebx
call fcn.10031ad6
push 0
call sym.ucrtbase.dll__free_base
pop ecx
test ebx, ebx
je 0x100d3223
mov ecx, dword [0x1010e2c4]
call fcn.10029fa0
imul eax, eax, 0x364
push esi
add ebx, eax
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
test ebx, ebx
je 0x100d322a
lea eax, [ebx + 0x10]
jmp 0x100d322f
or edi, 0xffffffff
cmp ecx, edi
je 0x100d32ae
test esi, esi
jne 0x100d32f1
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
jmp 0x100d3200
mov ecx, dword [0x1010e2c0]
mov edx, edi
call fcn.10032a89
test eax, eax
je 0x100d3223
push 0x364
push 2
call sym.ucrtbase.dll__calloc_base
pop ecx
mov ebx, eax
pop ecx
mov ecx, dword [0x1010e2c0]
test ebx, ebx
je 0x100d3241
jmp 0x100d3252
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindNextFileW]
test eax, eax
jne 0x100d359f
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 2
jb 0x100d3327
cmp eax, 3
jbe 0x100d3436
cmp eax, 8
je 0x100d336b
cmp eax, 0x12
je 0x100d3436
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, dword [0x1010e2c0]
mov esi, eax
cmp ecx, edi
je 0x100d3507
call fcn.10029fa0
mov ebx, eax
test ebx, ebx
je 0x100d3501
cmp ebx, edi
jne 0x100d356d
push esi
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov eax, 0x1010eac0
mov dword [eax], 0x16
jmp 0x100d323a
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, dword [0x1010e2c0]
mov esi, eax
cmp ecx, edi
je 0x100d33a9
call fcn.10029fa0
mov ebx, eax
test ebx, ebx
je 0x100d33a3
cmp ebx, edi
jne 0x100d3408
push esi
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov eax, 0x1010eac0
mov dword [eax], 0xc
jmp 0x100d323a
mov ecx, dword [0x1010e2c0]
mov edx, edi
call fcn.10032a89
test eax, eax
je 0x100d338c
push 0x364
push 2
call sym.ucrtbase.dll__calloc_base
pop ecx
mov ebx, eax
pop ecx
mov ecx, dword [0x1010e2c0]
test ebx, ebx
jne 0x100d33de
xor edx, edx
call fcn.10032a89
push ebx
call sym.ucrtbase.dll__free_base
pop ecx
jmp 0x100d338c
mov edx, ebx
call fcn.10032a89
test eax, eax
jne 0x100d33f9
mov ecx, dword [0x1010e2c0]
xor edx, edx
call fcn.10032a89
push ebx
jmp 0x100d33d6
mov ecx, ebx
call fcn.10031ad6
push 0
call sym.ucrtbase.dll__free_base
pop ecx
test ebx, ebx
je 0x100d338c
mov ecx, dword [0x1010e2c4]
call fcn.10029fa0
imul eax, eax, 0x364
push esi
add ebx, eax
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
test ebx, ebx
je 0x100d3393
lea eax, [ebx + 0x10]
jmp 0x100d3398
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, dword [0x1010e2c0]
mov esi, eax
cmp ecx, edi
je 0x100d3474
call fcn.10029fa0
mov ebx, eax
test ebx, ebx
je 0x100d346e
cmp ebx, edi
jne 0x100d34d3
push esi
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov eax, 0x1010eac0
mov dword [eax], 2
jmp 0x100d323a
mov ecx, dword [0x1010e2c0]
mov edx, edi
call fcn.10032a89
test eax, eax
je 0x100d3457
push 0x364
push 2
call sym.ucrtbase.dll__calloc_base
pop ecx
mov ebx, eax
pop ecx
mov ecx, dword [0x1010e2c0]
test ebx, ebx
jne 0x100d34a9
xor edx, edx
call fcn.10032a89
push ebx
call sym.ucrtbase.dll__free_base
pop ecx
jmp 0x100d3457
mov edx, ebx
call fcn.10032a89
test eax, eax
jne 0x100d34c4
mov ecx, dword [0x1010e2c0]
xor edx, edx
call fcn.10032a89
push ebx
jmp 0x100d34a1
mov ecx, ebx
call fcn.10031ad6
push 0
call sym.ucrtbase.dll__free_base
pop ecx
test ebx, ebx
je 0x100d3457
mov ecx, dword [0x1010e2c4]
call fcn.10029fa0
imul eax, eax, 0x364
push esi
add ebx, eax
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
test ebx, ebx
je 0x100d345e
lea eax, [ebx + 0x10]
jmp 0x100d3463
mov ecx, dword [0x1010e2c0]
mov edx, edi
call fcn.10032a89
test eax, eax
je 0x100d3354
push 0x364
push 2
call sym.ucrtbase.dll__calloc_base
pop ecx
mov ebx, eax
pop ecx
mov ecx, dword [0x1010e2c0]
test ebx, ebx
jne 0x100d3543
xor edx, edx
call fcn.10032a89
push ebx
call sym.ucrtbase.dll__free_base
pop ecx
jmp 0x100d3354
mov edx, ebx
call fcn.10032a89
test eax, eax
jne 0x100d355e
mov ecx, dword [0x1010e2c0]
xor edx, edx
call fcn.10032a89
push ebx
jmp 0x100d3538
mov ecx, ebx
call fcn.10031ad6
push 0
call sym.ucrtbase.dll__free_base
pop ecx
test ebx, ebx
je 0x100d3354
mov ecx, dword [0x1010e2c4]
call fcn.10029fa0
imul eax, eax, 0x364
push esi
add ebx, eax
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
test ebx, ebx
je 0x100d335b
lea eax, [ebx + 0x10]
jmp 0x100d3360
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
add eax, 0xffffff80
neg eax
sbb eax, eax
and eax, dword [esp + 0x10]
mov dword [esi], eax
call fcn.100d369f
lea ecx, [esp + 0x1c]
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
call fcn.100d369f
lea ecx, [esp + 0x24]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
call fcn.100d369f
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x30]
mov dword [esi + 0x20], eax
lea eax, [esp + 0x3c]
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 0x100d360a
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call sym.ucrtbase.dll__invoke_watson
xor eax, eax
mov ecx, dword [esp + 0x264]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1005cc20
mov esp, ebp
pop ebp
ret