Function at 0x401aa0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x30
mov eax, dword [0x42f140]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
push ebp
push esi
push edi
push str.utils.dll
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x401ae6
mov eax, dword [0x430284]
cmp dword [eax], 0
jne 0x401ae6
push str.utils.dll
push str.freedom_utils.cs
call fcn.00402f30
add esp, 8
test eax, eax
je 0x401b76
push 0
push str.freedom_utils.cs
push str._out:utils.dll
push str._target:library
push str._optimize
push str._nologo
push 0x425f48
call fcn.00402710
mov esi, edx
mov edi, eax
push esi
push edi
push 0x425768
call fcn.004025c0
push eax
push str.CMD:__s
call fcn.00401050
push 0
push 0
push esi
push edi
call fcn.00402490
add esp, 0x40
push eax
call fcn.00403560
add esp, 4
push 1
push 0
push 0
push str.utils_dll
push 0
push str.baked_utils_dll.h
push str.include
call fcn.00402710
push edx
push eax
push 0x4257b8
call fcn.004025c0
add esp, 0x18
push eax
push str.utils.dll
call fcn.00401760
add esp, 0x18
push 0
push str.vendor_imgui_backends_
push str.vendor_imgui_
push str.freedom_ui_
push str.freedom_features_
push str.freedom_
push str.freedom_dll_
call fcn.00401660
push 0
call fcn.00402710
add esp, 0x20
mov dword [esp + 0x20], eax
xor esi, esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x24], str.freedom_dll_
mov dword [esp + 0x28], str.freedom_
mov dword [esp + 0x2c], str.freedom_features_
mov dword [esp + 0x30], str.freedom_ui_
mov dword [esp + 0x34], str.vendor_imgui_
mov dword [esp + 0x38], str.vendor_imgui_backends_
mov dword [esp + 0x10], esi
mov esi, dword [esp + esi*4 + 0x24]
push esi
mov dword [esp + 0x18], esi
call fcn.00403120
add esp, 4
mov ebx, eax
mov dword [esp + 0x18], ebx
call fcn.0040a6dd
test ebx, ebx
je 0x402002
mov dword [eax], 0
nop dword [eax]
cmp dword [ebx + 0x144], 0
jne 0x401c30
push 0x105
push 1
call fcn.0040a8f4
add esp, 8
mov dword [ebx + 0x144], eax
jmp 0x401c44
lea eax, [ebx + 4]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x401d5e
push 0x105
push 0
push dword [ebx + 0x144]
call fcn.004088b0
push 0x104
lea eax, [ebx + 0x30]
push eax
push dword [ebx + 0x144]
call fcn.0040a7d0
mov ebp, dword [ebx + 0x144]
add esp, 0x18
test ebp, ebp
je 0x401d74
mov ecx, ebp
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401c80
sub ecx, edx
cmp ecx, 4
jb 0x401c10
lea eax, [ebp - 4]
mov edx, str..cpp
add eax, ecx
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x401cb8
test cl, cl
je 0x401cb4
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x401cb8
add eax, 2
add edx, 2
test cl, cl
jne 0x401c98
xor eax, eax
jmp 0x401cbd
sbb eax, eax
or eax, 1
test eax, eax
jne 0x401c10
mov esi, ebp
lea ecx, [esi + 1]
nop word [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x401cd0
sub esi, ecx
je 0x401cec
nop dword [eax + eax]
cmp byte [esi + ebp - 1], 0x2e
je 0x401d44
sub esi, 1
jne 0x401ce0
mov edi, ebp
push 0
push str..obj
push edi
call fcn.00402710
push edx
push eax
push 0x4256de
call fcn.004025c0
mov esi, dword [esp + 0x34]
mov ebx, eax
lea ebp, [esi + 1]
lea ecx, [ebp*4]
push ecx
call fcn.0040a91a
shl esi, 2
mov edi, eax
push esi
push dword [esp + 0x40]
push edi
call fcn.00408330
mov dword [esi + edi], ebx
add esp, 0x28
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], ebp
jmp 0x401c10
push esi
call fcn.0040a91a
push esi
mov edi, eax
push ebp
push edi
call fcn.00408330
add esp, 0x10
mov byte [edi + esi - 1], 0
jmp 0x401cee
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x401d74
call fcn.0040a6dd
mov dword [eax], 0x28
call fcn.0040a6dd
cmp dword [eax], 0
jg 0x402018
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
jne 0x401d9b
call fcn.0040a6dd
mov dword [eax], 0x28
jmp 0x401db7
mov eax, dword [ebx + 0x144]
test eax, eax
je 0x401dae
push eax
call fcn.0040a8ff
add esp, 4
push ebx
call fcn.0040a8ff
add esp, 4
mov esi, dword [esp + 0x10]
inc esi
mov dword [esp + 0x10], esi
cmp esi, 6
jb 0x401be3
mov eax, dword [0x430280]
cmp dword [eax], 0
je 0x401e7f
cmp dword [0x430298], 0
je 0x401f45
push 0
push str._MACHINE:x86
push str._DEBUG
push str._OUT:freedom.dll
push str._DLL
push str.LINK
call fcn.00402710
xor ebp, ebp
add esp, 0x18
mov ebx, eax
mov edi, edx
cmp dword [esp + 0x1c], ebp
jbe 0x401f1a
mov dword [esp + 0x14], eax
mov eax, edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], edx
nop word [eax + eax]
mov ecx, dword [esp + 0x20]
lea edi, [eax + 1]
lea eax, [edi*4]
push eax
mov esi, dword [ecx + ebp*4]
call fcn.0040a91a
mov ebx, eax
mov eax, dword [esp + 0x14]
shl eax, 2
push eax
push dword [esp + 0x1c]
push ebx
call fcn.00408330
mov eax, dword [esp + 0x28]
inc ebp
add esp, 0x10
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edi
mov dword [ebx + eax*4], esi
mov eax, edi
cmp ebp, dword [esp + 0x1c]
jb 0x401e30
jmp 0x401f1a
cmp dword [0x430298], 0
je 0x401f45
push 0
push str._MACHINE:x86
push str._LTCG
push str._OUT:freedom.dll
push str._DLL
push str.LINK
call fcn.00402710
xor ebp, ebp
add esp, 0x18
mov ebx, eax
mov edi, edx
cmp dword [esp + 0x1c], ebp
jbe 0x401f1a
mov dword [esp + 0x14], eax
mov eax, edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], edx
nop dword [eax]
mov ecx, dword [esp + 0x20]
lea edi, [eax + 1]
lea eax, [edi*4]
push eax
mov esi, dword [ecx + ebp*4]
call fcn.0040a91a
mov ebx, eax
mov eax, dword [esp + 0x1c]
shl eax, 2
push eax
push dword [esp + 0x1c]
push ebx
call fcn.00408330
mov eax, dword [esp + 0x20]
inc ebp
add esp, 0x10
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edi
mov dword [ebx + eax*4], esi
mov eax, edi
cmp ebp, dword [esp + 0x1c]
jb 0x401ed0
push edi
push ebx
push 0x425768
call fcn.004025c0
push eax
push str.CMD:__s
call fcn.00401050
push 0
push 0
push edi
push ebx
call fcn.00402490
push eax
call fcn.00403560
add esp, 0x28
push str.freedom_injector.exe
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x401f75
mov eax, dword [0x430284]
cmp dword [eax], 0
jne 0x401f75
push str.freedom_injector.exe
push str.injector.cpp
call fcn.00402f30
add esp, 8
test eax, eax
je 0x401fef
push 0
push str._MACHINE:x86
push str._link
push str.injector.cpp
push str._Fe:freedom_injector.exe
push str._nologo
push str._EHsc
push 0x425d34
push 0x425d30
push str._std:clatest
push str._DUNICODE
push str._DNDEBUG
push str._DWIN32_LEAN_AND_MEAN
push 0x425d28
call fcn.00402710
mov esi, edx
mov edi, eax
push esi
push edi
push 0x425768
call fcn.004025c0
add esp, 0x44
push eax
push str.CMD:__s
call fcn.00401050
push 0
push 0
push esi
push edi
call fcn.00402490
push eax
call fcn.00403560
add esp, 0x1c
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00407500
add esp, 0x30
ret
push dword [eax]
call fcn.0040a7bb
add esp, 4
push eax
push esi
push str.could_not_open_directory__s:__s
call fcn.004010a0
call fcn.0040a6dd
push dword [eax]
call fcn.0040a7bb
add esp, 4
push eax
push dword [esp + 0x18]
push str.could_not_read_directory__s:__s
call fcn.004010a0
int3