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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x38
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
test byte [0x10006018], 8
jne 0x10002458
test ebx, ebx
jne 0x10002540
test esi, esi
je 0x10002264
cmp dword [esi], 0x18
jne 0x10002540
lea eax, [ebp - 0x10]
mov dword [esp + 4], edi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp], eax
call sym.sxs.dll_CreateAssemblyNameObject
sub esp, 0x10
mov edi, eax
test eax, eax
js 0x10002449
mov dword [esp + 4], 1
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._get_name_attribute
mov dword [ebp - 0x14], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._get_name_attribute
mov dword [ebp - 0x18], eax
mov dword [esp + 4], 2
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._get_name_attribute
mov dword [ebp - 0x1c], eax
mov dword [esp + 4], 3
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._get_name_attribute
mov dword [esp + 4], 4
mov edi, eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._get_name_attribute
mov edx, eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1000255a
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x1000255a
mov eax, dword [ebp - 0x1c]
test eax, eax
sete al
test edi, edi
sete cl
or al, cl
jne 0x1000255a
test edx, edx
je 0x1000255a
test esi, esi
je 0x100024e0
mov dword [ebp - 0x24], edx
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov ecx, dword [sym.imp.ucrtbase.dll_wcscmp]
sub esp, 8
mov dword [esp + 4], str.win32
mov dword [esp], edi
mov dword [ebp - 0x20], ecx
call ecx
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
test eax, eax
je 0x100024a0
mov dword [ebp - 0x20], edx
mov dword [esp + 4], str.win32_policy
mov dword [esp], edi
call ecx
test eax, eax
jne 0x10002500
mov edx, dword [ebp - 0x20]
mov dword [esp], edx
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
call sym._build_policy_path
mov edx, eax
mov edi, 0x8007000e
test edx, edx
je 0x10002420
mov dword [esp], edx
mov dword [ebp - 0x14], edx
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov edx, dword [ebp - 0x14]
sub esp, 4
cmp eax, 0xffffffff
je 0x100023da
mov dword [esi + 4], 1
test byte [0x10006018], 8
jne 0x10002510
cmp word [edx], 0
je 0x10002550
mov eax, edx
lea esi, cs:[esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x100023f0
sub eax, edx
sar eax, 1
add eax, 1
mov ecx, dword [esi + 0x10]
xor edi, edi
test ecx, ecx
je 0x10002420
cmp dword [esi + 0x14], eax
jae 0x100024c0
mov dword [esi + 0x14], eax
mov edi, 0x8007007a
lea esi, [esi]
mov dword [esp], edx
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
mov eax, dword [ebp + 8]
sub esp, 4
mov eax, dword [eax + 8]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ReleaseMutex]
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov eax, edi
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ebx
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], str._p__0x_08lx___s___p_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.cache_QueryAssemblyInfo
mov dword [esp + 4], 0x10006018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x1000224f
mov dword [esp], edx
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
call sym._build_dll_path
mov edx, eax
jmp 0x100023a6
movzx eax, word [edx + ebx]
mov word [ecx + ebx], ax
add ebx, 2
test ax, ax
jne 0x100024c0
xor edi, edi
jmp 0x10002420
mov eax, dword [ebp - 0x10]
xor edi, edi
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
mov eax, edi
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov edi, 0x8007370a
xor edx, edx
jmp 0x10002420
mov dword [esp + 0xc], str.assembly_is_installed_n
mov dword [esp + 8], str.cache_QueryAssemblyInfo
mov dword [esp + 4], 0x10006018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov edx, dword [ebp - 0x14]
jmp 0x100023da
mov edi, 0x80070057
jmp 0x10002449
mov eax, 1
jmp 0x10002400
mov eax, dword [ebp - 0x10]
mov edi, 0x800736ff
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
jmp 0x10002449