Function at 0x4506b3
Capabilities:
Get common file path
Link many functions at runtime
Write file on windows

Disassembly:
push ebp
xor ecx, ecx
xor eax, eax
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x220]
push ebx
sub esp, 0x24c
mov dword [ebp - 0x228], ecx
mov esi, dword [ebp + 0x10]
mov ecx, 0x82
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
call fcn.0044ebdc
mov dword [ebp - 0x234], eax
mov eax, esi
call fcn.0044ebdc
mov dword [ebp - 0x238], eax
mov eax, dword [ebp + 0x14]
call fcn.0044ebdc
cmp dword [0x52b080], 0
mov dword [ebp - 0x230], eax
jne 0x450767
mov eax, str.Wimgapi
call fcn.0044e729
mov dword [esp + 4], str.WIMCreateFile
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push edx
push edx
mov dword [0x52b080], eax
test eax, eax
jne 0x450767
call fcn.0043f53d
mov dword [esp + 8], str.Wimgapi
mov dword [esp + 0xc], eax
mov dword [esp + 4], str.WIMCreateFile
mov dword [esp], 0x4b4003
call fcn.0043efa9
xor eax, eax
xor esi, esi
xor edi, edi
mov dword [ebp - 0x22c], eax
jmp 0x450ae1
cmp dword [0x52b07c], 0
jne 0x4507b1
mov eax, str.Wimgapi
call fcn.0044e729
mov dword [esp + 4], str.WIMSetTemporaryPath
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push edi
push edi
mov dword [0x52b07c], eax
test eax, eax
jne 0x4507b1
call fcn.0043f53d
mov dword [esp + 8], str.Wimgapi
mov dword [esp + 0xc], eax
mov dword [esp + 4], str.WIMSetTemporaryPath
jmp 0x45074a
cmp dword [0x52b078], 0
jne 0x4507fe
mov eax, str.Wimgapi
call fcn.0044e729
mov dword [esp + 4], str.WIMLoadImage
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push ebx
push ebx
mov dword [0x52b078], eax
test eax, eax
jne 0x4507fe
call fcn.0043f53d
mov dword [esp + 8], str.Wimgapi
mov dword [esp + 0xc], eax
mov dword [esp + 4], str.WIMLoadImage
jmp 0x45074a
cmp dword [0x52b068], 0
jne 0x45084b
mov eax, str.Wimgapi
call fcn.0044e729
mov dword [esp + 4], str.WIMExtractImagePath
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push ecx
push ecx
mov dword [0x52b068], eax
test eax, eax
jne 0x45084b
call fcn.0043f53d
mov dword [esp + 8], str.Wimgapi
mov dword [esp + 0xc], eax
mov dword [esp + 4], str.WIMExtractImagePath
jmp 0x45074a
cmp dword [0x52b060], 0
jne 0x450898
mov eax, str.Wimgapi
call fcn.0044e729
mov dword [esp + 4], str.WIMCloseHandle
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push edx
push edx
mov dword [0x52b060], eax
test eax, eax
jne 0x450898
call fcn.0043f53d
mov dword [esp + 8], str.Wimgapi
mov dword [esp + 0xc], eax
mov dword [esp + 4], str.WIMCloseHandle
jmp 0x45074a
cmp dword [ebp + 0x18], 0
jne 0x4508b8
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp], str.Opening:__s:__d___API_
mov dword [esp + 4], eax
call fcn.0043efa9
lea ebx, [ebp - 0x220]
mov dword [esp], 0x104
mov dword [esp + 4], ebx
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
push edi
push edi
test eax, eax
jne 0x4508e7
call fcn.0043f53d
mov dword [esp], str.__Could_not_fetch_temp_path:__s
mov dword [esp + 4], eax
jmp 0x450943
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], ecx
cmp dword [0x5132f0], 0xdffff
seta al
mov dword [esp + 8], 3
shl eax, 0x1d
mov dword [esp + 4], 0x80000000
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x234]
mov dword [esp], eax
call dword [0x52b080]
mov dword [ebp - 0x22c], eax
sub esp, 0x18
test eax, eax
jne 0x45094d
call fcn.0043f53d
mov dword [esp], str.__Could_not_access_image:__s
mov dword [esp + 4], eax
call fcn.0043efa9
jmp 0x450756
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x22c]
mov dword [esp], eax
call dword [0x52b07c]
mov ebx, eax
push edx
push edx
test eax, eax
jne 0x45097d
call fcn.0043f53d
mov dword [esp], str.__Could_not_set_temp_path:__s
mov dword [esp + 4], eax
jmp 0x4509ff
cmp dword [ebp + 0x18], 0
jne 0x45099a
mov dword [esp + 8], esi
mov eax, dword [ebp + 0x14]
mov dword [esp], str.Extracting:__s__From__s_
mov dword [esp + 4], eax
call fcn.0043efa9
test esi, esi
je 0x450aac
mov dword [esp + 4], 0x4b4847
mov dword [esp], esi
call sub.msvcrt.dll_strcmp
mov ebx, eax
test eax, eax
jne 0x450aac
lea eax, [ebp - 0x224]
lea edi, [ebp - 0x228]
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x22c]
mov dword [esp], eax
call dword [0x52b064]
sub esp, 0xc
test eax, eax
je 0x4509ef
cmp dword [ebp - 0x228], 0
jne 0x450a0b
call fcn.0043f53d
mov dword [esp], str.__Could_not_access_WIM_info:__s
mov dword [esp + 4], eax
call fcn.0043efa9
xor esi, esi
jmp 0x450aa5
xor eax, eax
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 0xc0000000
mov eax, dword [ebp - 0x230]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
sub esp, 0x1c
mov esi, eax
cmp eax, 0xffffffff
jne 0x450a6f
cmp dword [ebp + 0x18], 0
jne 0x450aa5
call fcn.0043f53d
mov dword [esp], str.__Could_not_extract_file:__s
xor ebx, ebx
mov dword [esp + 4], eax
call fcn.0043efa9
jmp 0x450aa5
xor eax, eax
mov dword [esp + 0xc], edi
xor edi, edi
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x228]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x224]
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
sub esp, 0x14
test eax, eax
jne 0x450b30
jmp 0x450a50
xor edi, edi
jmp 0x450b35
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x22c]
mov dword [esp], eax
call dword [0x52b078]
mov edi, eax
push esi
push esi
test eax, eax
jne 0x450ae5
call fcn.0043f53d
mov dword [esp], str.__Could_not_set_index:__s
xor esi, esi
mov dword [esp + 4], eax
call fcn.0043efa9
xor ebx, ebx
jmp 0x450b35
xor ebx, ebx
xor esi, esi
mov dword [esp + 0xc], ebx
mov eax, dword [ebp - 0x230]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x238]
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [0x52b068]
sub esp, 0x10
mov ebx, eax
test eax, eax
jne 0x450b30
cmp dword [ebp + 0x18], 0
jne 0x450b35
call fcn.0043f53d
mov dword [esp], str.__Could_not_extract_file:__s
mov dword [esp + 4], eax
call fcn.0043efa9
jmp 0x450b35
mov ebx, 1
mov eax, dword [ebp - 0x22c]
or eax, edi
je 0x450b82
cmp dword [ebp + 0x18], 0
jne 0x450b58
mov eax, dword [ebp + 8]
mov dword [esp], str.Closing:__s
mov dword [esp + 4], eax
call fcn.0043efa9
mov eax, dword [0x52b060]
test edi, edi
jne 0x450b73
mov eax, dword [ebp - 0x22c]
mov dword [esp], eax
call dword [0x52b060]
push ecx
jmp 0x450b82
mov dword [esp], edi
call eax
push edx
cmp dword [ebp - 0x22c], 0
jne 0x450b61
lea eax, [esi - 1]
cmp eax, 0xfffffffd
ja 0x450b94
mov dword [esp], esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push eax
mov eax, dword [ebp - 0x234]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, dword [ebp - 0x238]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, dword [ebp - 0x230]
mov dword [esp], eax
call sub.msvcrt.dll_free
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret