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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x4f22ec]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x208
mov dword [ebp - 0x224], eax
mov esi, ecx
lea eax, [ebp - 0x214]
mov dword [ebp - 0x234], edx
push 0
push eax
mov dword [ebp - 0x228], esi
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x23c], 0
call fcn.00493600
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
add esp, 0xc
test esi, esi
je 0x4537f8
cmp byte [esi], 0
jne 0x4537a7
push 2
push 1
call fcn.0049570f
add esp, 8
mov dword [ebp - 0x21c], eax
jmp 0x453802
push 0
push 0
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call edi
mov esi, eax
cmp esi, 1
jle 0x4537f8
push 2
push esi
call fcn.0049570f
add esp, 8
mov dword [ebp - 0x21c], eax
test eax, eax
je 0x4537f8
push esi
push eax
push 0xffffffffffffffff
push dword [ebp - 0x228]
push 0
push 0xfde9
call edi
cmp eax, esi
je 0x453802
push dword [ebp - 0x21c]
call fcn.004998ec
add esp, 4
mov dword [ebp - 0x21c], 0
test ebx, ebx
je 0x45386c
cmp byte [ebx], 0
jne 0x45381f
push 2
push 1
call fcn.0049570f
add esp, 8
mov dword [ebp - 0x218], eax
jmp 0x453876
push 0
push 0
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call edi
mov esi, eax
cmp esi, 1
jle 0x45386c
push 2
push esi
call fcn.0049570f
add esp, 8
mov dword [ebp - 0x218], eax
test eax, eax
je 0x45386c
push esi
push eax
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call edi
cmp eax, esi
je 0x453876
mov esi, dword [ebp - 0x218]
push esi
call fcn.004998ec
add esp, 4
mov dword [ebp - 0x218], 0
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x4538dd
cmp byte [eax], 0
jne 0x453895
push 2
push 1
call fcn.0049570f
add esp, 8
mov ebx, eax
jmp 0x4538df
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call edi
mov esi, eax
cmp esi, 1
jle 0x4538dd
push 2
push esi
call fcn.0049570f
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4538dd
push esi
push ebx
push 0xffffffffffffffff
push dword [ebp - 0x224]
push 0
push 0xfde9
call edi
cmp eax, esi
je 0x4538df
push ebx
call fcn.004998ec
add esp, 4
xor ebx, ebx
cmp dword [0x5403ec], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
jne 0x453935
push str.WIMCreateFile
push ecx
mov ecx, str.Wimgapi
call fcn.00409990
add esp, 4
push eax
call esi
mov dword [0x5403ec], eax
test eax, eax
jne 0x453935
call fcn.00440bb0
push eax
push str.Wimgapi
push str.WIMCreateFile
push str.Unable_to_locate__s___in__s.dll:__s
call fcn.004407e0
mov esi, dword [ebp - 0x218]
add esp, 0x10
jmp 0x453b46
cmp dword [0x5404c8], 0
jne 0x45396f
push str.WIMSetTemporaryPath
push ecx
mov ecx, str.Wimgapi
call fcn.00409990
add esp, 4
push eax
call esi
mov dword [0x5404c8], eax
test eax, eax
jne 0x45396f
call fcn.00440bb0
push eax
push str.Wimgapi
push str.WIMSetTemporaryPath
jmp 0x45391d
cmp dword [0x53ffcc], 0
jne 0x4539ac
push str.WIMLoadImage
push ecx
mov ecx, str.Wimgapi
call fcn.00409990
add esp, 4
push eax
call esi
mov dword [0x53ffcc], eax
test eax, eax
jne 0x4539ac
call fcn.00440bb0
push eax
push str.Wimgapi
push str.WIMLoadImage
jmp 0x45391d
cmp dword [0x5401d8], 0
jne 0x4539e9
push str.WIMExtractImagePath
push ecx
mov ecx, str.Wimgapi
call fcn.00409990
add esp, 4
push eax
call esi
mov dword [0x5401d8], eax
test eax, eax
jne 0x4539e9
call fcn.00440bb0
push eax
push str.Wimgapi
push str.WIMExtractImagePath
jmp 0x45391d
cmp dword [0x5404d0], 0
jne 0x453a26
push str.WIMCloseHandle
push ecx
mov ecx, str.Wimgapi
call fcn.00409990
add esp, 4
push eax
call esi
mov dword [0x5404d0], eax
test eax, eax
jne 0x453a26
call fcn.00440bb0
push eax
push str.Wimgapi
push str.WIMCloseHandle
jmp 0x45391d
mov edi, dword [ebp + 0x10]
test edi, edi
jne 0x453a46
push dword [ebp - 0x234]
push dword [ebp - 0x228]
push str.Opening:__s:__d___API_
call fcn.004407e0
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x453a7a
call fcn.00440bb0
push eax
push str.__Could_not_fetch_temp_path:__s
call fcn.004407e0
mov esi, dword [ebp - 0x218]
add esp, 8
jmp 0x453b46
cmp dword [0x543630], 0xe0000
push 0
sbb eax, eax
push 0
and eax, 0xe0000000
add eax, 0x20000000
push eax
push 3
push 0x80000000
push dword [ebp - 0x21c]
call dword [0x5403ec]
mov dword [ebp - 0x22c], eax
test eax, eax
jne 0x453acd
call fcn.00440bb0
push eax
push str.__Could_not_access_image:__s
call fcn.004407e0
mov esi, dword [ebp - 0x218]
add esp, 8
jmp 0x453b46
lea ecx, [ebp - 0x214]
push ecx
push eax
call dword [0x5404c8]
test eax, eax
jne 0x453b7d
call fcn.00440bb0
push eax
push str.__Could_not_set_temp_path:__s
call fcn.004407e0
add esp, 8
mov esi, dword [ebp - 0x218]
test edi, edi
jne 0x453b13
push dword [ebp - 0x228]
push str.Closing:__s
call fcn.004407e0
add esp, 8
mov eax, dword [ebp - 0x238]
test eax, eax
je 0x453b24
push eax
call dword [0x5404d0]
push dword [ebp - 0x22c]
call dword [0x5404d0]
mov eax, dword [ebp - 0x23c]
cmp eax, 0xffffffff
je 0x453b46
test eax, eax
je 0x453b46
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x21c]
call fcn.004998ec
add esp, 4
push esi
call fcn.004998ec
add esp, 4
push ebx
call fcn.004998ec
mov ecx, dword [ebp - 8]
add esp, 4
mov eax, dword [ebp - 0x240]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00491940
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x230]
test edi, edi
jne 0x453b9b
push esi
push dword [ebp - 0x224]
push str.Extracting:__s__From__s_
call fcn.004407e0
add esp, 0xc
test esi, esi
mov eax, str._NULL_
mov ecx, str._1_.xml
cmovne eax, esi
lea ebx, [ebx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x453bd0
test dl, dl
je 0x453bcc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x453bd0
add eax, 2
add ecx, 2
test dl, dl
jne 0x453bb0
xor eax, eax
jmp 0x453bd5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x453c82
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x244]
push eax
push dword [ebp - 0x22c]
call dword [0x5404b8]
test eax, eax
je 0x453c72
cmp dword [ebp - 0x220], 0
je 0x453c72
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x23c], eax
cmp eax, 0xffffffff
je 0x453c4c
push 0
lea ecx, [ebp - 0x220]
push ecx
push dword [ebp - 0x220]
push dword [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x453ce3
test edi, edi
jne 0x453af6
call fcn.00440bb0
push eax
push str.__Could_not_extract_file:__s
call fcn.004407e0
mov esi, dword [ebp - 0x218]
add esp, 8
jmp 0x453b00
call fcn.00440bb0
push eax
push str.__Could_not_access_WIM_info:__s
jmp 0x453aee
push dword [ebp - 0x234]
push dword [ebp - 0x22c]
call dword [0x53ffcc]
mov dword [ebp - 0x238], eax
test eax, eax
jne 0x453cae
call fcn.00440bb0
push eax
push str.__Could_not_set_index:__s
jmp 0x453aee
mov esi, dword [ebp - 0x218]
push 0
push ebx
push esi
push eax
call dword [0x5401d8]
test eax, eax
jne 0x453ce9
test edi, edi
jne 0x453b13
call fcn.00440bb0
push eax
push str.__Could_not_extract_file:__s
call fcn.004407e0
add esp, 8
jmp 0x453afc
mov esi, dword [ebp - 0x218]
mov dword [ebp - 0x240], 1
jmp 0x453afc