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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x4d8300]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push 0x208
mov dword [ebp - 0x220], eax
mov ebx, esi
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x228], edx
push esi
push eax
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x224], edi
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x22c], esi
call fcn.00478bc0
mov ecx, dword [ebp - 0x214]
add esp, 0xc
call fcn.00403761
mov ecx, edi
mov dword [ebp - 0x230], eax
call fcn.00403761
mov ecx, dword [ebp - 0x220]
mov dword [ebp - 0x234], eax
call fcn.00403761
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x21c], eax
cmp dword [0x52009c], ebx
jne 0x43d91b
push str.WIMCreateFile
mov ecx, str.Wimgapi
call fcn.004078b4
push eax
call edi
mov dword [0x52009c], eax
test eax, eax
jne 0x43d91b
call fcn.0042fc51
push eax
push str.Wimgapi
push str.WIMCreateFile
push str.Unable_to_locate__s___in__s.dll:__s_n
call fcn.0042ed57
add esp, 0x10
jmp 0x43dc14
cmp dword [0x5200b4], ebx
jne 0x43d950
push str.WIMSetTemporaryPath
mov ecx, str.Wimgapi
call fcn.004078b4
push eax
call edi
mov dword [0x5200b4], eax
test eax, eax
jne 0x43d950
call fcn.0042fc51
push eax
push str.Wimgapi
push str.WIMSetTemporaryPath
jmp 0x43d909
cmp dword [0x51ff8c], ebx
jne 0x43d985
push str.WIMLoadImage
mov ecx, str.Wimgapi
call fcn.004078b4
push eax
call edi
mov dword [0x51ff8c], eax
test eax, eax
jne 0x43d985
call fcn.0042fc51
push eax
push str.Wimgapi
push str.WIMLoadImage
jmp 0x43d909
cmp dword [0x51ff90], ebx
jne 0x43d9bd
push str.WIMExtractImagePath
mov ecx, str.Wimgapi
call fcn.004078b4
push eax
call edi
mov dword [0x51ff90], eax
test eax, eax
jne 0x43d9bd
call fcn.0042fc51
push eax
push str.Wimgapi
push str.WIMExtractImagePath
jmp 0x43d909
cmp dword [0x5200c4], ebx
jne 0x43d9f5
push str.WIMCloseHandle
mov ecx, str.Wimgapi
call fcn.004078b4
push eax
call edi
mov dword [0x5200c4], eax
test eax, eax
jne 0x43d9f5
call fcn.0042fc51
push eax
push str.Wimgapi
push str.WIMCloseHandle
jmp 0x43d909
mov edi, dword [ebp + 0x10]
test edi, edi
jne 0x43da15
push dword [ebp - 0x228]
push dword [ebp - 0x214]
push str.Opening:__s:__d___API_
call fcn.0042ed57
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x43da42
call fcn.0042fc51
push eax
push str.__Could_not_fetch_temp_path:__s
call fcn.0042ed57
pop ecx
pop ecx
jmp 0x43dc14
cmp dword [0x5228a0], 0xe0000
push esi
sbb eax, eax
push esi
and eax, 0xe0000000
add eax, 0x20000000
push eax
push 3
push SHChangeNotifyRegister
push dword [ebp - 0x230]
call dword [0x52009c]
mov dword [ebp - 0x218], eax
test eax, eax
jne 0x43da85
call fcn.0042fc51
push eax
push str.__Could_not_access_image:__s
jmp 0x43da36
lea ecx, [ebp - 0x20c]
push ecx
push eax
call dword [0x5200b4]
test eax, eax
jne 0x43daa7
call fcn.0042fc51
push eax
push str.__Could_not_set_temp_path:__s
jmp 0x43dbc5
test edi, edi
jne 0x43dac4
push dword [ebp - 0x224]
push dword [ebp - 0x220]
push str.Extracting:__s__From__s_
call fcn.0042ed57
add esp, 0xc
mov ecx, dword [ebp - 0x224]
mov eax, str._NULL_
test ecx, ecx
push str._1_.xml
cmovne eax, ecx
push eax
call fcn.00481660
pop ecx
pop ecx
test eax, eax
jne 0x43db75
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x238]
push eax
push dword [ebp - 0x218]
call dword [0x5200a8]
test eax, eax
jne 0x43db17
call fcn.0042fc51
push eax
push str.__Could_not_access_WIM_info:__s
jmp 0x43dbc5
push esi
push 0x80
push 2
push esi
push 1
push 0xc0000000
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x43db59
push esi
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x210]
push dword [ebp - 0x238]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x43dbce
test edi, edi
jne 0x43dbe7
call fcn.0042fc51
push eax
push str.__Could_not_extract_file:__s
call fcn.0042ed57
pop ecx
pop ecx
jmp 0x43dbd5
push dword [ebp - 0x228]
push dword [ebp - 0x218]
call dword [0x51ff8c]
mov dword [ebp - 0x22c], eax
test eax, eax
jne 0x43db9e
call fcn.0042fc51
push eax
push str.__Could_not_set_index:__s
jmp 0x43dbc5
push esi
push dword [ebp - 0x21c]
push dword [ebp - 0x234]
push eax
call dword [0x51ff90]
test eax, eax
jne 0x43dbce
test edi, edi
jne 0x43dbe7
call fcn.0042fc51
push eax
push str.__Could_not_extract_file:__s
call fcn.0042ed57
pop ecx
pop ecx
jmp 0x43dbd1
xor esi, esi
inc esi
test edi, edi
jne 0x43dbe7
push dword [ebp - 0x214]
push str.Closing:__s
call fcn.0042ed57
pop ecx
pop ecx
mov eax, dword [ebp - 0x22c]
test eax, eax
je 0x43dbf8
push eax
call dword [0x5200c4]
push dword [ebp - 0x218]
call dword [0x5200c4]
cmp ebx, 0xffffffff
je 0x43dc14
test ebx, ebx
je 0x43dc14
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x230]
call fcn.004812c6
push dword [ebp - 0x234]
call fcn.004812c6
push dword [ebp - 0x21c]
call fcn.004812c6
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00475c80
leave
ret