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

Disassembly:
push 0x2c8
mov eax, 0x1005b485
call fcn.1004262a
mov eax, dword [ebp + 8]
and dword [ebp - 0x234], 0
mov edi, ecx
mov ebx, dword [edi + 0xc]
lea esi, [ebp - 0x240]
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x244], edi
call fcn.10012553
mov edi, dword [ebp - 0x244]
mov ebx, dword [edi + 0x10]
lea esi, [ebp - 0x26c]
call fcn.10012553
mov esi, dword [ebp - 0x240]
test esi, esi
je 0x10023ad8
cmp esi, dword [ebp - 0x26c]
je 0x10023add
call fcn.10040d90
mov edi, dword [ebp - 0x23c]
cmp edi, dword [ebp - 0x268]
je 0x10024001
test esi, esi
jne 0x10023b24
call fcn.10040d90
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x10023b04
call fcn.10040d90
cmp dword [edi + 0x30], 0
je 0x10023fd8
mov eax, dword [edi + 0x4c]
test eax, eax
je 0x10023fd8
cmp dword [edi + 0x50], 8
jb 0x10023b28
mov ecx, dword [edi + 0x3c]
jmp 0x10023b2b
mov eax, dword [esi]
jmp 0x10023afa
lea ecx, [edi + 0x3c]
add eax, eax
push eax
push ecx
call fcn.10027392
push eax
push 0x10064414
lea ecx, [ebp - 0x264]
call fcn.10028d88
pop ecx
pop ecx
and dword [ebp - 4], 0
push 0xffffffffffffffff
push edi
xor ebx, ebx
call fcn.10004d65
push ebx
inc ebx
push ebx
lea esi, [ebp - 0x264]
call fcn.10004e12
xor esi, esi
xor eax, eax
mov dword [ebp - 0x218], 7
mov dword [ebp - 0x21c], esi
mov word [ebp - 0x22c], ax
mov dword [ebp - 4], ebx
cmp dword [edi + 0x68], esi
jne 0x10023be2
push 0x1fe
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push esi
push eax
call fcn.10046720
add esp, 0xc
push 0x100
lea eax, [ebp - 0x214]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x214]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, si
jne 0x10023bbe
sub eax, ecx
sar eax, 1
lea ecx, [ebp - 0x214]
lea esi, [ebp - 0x230]
call fcn.100053f4
jmp 0x10023cc2
lea esi, [edi + 0x54]
cmp dword [esi + 0x18], 8
jb 0x10023bf0
mov eax, dword [esi + 4]
jmp 0x10023bf3
lea eax, [esi + 4]
push eax
mov ebx, str..dll
call fcn.10028d41
test eax, eax
je 0x10023cb0
test byte [0x10078494], 1
jne 0x10023c3a
or dword [0x10078494], 1
and dword [0x1007848c], 0
xor eax, eax
push 0x1005f3b2
mov dword [0x10078490], 7
mov word [0x1007847c], ax
call fcn.10040c1c
pop ecx
cmp dword [0x1007848c], 0
jne 0x10023ca0
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push eax
call fcn.10046720
add esp, 0xc
push 0x100
lea eax, [ebp - 0x214]
push eax
push dword [0x100777b4]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x214]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x10023c82
sub eax, ecx
sar eax, 1
lea ecx, [ebp - 0x214]
mov esi, 0x10078478
call fcn.100053f4
lea eax, [ebp - 0x230]
push 0xffffffffffffffff
push eax
mov eax, 0x10078478
jmp 0x10023cbb
lea eax, [ebp - 0x230]
push 0xffffffffffffffff
push eax
mov eax, esi
xor ebx, ebx
call fcn.10004d65
cmp dword [ebp - 0x218], 8
mov eax, dword [ebp - 0x22c]
jae 0x10023cd7
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10023e03
push str..exe
lea esi, [ebp - 0x264]
call fcn.100048dd
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 2
or dword [ebp - 0x234], 1
push eax
mov ebx, esi
call fcn.100135da
pop ecx
cmp eax, 0xffffffff
jne 0x10023d83
push str..dll
lea esi, [ebp - 0x2b8]
call fcn.100048dd
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 3
or dword [ebp - 0x234], 2
push eax
mov ebx, esi
call fcn.100135da
pop ecx
cmp eax, 0xffffffff
jne 0x10023d83
push 0x1006578c
lea esi, [ebp - 0x29c]
call fcn.100048dd
push 4
pop eax
mov dword [ebp - 4], eax
or dword [ebp - 0x234], eax
lea eax, [ebp - 0x230]
push eax
mov ebx, esi
call fcn.100135da
pop ecx
cmp eax, 0xffffffff
jne 0x10023d83
xor ebx, ebx
inc ebx
mov byte [ebp - 0x235], bl
jmp 0x10023d8d
xor ebx, ebx
mov byte [ebp - 0x235], 0
inc ebx
test byte [ebp - 0x234], 4
je 0x10023dab
and dword [ebp - 0x234], 0xfffffffb
push 0
push ebx
lea esi, [ebp - 0x29c]
call fcn.10004e12
test byte [ebp - 0x234], 2
je 0x10023dc9
and dword [ebp - 0x234], 0xfffffffd
push 0
push ebx
lea esi, [ebp - 0x2b8]
call fcn.10004e12
mov dword [ebp - 4], ebx
test byte [ebp - 0x234], bl
je 0x10023de9
and dword [ebp - 0x234], 0xfffffffe
push 0
push ebx
lea esi, [ebp - 0x264]
call fcn.10004e12
cmp byte [ebp - 0x235], 0
je 0x10023e03
push str..exe
lea eax, [ebp - 0x230]
push eax
call fcn.100098cb
cmp dword [ebp - 0x218], 8
mov eax, dword [ebp - 0x22c]
jae 0x10023e18
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10023e65
mov ecx, dword [ebp - 0x244]
push edi
push dword [ebp - 0x240]
lea eax, [ebp - 0x278]
call fcn.10024859
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x240], ecx
mov dword [ebp - 0x23c], eax
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea esi, [ebp - 0x230]
call fcn.10004e12
jmp 0x10023ab2
sub esp, 0x1c
lea eax, [ebp - 0x230]
mov esi, esp
mov dword [ebp - 0x270], esp
push eax
call fcn.100048fd
lea eax, [ebp - 0x264]
push eax
call fcn.10023868
lea ecx, [edi + 0xc4]
push 0xffffffffffffffff
push ecx
xor ebx, ebx
mov byte [ebp - 4], 5
call fcn.10004d65
push ebx
push 1
lea esi, [ebp - 0x264]
mov byte [ebp - 4], 1
call fcn.10004e12
mov ecx, dword [ebp - 0x248]
lea eax, [ebp - 0x264]
push eax
lea eax, [edi + 0xc4]
call fcn.1002391c
lea ecx, [edi + 0xe0]
push 0xffffffffffffffff
push ecx
mov byte [ebp - 4], 6
call fcn.10004d65
push ebx
push 1
lea esi, [ebp - 0x264]
mov byte [ebp - 4], 1
call fcn.10004e12
cmp dword [edi + 0x68], ebx
je 0x10023f81
cmp dword [edi + 0x6c], 8
jb 0x10023efe
mov ecx, dword [edi + 0x58]
jmp 0x10023f01
lea ecx, [edi + 0x58]
lea eax, [ebp - 0x264]
push 0x100643c0
push eax
call fcn.1003cdde
pop ecx
pop ecx
push 0xffffffffffffffff
lea ecx, [edi + 0x8c]
push ecx
xor ebx, ebx
mov byte [ebp - 4], 7
call fcn.10004d65
push ebx
push 1
lea esi, [ebp - 0x264]
mov byte [ebp - 4], 1
call fcn.10004e12
cmp dword [edi + 0x6c], 8
jb 0x10023f45
mov ecx, dword [edi + 0x58]
jmp 0x10023f48
lea ecx, [edi + 0x58]
lea eax, [ebp - 0x2d4]
push 0x100643e0
push eax
call fcn.1003cdde
pop ecx
pop ecx
push 0xffffffffffffffff
lea ecx, [edi + 0xa8]
push ecx
xor ebx, ebx
mov byte [ebp - 4], 8
call fcn.10004d65
push ebx
push 1
lea esi, [ebp - 0x2d4]
mov byte [ebp - 4], 1
call fcn.10004e12
mov ecx, dword [ebp - 0x248]
lea eax, [edi + 0xc4]
push eax
call fcn.10023959
test eax, eax
jne 0x10023fa8
lea ecx, [edi + 0xe0]
lea ebx, [ebp - 0x230]
call fcn.100239a0
mov eax, dword [ebp - 0x240]
test eax, eax
jne 0x10023fd4
call fcn.10040d90
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x10023fc3
call fcn.10040d90
add edi, 0xfc
mov dword [ebp - 0x23c], edi
jmp 0x10023e4d
mov eax, dword [eax]
jmp 0x10023fb9
mov ecx, dword [ebp - 0x244]
push edi
push esi
lea eax, [ebp - 0x280]
call fcn.10024859
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x240], ecx
mov dword [ebp - 0x23c], eax
jmp 0x10023ab2
call fcn.100426ad
ret 4