Function at 0x631c7b60
Capabilities:
Get common file path

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x658
mov eax, dword [ecx + 8]
mov edi, dword [ecx]
mov esi, dword [ecx + 4]
mov dword [ebp - 0x63c], eax
test byte [0x631c9048], 8
jne 0x631c7d48
mov eax, dword [ebp - 0x63c]
test eax, eax
je 0x631c7ed3
lea ebx, [ebp - 0x428]
mov dword [esp + 4], 0x104
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryW]
mov ecx, eax
sub esp, 8
xor eax, eax
nop
movzx edx, word [ebx + eax]
mov word [ebp + eax - 0x630], dx
add eax, 2
test dx, dx
jne 0x631c7bc0
cmp edi, 4
je 0x631c7e48
jbe 0x631c7c90
cmp edi, 8
je 0x631c7e88
cmp edi, 0x80
jne 0x631c7ed3
lea eax, [ebp - 0x630]
lea edi, [ecx + ecx]
mov edx, 0x5c
lea ebx, [eax + edi]
xor eax, eax
mov word [ebx + eax], dx
add eax, 2
test dx, dx
je 0x631c7c33
lea esi, [esi]
nop
movzx edx, word [eax + str.Microsoft.NET]
mov word [ebx + eax], dx
add eax, 2
test dx, dx
jne 0x631c7c20
lea ebx, [ebp + edi - 0x614]
xor eax, eax
mov edx, 0x5c
jmp 0x631c7c4f
movzx edx, word [eax + str._assembly]
mov word [ebx + eax], dx
add eax, 2
test dx, dx
jne 0x631c7c48
mov eax, dword [ebp - 0x63c]
add ecx, 0x17
xor edi, edi
inc ecx
cmp dword [eax], ecx
ja 0x631c7d17
nop
mov edi, 0x8007007a
mov eax, dword [ebp - 0x63c]
mov dword [eax], ecx
lea esp, [ebp - 0x10]
mov eax, edi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0xc
cmp edi, 1
je 0x631c7d80
cmp edi, 2
jne 0x631c7ed3
lea eax, [ebp - 0x630]
lea edi, [ecx + ecx]
mov edx, 0x5c
lea ebx, [eax + edi]
xor eax, eax
mov word [ebx + eax], dx
add eax, 2
test dx, dx
je 0x631c7cdb
lea esi, [esi]
movzx edx, word [eax + str._assembly]
mov word [ebx + eax], dx
add eax, 2
test dx, dx
jne 0x631c7cc8
lea ebx, [ebp + edi - 0x61e]
xor eax, eax
mov edx, 0x5c
jmp 0x631c7cf7
movzx edx, word [eax + str.GAC]
mov word [ebx + eax], dx
add eax, 2
test dx, dx
jne 0x631c7cf0
add ecx, 0xd
xor edi, edi
mov eax, dword [ebp - 0x63c]
inc ecx
cmp dword [eax], ecx
jbe 0x631c7c70
test esi, esi
je 0x631c7c70
xor edx, edx
lea esi, [esi]
movzx eax, word [ebp + edx - 0x630]
mov word [esi + edx], ax
add edx, 2
test ax, ax
jne 0x631c7d28
jmp 0x631c7c75
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], str.__08x___p___p__n
mov dword [esp + 8], str.GetCachePath
mov dword [esp + 4], 0x631c9048
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_3
jmp 0x631c7b92
mov dword [esp], str.mscoree.dll
call dword [sym.imp.kernel32.dll_LoadLibraryA]
sub esp, 4
test eax, eax
je 0x631c7ec9
mov dword [esp + 4], str.GetCORVersion
mov dword [esp], eax
mov dword [ebp - 0x640], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov edx, dword [ebp - 0x640]
sub esp, 8
test eax, eax
je 0x631c7ebd
lea ecx, [ebp - 0x634]
mov dword [ebp - 0x640], edx
mov dword [esp + 8], ecx
lea ecx, [ebp - 0x220]
mov dword [esp], ecx
mov dword [esp + 4], 0x104
call eax
mov edx, dword [ebp - 0x640]
sub esp, 0xc
mov edi, eax
mov dword [esp], edx
call dword [sym.imp.kernel32.dll_FreeLibrary]
sub esp, 4
test edi, edi
js 0x631c7c7d
lea ecx, [ebp - 0x220]
lea eax, [ebp - 0x630]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], str.NativeImages_
mov dword [esp + 0x10], 0x631cc86a
mov dword [esp + 8], str._s_s_s_s_32
mov dword [esp + 4], 0x104
mov dword [esp], eax
call sym._swprintf.constprop.0_1
mov ecx, eax
jmp 0x631c7d08
mov edi, 0x80004005
test byte [0x631c9048], 1
je 0x631c7c7d
mov dword [esp + 0xc], str.Download_cache_not_implemented_n
mov dword [esp + 8], str.GetCachePath
mov dword [esp + 4], 0x631c9048
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_3
jmp 0x631c7c7d
lea ebx, [ebp + ecx*2 - 0x630]
xor eax, eax
mov edx, 0x5c
jmp 0x631c7ea7
movzx edx, word [eax + str._assembly]
mov word [ebx + eax], dx
add eax, 2
test dx, dx
jne 0x631c7ea0
add ecx, 9
xor edi, edi
jmp 0x631c7d08
mov dword [esp], edx
call dword [sym.imp.kernel32.dll_FreeLibrary]
sub esp, 4
mov edi, 0x80004005
jmp 0x631c7c7d
mov edi, 0x80070057
jmp 0x631c7c7d