Function at 0x100011a0
Capabilities:
Encode data using xor
Get common file path
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5ac
mov eax, dword [0x1000a008]
xor eax, esp
mov dword [esp + 0x5a8], eax
cmp dword [ebp + 0xc], 0xffffffff
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], 0x30809
mov dword [esp + 0x14], 0xb0e0502
mov dword [esp + 0x1c], 0xf010704
mov dword [esp + 0x20], 0xd060a0c
je 0x100015cc
mov edi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [esp + 0x1a0]
push 0x104
push eax
call edi
mov ecx, esi
call fcn.10001f60
mov ebx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
push eax
lea eax, [esp + 0x1a4]
push 0x104
push eax
call ebx
add esp, 0xc
lea eax, [esp + 0x1a0]
push 0x10007568
push eax
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
add esp, 0xc
test eax, eax
jne 0x10001668
push dword [esp + 0x50]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
lea eax, [esp + 0x3a8]
push 0x104
push eax
call edi
mov ecx, esi
call fcn.10001f60
push eax
lea eax, [esp + 0x3ac]
push 0x104
push eax
call ebx
add esp, 0xc
mov dword [esp + 0x68], 0
xor eax, eax
mov dword [esp + 0x6c], 7
lea ecx, [esp + 0x3a8]
mov word [esp + 0x58], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100012a0
sub ecx, edx
lea eax, [esp + 0x3a8]
sar ecx, 1
push ecx
push eax
lea ecx, [esp + 0x60]
call fcn.10001950
cmp dword [esp + 0x6c], 8
lea edx, [esp + 0x58]
mov eax, dword [esp + 0x68]
lea edi, [esp + 0x58]
cmovae edx, dword [esp + 0x58]
lea ecx, [esp + 0x38]
cmovae edi, dword [esp + 0x58]
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0xf
lea ebx, [edx + eax*2]
mov byte [esp + 0x38], 0
mov eax, ebx
sub eax, edi
sar eax, 1
push eax
call fcn.10001c00
push dword [esp + 0x24]
lea ecx, [esp + 0x3c]
push ebx
push edi
call fcn.10001da0
cmp dword [esp + 0x4c], 0x10
lea eax, [esp + 0x38]
push 0x100072b0
cmovae eax, dword [esp + 0x3c]
push eax
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
add esp, 0xc
test eax, eax
jne 0x100015e3
push 0x100
push eax
lea eax, [esp + 0x1a8]
push eax
call sub.VCRUNTIME140.dll_memset
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_feof]
add esp, 0xc
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgetc]
xor esi, esi
push dword [esp + 0x34]
call edi
add esp, 4
test eax, eax
jne 0x10001384
push dword [esp + 0x34]
call ebx
mov byte [esp + esi + 0x1a4], al
add esp, 4
inc esi
cmp esi, 0x10
jl 0x10001361
lea eax, [esp + 0x1a0]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10001390
sub eax, edx
cdq
sub eax, edx
xor edx, edx
mov esi, eax
sar esi, 1
test esi, esi
jle 0x100013e3
nop word [eax + eax]
movsx ecx, byte [esp + edx + 0x1c]
movzx eax, byte [esp + ecx + 0x1a0]
mov ecx, edx
mov byte [esp + edx + 0x28], al
and ecx, 7
movsx eax, byte [esp + edx + 0x10]
movzx eax, byte [esp + eax + 0x1a0]
xor al, byte [esp + ecx + 0x28]
mov byte [esp + edx + 0xa0], al
inc edx
cmp edx, esi
jl 0x100013b0
cmp esi, 0x100
jae 0x1000167f
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy_s]
lea eax, [esp + 0xa0]
push 4
push eax
lea eax, [esp + 0x9c]
mov byte [esp + esi + 0xa8], 0
push 0xa
push eax
call edi
mov esi, dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
lea eax, [esp + 0xa4]
push eax
mov byte [esp + 0xac], 0
call esi
add esp, 0x14
sub eax, 0x76c
mov dword [esp + 0x84], eax
lea eax, [esp + 0xa4]
push 2
push eax
lea eax, [esp + 0x9c]
push 0xa
push eax
call edi
lea eax, [esp + 0xa4]
mov byte [esp + 0xa6], 0
push eax
call esi
add esp, 0x14
dec eax
mov dword [esp + 0x80], eax
lea eax, [esp + 0xa6]
push 2
push eax
lea eax, [esp + 0x9c]
push 0xa
push eax
call edi
lea eax, [esp + 0xa4]
mov byte [esp + 0xa6], 0
push eax
call esi
add esp, 0x14
mov dword [esp + 0x7c], eax
lea eax, [esp + 0x70]
mov dword [esp + 0x78], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x74], 0
push eax
mov dword [esp + 0x74], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__mktime64]
add esp, 4
mov edi, eax
lea eax, [esp + 0x50]
mov esi, edx
push eax
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
add esp, 4
push esi
push edi
push dword [esp + 0x5c]
push dword [esp + 0x5c]
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__difftime64]
fdiv qword [0x100078f8]
add esp, 0x10
fstp qword [esp + 0x10]
movsd xmm1, qword [esp + 0x10]
comisd xmm1, xmmword [0x100078f0]
jb 0x100015e3
mov ecx, dword [ebp + 0xc]
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
comisd xmm0, xmm1
jb 0x100015e3
mov edx, dword [esp + 0x4c]
cvttsd2si eax, xmm1
sub ecx, eax
mov eax, dword [esp + 0x24]
mov dword [eax], ecx
cmp edx, 0x10
jb 0x10001579
mov ecx, dword [esp + 0x38]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1000156f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100015bc
push edx
push ecx
call fcn.10005370
add esp, 8
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0xf
mov byte [esp + 0x38], 0
cmp edx, 8
jb 0x100015cc
mov ecx, dword [esp + 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100015c2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100015c2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.10005370
add esp, 8
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x5a8]
xor ecx, esp
call fcn.10005134
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x4c]
cmp edx, 0x10
jb 0x10001615
mov ecx, dword [esp + 0x38]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1000160b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10001658
push edx
push ecx
call fcn.10005370
add esp, 8
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0xf
mov byte [esp + 0x38], 0
cmp edx, 8
jb 0x10001668
mov ecx, dword [esp + 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1000165e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1000165e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.10005370
add esp, 8
mov ecx, dword [esp + 0x5b4]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10005134
mov esp, ebp
pop ebp
ret
call 0x10005266
int3