Function at 0x62250ac0
Capabilities:
Access peb ldr_data
Check if file exists
Check if process is running under wine
Create directory
Create process on windows
Get common file path
Get kernel32 base address
Get process heap flags
Query environment variable
Write and execute a file
Write file on windows

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, 0x938
mov edi, dword [ecx]
mov eax, dword [ecx + 8]
mov dword [esp], str.SteamGameId
mov dword [ebp - 0x900], edi
mov dword [ebp - 0x910], eax
call dword [sym.imp.ucrtbase.dll_getenv]
mov dword [esp], edi
mov dword [ebp - 0x908], eax
call dword [0x6226d0b4]
mov dword [esp], edi
mov dword [ebp - 0x8f4], eax
call dword [0x6226d088]
mov dword [esp], edi
mov dword [ebp - 0x8f0], eax
call dword [0x6226d084]
mov dword [ebp - 0x8ec], eax
test eax, eax
je 0x62250bcd
mov dword [esp + 0x14], 0
mov edi, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call edi
mov esi, eax
sub esp, 0x18
lea edx, [esi + esi]
mov dword [esp + 4], 0
mov dword [esp + 8], edx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x62251aff
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x8ec]
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call edi
mov dword [ebp - 0x8ec], ebx
sub esp, 0x18
test byte [0x62258170], 8
jne 0x622510d0
mov eax, dword [ebp - 0x8f4]
test eax, eax
je 0x62251111
mov eax, dword [ebp - 0x8f0]
test eax, eax
je 0x62251111
mov eax, dword [ebp - 0x900]
mov dword [esp], eax
call dword [0x6226d088]
mov dword [esp + 4], str.SoftwareWineMonoAsmOverrides
mov esi, dword [sym.imp.advapi32.dll_RegOpenKeyA]
mov dword [ebp - 0x8f8], eax
lea eax, [ebp - 0x67c]
mov dword [esp + 8], eax
mov dword [esp], 0x80000001
call esi
sub esp, 0xc
test eax, eax
je 0x62250c3d
mov dword [ebp - 0x67c], 0
lea eax, [ebp - 0x26a]
mov dword [esp + 8], 0x104
mov dword [ebp - 0x578], 0
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
sub eax, 1
sub esp, 0xc
cmp eax, 0x102
jbe 0x62250ec0
mov edi, dword [ebp - 0x578]
mov ecx, dword [ebp - 0x67c]
mov edx, dword [ebp - 0x900]
mov eax, dword [ebp - 0x8f8]
mov dword [esp], edi
call fcn.6224c9a0
mov dword [ebp - 0x904], eax
cmp eax, 2
je 0x62250fa0
mov eax, dword [ebp - 0x67c]
test eax, eax
je 0x62250cbc
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
mov eax, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [ebp - 0x90c], eax
test edi, edi
je 0x62250cd7
mov dword [esp], edi
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
mov ebx, dword [section..bss]
test ebx, ebx
je 0x62250cee
test byte [ebp - 0x904], 4
jne 0x622516e0
mov esi, dword [ebp - 0x8f0]
mov edi, str.ManagedStarter
mov ecx, 0xf
repe cmpsb byte [esi], byte es:[edi]
seta al
sbb al, 0
test al, al
jne 0x62251128
mov edx, dword [ebp - 0x908]
test edx, edx
je 0x62250e40
mov esi, dword [ebp - 0x908]
mov edi, str.261550
mov ecx, 7
repe cmpsb byte [esi], byte es:[edi]
seta al
sbb al, 0
test al, al
je 0x62251510
mov ebx, 0x6225d340
mov esi, dword [ebx]
mov eax, dword [ebp - 0x8f0]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_strcmp]
test eax, eax
jne 0x62250e30
mov eax, dword [ebx + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x908]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_strcmp]
test eax, eax
jne 0x62250e30
mov eax, dword [ebx + 4]
mov dword [ebp - 0x8f8], eax
test byte [0x62258170], 1
jne 0x62251920
mov eax, dword [ebx + 0xc]
lea edi, [ebp - 0x8c4]
mov ecx, 0x10
mov dword [ebp - 0x8c8], 0x44
mov dword [ebp - 0x8fc], eax
xor eax, eax
rep stosd dword es:[edi], eax
mov dword [esp], str.C:windowsMicrosoft.NETFramework_v2.0.50727csc.exe
call dword [sym.imp.shlwapi.dll_PathFileExistsA]
sub esp, 4
test eax, eax
jne 0x62251200
test byte [0x62258170], 2
je 0x62250e30
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str.HACK:_Failed_to_build__s_n
mov dword [esp + 8], str.wine_mono_assembly_preload_hook_v2_fn
mov dword [esp + 4], 0x62258170
mov dword [esp], 1
call fcn.6224d210
test byte [0x62258170], 2
je 0x62250e30
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str.HACK:_Failed_to_load__s_n
mov dword [esp + 8], str.wine_mono_assembly_preload_hook_v2_fn
mov dword [esp + 4], 0x62258170
mov dword [esp], 1
call fcn.6224d210
lea esi, [esi]
add ebx, 0x10
mov eax, str..exe
cmp eax, ebx
jne 0x62250d3f
test byte [ebp - 0x904], 1
jne 0x62251578
test byte [0x62258170], 8
jne 0x62251950
mov eax, dword [0x6226d0b0]
test eax, eax
je 0x62251164
test byte [ebp - 0x904], 8
je 0x622514d0
mov ecx, dword [ebp - 0x900]
lea edx, [ebp - 0x8e8]
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov dword [esp], ecx
call eax
mov esi, eax
test eax, eax
je 0x62251164
test byte [0x62258170], 8
jne 0x62251a60
mov eax, dword [ebp - 0x910]
or dword [eax], 4
jmp 0x622511af
lea eax, [ebp - 0x26a]
mov ebx, dword [sym.imp.ucrtbase.dll_wcsrchr]
mov dword [esp + 4], 0x2f
lea edi, [ebp - 0x26a]
mov dword [esp], eax
call ebx
mov dword [esp + 4], 0x5c
test eax, eax
lea edx, [eax + 2]
cmovne edi, edx
mov dword [esp], edi
call ebx
lea ecx, [eax + 2]
test eax, eax
cmovne edi, ecx
cmp word [edi], 0
mov ecx, edi
je 0x62250f11
lea esi, [esi]
add ecx, 2
cmp word [ecx], 0
jne 0x62250f08
xor eax, eax
lea esi, [esi]
nop
movzx edx, word [eax + str.MonoAsmOverrides]
mov word [ecx + eax], dx
add eax, 2
test dx, dx
jne 0x62250f18
lea ebx, [ebp - 0x474]
mov dword [esp + 4], str.SoftwareWineAppDefaults
mov dword [esp + 8], ebx
mov dword [esp], 0x80000001
call esi
sub esp, 0xc
test eax, eax
jne 0x62250c77
lea eax, [ebp - 0x578]
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x474]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
sub esp, 0xc
test eax, eax
je 0x62250f7f
mov dword [ebp - 0x578], 0
mov eax, dword [ebp - 0x474]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x62250c77
mov eax, dword [ebp - 0x8f8]
mov ebx, dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp], eax
call ebx
mov dword [esp + 4], 0
mov edx, eax
lea edx, [edx + edx + 6]
mov dword [esp + 8], edx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x8fc], eax
call eax
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x62251b0e
mov eax, dword [ebp - 0x8f8]
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll_strcpy]
mov eax, dword [ebp - 0x8f8]
mov dword [esp], eax
call ebx
mov dword [ebp - 0x8f8], edi
mov edi, dword [ebp - 0x900]
lea ebx, [esi + eax]
jmp 0x6225103e
mov byte [ebx], 0
mov dword [esp + 4], 0x2e
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strrchr]
mov ebx, eax
test eax, eax
je 0x62251980
mov eax, 0x2a2e
mov byte [ebx + 2], 0
mov ecx, dword [ebp - 0x67c]
mov edx, edi
mov word [ebx], ax
mov eax, dword [ebp - 0x8f8]
mov dword [esp], eax
mov eax, esi
call fcn.6224c9a0
cmp eax, 2
je 0x62251020
mov dword [ebp - 0x904], eax
mov edi, dword [ebp - 0x8f8]
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [ebp - 0x90c], eax
call eax
sub esp, 0xc
test edi, edi
je 0x622510ae
mov dword [esp], edi
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
mov eax, dword [ebp - 0x67c]
test eax, eax
je 0x62250cd7
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x62250cd7
mov eax, dword [ebp - 0x8f4]
call fcn.6224ceb0
mov dword [esp + 0xc], 0x6225cc4b
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.wine_mono_assembly_preload_hook_v2_fn
mov dword [esp + 4], 0x62258170
mov dword [esp], 3
call fcn.6224d210
mov eax, dword [ebp - 0x8f4]
test eax, eax
jne 0x62250be8
lea esp, [ebp - 0x10]
xor esi, esi
pop ecx
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov eax, dword [ebp - 0x908]
test eax, eax
jne 0x62250d3a
jmp 0x62250e40
mov dword [esp + 0xc], str.skipping_Mono_GAC_search_due_to_override_setting_n
mov dword [esp + 8], str.wine_mono_assembly_preload_hook_v2_fn
mov dword [esp + 4], 0x62258170
mov dword [esp], 3
call fcn.6224d210
test byte [ebp - 0x904], 4
jne 0x622511ad
test byte [0x62258170], 8
je 0x6225119a
mov dword [esp + 0xc], str.skipping_AppDomain_search_path_due_to_override_setting_n
mov dword [esp + 8], str.wine_mono_assembly_preload_hook_v2_fn
mov dword [esp + 4], 0x62258170
mov dword [esp], 3
call fcn.6224d210
mov eax, dword [ebp - 0x910]
mov ecx, dword [ebp - 0x910]
mov eax, dword [eax]
or eax, 1
mov dword [ecx], eax
xor esi, esi
mov ecx, dword [ebp - 0x8ec]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], ecx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x90c]
call eax
mov eax, dword [ebp - 0x8f4]
sub esp, 0xc
mov dword [esp], eax
call dword [0x6226d0e0]
lea esp, [ebp - 0x10]
mov eax, esi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
lea eax, [ebp - 0x8e0]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_AllocateLocallyUniqueId]
sub esp, 4
test eax, eax
je 0x62250dca
lea edi, [ebp - 0x780]
mov dword [esp], 0x104
mov dword [esp + 4], edi
call dword [sym.imp.kernel32.dll_GetTempPathA]
lea eax, [ebp - 0x67c]
sub esp, 8
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x8e0]
mov dword [esp + 4], str.assembly
mov dword [esp + 8], eax
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
sub esp, 0x10
test eax, eax
je 0x62250dca
lea eax, [ebp - 0x67c]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
sub esp, 8
test eax, eax
jne 0x62251295
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0xb7
jne 0x62250dca
lea eax, [ebp - 0x67c]
mov dword [esp + 8], str._s_source.cs
lea edi, [ebp - 0x884]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x578]
mov dword [esp + 4], 0x104
mov dword [esp], eax
call fcn.6224d160
mov eax, dword [ebp - 0x8f8]
mov dword [esp + 8], str._s_s
mov dword [esp + 4], 0x104
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x67c]
mov dword [esp + 0xc], eax
mov dword [esp], edi
call fcn.6224d160
lea eax, [ebp - 0x578]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40000000
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CreateFileA]
sub esp, 0x1c
cmp eax, 0xffffffff
mov dword [ebp - 0x8f8], eax
je 0x62250dca
mov eax, dword [ebp - 0x8fc]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_strlen]
mov edx, dword [ebp - 0x8f8]
lea ecx, [ebp - 0x8e4]
mov dword [esp + 0x10], 0
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x8fc]
mov dword [esp + 0xc], ecx
mov dword [esp], edx
mov dword [ebp - 0x8fc], edx
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_WriteFile]
mov edx, dword [ebp - 0x8fc]
mov dword [ebp - 0x8f8], eax
mov eax, dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 0x14
mov dword [esp], edx
mov dword [ebp - 0x8fc], eax
call eax
mov ecx, dword [ebp - 0x8f8]
sub esp, 4
test ecx, ecx
je 0x62250dca
lea ecx, [ebp - 0x578]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ecx
lea ecx, [ebp - 0x26a]
mov dword [esp], ecx
mov dword [esp + 0xc], str.C:windowsMicrosoft.NETFramework_v2.0.50727csc.exe
mov dword [esp + 8], str._s__t:library__out:__s____s_
mov dword [esp + 4], 0x252
call fcn.6224d160
lea eax, [ebp - 0x8d8]
lea ecx, [ebp - 0x26a]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], eax
lea eax, [ebp - 0x8c8]
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], ecx
mov dword [esp], str.C:windowsMicrosoft.NETFramework_v2.0.50727csc.exe
call dword [sym.imp.kernel32.dll_CreateProcessA]
sub esp, 0x28
test eax, eax
je 0x62250dca
mov eax, dword [ebp - 0x8d8]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x8d4]
sub esp, 8
mov dword [esp], eax
mov eax, dword [ebp - 0x8fc]
call eax
mov eax, dword [ebp - 0x8d8]
sub esp, 4
mov dword [esp], eax
mov eax, dword [ebp - 0x8fc]
call eax
sub esp, 4
mov dword [esp], edi
call dword [sym.imp.shlwapi.dll_PathFileExistsA]
sub esp, 4
test eax, eax
je 0x62250dca
lea eax, [ebp - 0x8e8]
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [0x6226d07c]
test eax, eax
je 0x62250dfb
mov esi, eax
jmp 0x622511af
mov ecx, dword [ebp - 0x910]
mov eax, dword [ecx]
mov dword [ebp - 0x8f0], eax
or eax, 2
mov dword [ecx], eax
test byte [0x62258170], 8
jne 0x62251140
test byte [ebp - 0x904], 4
jne 0x622511ad
mov ecx, dword [ebp - 0x910]
or eax, 1
mov dword [ecx], eax
jmp 0x622511ad
test byte [0x62258170], 1
jne 0x622519c0
lea eax, [ebp - 0x8e8]
mov dword [esp], str.Bannerlord.exe
mov dword [esp + 4], eax
call dword [0x6226d07c]
mov esi, eax
test eax, eax
jne 0x622511af
test byte [0x62258170], 2
je 0x62250d3a
mov dword [esp + 0xc], str.Bannerlord.exe_failed_to_load_n
mov dword [esp + 8], str.wine_mono_assembly_preload_hook_v2_fn
mov dword [esp + 4], 0x62258170
mov dword [esp], 1
call fcn.6224d210
jmp 0x62250d3a
mov edx, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x8f4]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [ebp - 0x8f0], edx
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call edx
sub esp, 0x18
mov ebx, eax
add eax, eax
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov edi, dword fs:[0x18]
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x62250e5a
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x8f4]
mov edx, dword [ebp - 0x8f0]
mov dword [esp + 0x14], ebx
lea ebx, [ebp - 0x474]
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call edx
sub esp, 0x18
mov dword [esp + 8], 0x104
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.622509d0
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [ebp - 0x8f0], eax
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x90c]
call eax
mov edx, dword [ebp - 0x8f0]
sub esp, 0xc
test edx, edx
js 0x62250e5a
test byte [0x62258170], 8
jne 0x622519f0
mov dword [esp], ebx
call fcn.622539a0
mov edi, eax
test eax, eax
je 0x62250e5a
lea eax, [ebp - 0x8e8]
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [0x6226d07c]
mov esi, eax
test eax, eax
je 0x62251a90
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x90c]
call eax
sub esp, 0xc
jmp 0x62250ea8
mov eax, dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x8fc], eax
mov edi, dword [ebp - 0x8f0]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov esi, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call esi
mov ebx, eax
sub esp, 0x18
lea edx, [ebx + ebx]
mov dword [esp + 4], 0
mov dword [esp + 8], edx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x8fc]
call eax
mov dword [ebp - 0x8f8], eax
sub esp, 0xc
test eax, eax
je 0x62250cee
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call esi
mov eax, dword [section..bss]
sub esp, 0x18
mov eax, dword [eax]
test eax, eax
je 0x62251a28
mov dword [ebp - 0x8fc], 4
mov edi, dword [sym.imp.ucrtbase.dll_wcslen]
lea ebx, [ebp - 0x474]
jmp 0x6225188f
mov dword [esp], ebx
call edi
mov dword [esp], str..dll
mov esi, eax
call edi
mov dword [esp + 4], str..exe
sub esi, eax
lea eax, [ebx + esi*2]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcscpy]
mov eax, ebx
call fcn.6224da70
test eax, eax
jne 0x622518ec
mov dword [esp], ebx
call edi
mov dword [esp], str..exe
mov esi, eax
call edi
xor ecx, ecx
mov dword [esp], ebx
sub esi, eax
mov eax, dword [ebp - 0x8f8]
mov word [ebp + esi*2 - 0x474], cx
mov dword [esp + 4], eax
call dword [sym.imp.shlwapi.dll_PathAppendW]
sub esp, 8
mov dword [esp + 4], str..dll
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_wcscat]
mov eax, ebx
call fcn.6224da70
test eax, eax
jne 0x622518ec
mov dword [esp], ebx
call edi
mov dword [esp], str..dll
mov esi, eax
call edi
mov dword [esp + 4], str..exe
sub esi, eax
lea eax, [ebx + esi*2]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcscpy]
mov eax, ebx
call fcn.6224da70
test eax, eax
jne 0x622518ec
mov edx, dword [ebp - 0x8fc]
mov eax, dword [section..bss]
mov eax, dword [eax + edx]
add edx, 4
mov dword [ebp - 0x8fc], edx
test eax, eax
je 0x62251a28
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_wcscpy]
mov eax, dword [ebp - 0x8ec]
test eax, eax
je 0x622518b6
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.shlwapi.dll_PathAppendW]
sub esp, 8
mov eax, dword [ebp - 0x8f8]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.shlwapi.dll_PathAppendW]
sub esp, 8
mov dword [esp + 4], str..dll
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_wcscat]
mov eax, ebx
call fcn.6224da70
test eax, eax
je 0x622517b8
mov ecx, dword [ebp - 0x8f8]
mov dword [esp + 4], 0
mov esi, eax
mov eax, dword fs:[0x18]
mov dword [esp + 8], ecx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x90c]
call eax
sub esp, 0xc
jmp 0x622511af
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.HACK:_Building__s_n
mov dword [esp + 8], str.wine_mono_assembly_preload_hook_v2_fn
mov dword [esp + 4], 0x62258170
mov dword [esp], 0
call fcn.6224d210
jmp 0x62250d90
mov dword [esp + 0xc], str.skipping_Windows_GAC_search_due_to_override_setting_n
mov dword [esp + 8], str.wine_mono_assembly_preload_hook_v2_fn
mov dword [esp + 4], 0x62258170
mov dword [esp], 3
call fcn.6224d210
jmp 0x62250e5a
mov edi, dword [ebp - 0x8f8]
mov ecx, dword [ebp - 0x67c]
mov eax, 0x6225ce74
mov edx, dword [ebp - 0x900]
mov dword [esp], edi
call fcn.6224c9a0
mov ecx, eax
cmp eax, 2
mov eax, 0xd
cmovne eax, ecx
mov dword [ebp - 0x904], eax
jmp 0x62251073
mov dword [esp + 0xc], str.hack__using_Bannerlord.exe_n
mov dword [esp + 8], str.wine_mono_assembly_preload_hook_v2_fn
mov dword [esp + 4], 0x62258170
mov dword [esp], 0
call fcn.6224d210
jmp 0x6225151d
mov eax, ebx
call fcn.6224cc90
mov dword [esp + 0xc], str.found:__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.wine_mono_assembly_preload_hook_v2_fn
mov dword [esp + 4], 0x62258170
mov dword [esp], 3
call fcn.6224d210
jmp 0x6225167c
mov ecx, dword [ebp - 0x8f8]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], ecx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x90c]
call eax
sub esp, 0xc
jmp 0x62250cee
mov dword [esp + 0xc], str.found_in_Mono_GAC_n
mov dword [esp + 8], str.wine_mono_assembly_preload_hook_v2_fn
mov dword [esp + 4], 0x62258170
mov dword [esp], 3
call fcn.6224d210
jmp 0x62250ea8
test byte [0x62258170], 2
jne 0x62251ac4
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x90c]
call eax
sub esp, 0xc
jmp 0x62250e5a
mov esi, dword [ebp - 0x8e8]
mov eax, ebx
call fcn.6224cc90
mov dword [esp + 0xc], str.Failed_to_load__s__status_u_n
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.wine_mono_assembly_preload_hook_v2_fn
mov dword [esp + 4], 0x62258170
mov dword [esp], 1
call fcn.6224d210
jmp 0x62251a99
mov dword [ebp - 0x8ec], 0
jmp 0x62250bcd
test byte [0x62258170], 2
jne 0x62251b60
mov eax, dword [ebp - 0x67c]
test eax, eax
je 0x62251b2b
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
push eax
test edi, edi
je 0x62251b39
mov dword [esp], edi
call dword [sym.imp.advapi32.dll_RegCloseKey]
push eax
mov eax, dword [sym.imp.kernel32.dll_HeapFree]
cmp dword [section..bss], 0
mov dword [ebp - 0x904], 0xd
mov dword [ebp - 0x90c], eax
jne 0x622516eb
jmp 0x62250cee
mov dword [esp + 0xc], str.out_of_memory_n
mov dword [esp + 8], str.get_assembly_search_flags
mov dword [esp + 4], 0x62258170
mov dword [esp], 1
call fcn.6224d210
jmp 0x62251b17