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

Disassembly:
push 0x2c8
mov eax, 0x10059988
call fcn.10040d9a
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.1001990b
mov edi, dword [ebp - 0x244]
mov ebx, dword [edi + 0x10]
lea esi, [ebp - 0x26c]
call fcn.1001990b
mov esi, dword [ebp - 0x240]
test esi, esi
je 0x1002394b
cmp esi, dword [ebp - 0x26c]
je 0x10023950
call fcn.1003f4f4
mov edi, dword [ebp - 0x23c]
cmp edi, dword [ebp - 0x268]
je 0x10023e74
test esi, esi
jne 0x10023997
call fcn.1003f4f4
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x10023977
call fcn.1003f4f4
cmp dword [edi + 0x30], 0
je 0x10023e4b
mov eax, dword [edi + 0x4c]
test eax, eax
je 0x10023e4b
cmp dword [edi + 0x50], 8
jb 0x1002399b
mov ecx, dword [edi + 0x3c]
jmp 0x1002399e
mov eax, dword [esi]
jmp 0x1002396d
lea ecx, [edi + 0x3c]
add eax, eax
push eax
push ecx
call fcn.100271fc
push eax
push 0x1006232c
lea ecx, [ebp - 0x264]
call fcn.10028aa2
pop ecx
pop ecx
and dword [ebp - 4], 0
push 0xffffffffffffffff
push edi
xor ebx, ebx
call fcn.10004d50
push ebx
inc ebx
push ebx
lea esi, [ebp - 0x264]
call fcn.10004dfd
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 0x10023a55
push 0x1fe
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push esi
push eax
call fcn.10044e90
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 0x10023a31
sub eax, ecx
sar eax, 1
lea ecx, [ebp - 0x214]
lea esi, [ebp - 0x230]
call fcn.1000540a
jmp 0x10023b35
lea esi, [edi + 0x54]
cmp dword [esi + 0x18], 8
jb 0x10023a63
mov eax, dword [esi + 4]
jmp 0x10023a66
lea eax, [esi + 4]
push eax
mov ebx, str..dll
call fcn.10028a5b
test eax, eax
je 0x10023b23
test byte [0x1007548c], 1
jne 0x10023aad
or dword [0x1007548c], 1
and dword [0x10075484], 0
xor eax, eax
push 0x1005d7a7
mov dword [0x10075488], 7
mov word [0x10075474], ax
call fcn.1003f380
pop ecx
cmp dword [0x10075484], 0
jne 0x10023b13
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push eax
call fcn.10044e90
add esp, 0xc
push 0x100
lea eax, [ebp - 0x214]
push eax
push dword [0x100747b4]
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 0x10023af5
sub eax, ecx
sar eax, 1
lea ecx, [ebp - 0x214]
mov esi, 0x10075470
call fcn.1000540a
lea eax, [ebp - 0x230]
push 0xffffffffffffffff
push eax
mov eax, 0x10075470
jmp 0x10023b2e
lea eax, [ebp - 0x230]
push 0xffffffffffffffff
push eax
mov eax, esi
xor ebx, ebx
call fcn.10004d50
cmp dword [ebp - 0x218], 8
mov eax, dword [ebp - 0x22c]
jae 0x10023b4a
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10023c76
push str..exe
lea esi, [ebp - 0x264]
call fcn.100048d8
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 2
or dword [ebp - 0x234], 1
push eax
mov ebx, esi
call fcn.100130d4
pop ecx
cmp eax, 0xffffffff
jne 0x10023bf6
push str..dll
lea esi, [ebp - 0x2b8]
call fcn.100048d8
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 3
or dword [ebp - 0x234], 2
push eax
mov ebx, esi
call fcn.100130d4
pop ecx
cmp eax, 0xffffffff
jne 0x10023bf6
push 0x100636a4
lea esi, [ebp - 0x29c]
call fcn.100048d8
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.100130d4
pop ecx
cmp eax, 0xffffffff
jne 0x10023bf6
xor ebx, ebx
inc ebx
mov byte [ebp - 0x235], bl
jmp 0x10023c00
xor ebx, ebx
mov byte [ebp - 0x235], 0
inc ebx
test byte [ebp - 0x234], 4
je 0x10023c1e
and dword [ebp - 0x234], 0xfffffffb
push 0
push ebx
lea esi, [ebp - 0x29c]
call fcn.10004dfd
test byte [ebp - 0x234], 2
je 0x10023c3c
and dword [ebp - 0x234], 0xfffffffd
push 0
push ebx
lea esi, [ebp - 0x2b8]
call fcn.10004dfd
mov dword [ebp - 4], ebx
test byte [ebp - 0x234], bl
je 0x10023c5c
and dword [ebp - 0x234], 0xfffffffe
push 0
push ebx
lea esi, [ebp - 0x264]
call fcn.10004dfd
cmp byte [ebp - 0x235], 0
je 0x10023c76
push str..exe
lea eax, [ebp - 0x230]
push eax
call fcn.100095a4
cmp dword [ebp - 0x218], 8
mov eax, dword [ebp - 0x22c]
jae 0x10023c8b
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10023cd8
mov ecx, dword [ebp - 0x244]
push edi
push dword [ebp - 0x240]
lea eax, [ebp - 0x278]
call fcn.100246cc
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.10004dfd
jmp 0x10023925
sub esp, 0x1c
lea eax, [ebp - 0x230]
mov esi, esp
mov dword [ebp - 0x270], esp
push eax
call fcn.100048f8
lea eax, [ebp - 0x264]
push eax
call fcn.100236db
lea ecx, [edi + 0xc4]
push 0xffffffffffffffff
push ecx
xor ebx, ebx
mov byte [ebp - 4], 5
call fcn.10004d50
push ebx
push 1
lea esi, [ebp - 0x264]
mov byte [ebp - 4], 1
call fcn.10004dfd
mov ecx, dword [ebp - 0x248]
lea eax, [ebp - 0x264]
push eax
lea eax, [edi + 0xc4]
call fcn.1002378f
lea ecx, [edi + 0xe0]
push 0xffffffffffffffff
push ecx
mov byte [ebp - 4], 6
call fcn.10004d50
push ebx
push 1
lea esi, [ebp - 0x264]
mov byte [ebp - 4], 1
call fcn.10004dfd
cmp dword [edi + 0x68], ebx
je 0x10023df4
cmp dword [edi + 0x6c], 8
jb 0x10023d71
mov ecx, dword [edi + 0x58]
jmp 0x10023d74
lea ecx, [edi + 0x58]
lea eax, [ebp - 0x264]
push 0x100622d8
push eax
call fcn.1003bde8
pop ecx
pop ecx
push 0xffffffffffffffff
lea ecx, [edi + 0x8c]
push ecx
xor ebx, ebx
mov byte [ebp - 4], 7
call fcn.10004d50
push ebx
push 1
lea esi, [ebp - 0x264]
mov byte [ebp - 4], 1
call fcn.10004dfd
cmp dword [edi + 0x6c], 8
jb 0x10023db8
mov ecx, dword [edi + 0x58]
jmp 0x10023dbb
lea ecx, [edi + 0x58]
lea eax, [ebp - 0x2d4]
push 0x100622f8
push eax
call fcn.1003bde8
pop ecx
pop ecx
push 0xffffffffffffffff
lea ecx, [edi + 0xa8]
push ecx
xor ebx, ebx
mov byte [ebp - 4], 8
call fcn.10004d50
push ebx
push 1
lea esi, [ebp - 0x2d4]
mov byte [ebp - 4], 1
call fcn.10004dfd
mov ecx, dword [ebp - 0x248]
lea eax, [edi + 0xc4]
push eax
call fcn.100237cc
test eax, eax
jne 0x10023e1b
lea ecx, [edi + 0xe0]
lea ebx, [ebp - 0x230]
call fcn.10023813
mov eax, dword [ebp - 0x240]
test eax, eax
jne 0x10023e47
call fcn.1003f4f4
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x10023e36
call fcn.1003f4f4
add edi, 0xfc
mov dword [ebp - 0x23c], edi
jmp 0x10023cc0
mov eax, dword [eax]
jmp 0x10023e2c
mov ecx, dword [ebp - 0x244]
push edi
push esi
lea eax, [ebp - 0x280]
call fcn.100246cc
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x240], ecx
mov dword [ebp - 0x23c], eax
jmp 0x10023925
call fcn.10040e1d
ret 4