Function at 0x461430
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 [0x5512ec]
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.004ab0f0
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
add esp, 0xc
test esi, esi
je 0x461518
cmp byte [esi], 0
jne 0x4614c7
push 2
push 1
call fcn.004b6706
add esp, 8
mov dword [ebp - 0x21c], eax
jmp 0x461522
push 0
push 0
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call edi
mov esi, eax
cmp esi, 1
jle 0x461518
push 2
push esi
call fcn.004b6706
add esp, 8
mov dword [ebp - 0x21c], eax
test eax, eax
je 0x461518
push esi
push eax
push 0xffffffffffffffff
push dword [ebp - 0x228]
push 0
push 0xfde9
call edi
cmp eax, esi
je 0x461522
push dword [ebp - 0x21c]
call fcn.004d1211
add esp, 4
mov dword [ebp - 0x21c], 0
test ebx, ebx
je 0x46158c
cmp byte [ebx], 0
jne 0x46153f
push 2
push 1
call fcn.004b6706
add esp, 8
mov dword [ebp - 0x218], eax
jmp 0x461596
push 0
push 0
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call edi
mov esi, eax
cmp esi, 1
jle 0x46158c
push 2
push esi
call fcn.004b6706
add esp, 8
mov dword [ebp - 0x218], eax
test eax, eax
je 0x46158c
push esi
push eax
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call edi
cmp eax, esi
je 0x461596
mov esi, dword [ebp - 0x218]
push esi
call fcn.004d1211
add esp, 4
mov dword [ebp - 0x218], 0
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x4615fd
cmp byte [eax], 0
jne 0x4615b5
push 2
push 1
call fcn.004b6706
add esp, 8
mov ebx, eax
jmp 0x4615ff
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call edi
mov esi, eax
cmp esi, 1
jle 0x4615fd
push 2
push esi
call fcn.004b6706
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4615fd
push esi
push ebx
push 0xffffffffffffffff
push dword [ebp - 0x224]
push 0
push 0xfde9
call edi
cmp eax, esi
je 0x4615ff
push ebx
call fcn.004d1211
add esp, 4
xor ebx, ebx
cmp dword [0x59fdd8], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
jne 0x461655
push str.WIMCreateFile
push ecx
mov ecx, str.Wimgapi
call fcn.0045f020
add esp, 4
push eax
call esi
mov dword [0x59fdd8], eax
test eax, eax
jne 0x461655
call fcn.0044b6b0
push eax
push str.Wimgapi
push str.WIMCreateFile
push str.Unable_to_locate__s___in__s.dll:__s
call fcn.0044b0b0
mov esi, dword [ebp - 0x218]
add esp, 0x10
jmp 0x461866
cmp dword [0x59feb0], 0
jne 0x46168f
push str.WIMSetTemporaryPath
push ecx
mov ecx, str.Wimgapi
call fcn.0045f020
add esp, 4
push eax
call esi
mov dword [0x59feb0], eax
test eax, eax
jne 0x46168f
call fcn.0044b6b0
push eax
push str.Wimgapi
push str.WIMSetTemporaryPath
jmp 0x46163d
cmp dword [0x59f9a4], 0
jne 0x4616cc
push str.WIMLoadImage
push ecx
mov ecx, str.Wimgapi
call fcn.0045f020
add esp, 4
push eax
call esi
mov dword [0x59f9a4], eax
test eax, eax
jne 0x4616cc
call fcn.0044b6b0
push eax
push str.Wimgapi
push str.WIMLoadImage
jmp 0x46163d
cmp dword [0x59fbb0], 0
jne 0x461709
push str.WIMExtractImagePath
push ecx
mov ecx, str.Wimgapi
call fcn.0045f020
add esp, 4
push eax
call esi
mov dword [0x59fbb0], eax
test eax, eax
jne 0x461709
call fcn.0044b6b0
push eax
push str.Wimgapi
push str.WIMExtractImagePath
jmp 0x46163d
cmp dword [0x59feb8], 0
jne 0x461746
push str.WIMCloseHandle
push ecx
mov ecx, str.Wimgapi
call fcn.0045f020
add esp, 4
push eax
call esi
mov dword [0x59feb8], eax
test eax, eax
jne 0x461746
call fcn.0044b6b0
push eax
push str.Wimgapi
push str.WIMCloseHandle
jmp 0x46163d
mov edi, dword [ebp + 0x10]
test edi, edi
jne 0x461766
push dword [ebp - 0x234]
push dword [ebp - 0x228]
push str.Opening:__s:__d___API_
call fcn.0044b0b0
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x46179a
call fcn.0044b6b0
push eax
push str.__Could_not_fetch_temp_path:__s
call fcn.0044b0b0
mov esi, dword [ebp - 0x218]
add esp, 8
jmp 0x461866
cmp dword [0x5a3050], 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 [0x59fdd8]
mov dword [ebp - 0x22c], eax
test eax, eax
jne 0x4617ed
call fcn.0044b6b0
push eax
push str.__Could_not_access_image:__s
call fcn.0044b0b0
mov esi, dword [ebp - 0x218]
add esp, 8
jmp 0x461866
lea ecx, [ebp - 0x214]
push ecx
push eax
call dword [0x59feb0]
test eax, eax
jne 0x46189d
call fcn.0044b6b0
push eax
push str.__Could_not_set_temp_path:__s
call fcn.0044b0b0
add esp, 8
mov esi, dword [ebp - 0x218]
test edi, edi
jne 0x461833
push dword [ebp - 0x228]
push str.Closing:__s
call fcn.0044b0b0
add esp, 8
mov eax, dword [ebp - 0x238]
test eax, eax
je 0x461844
push eax
call dword [0x59feb8]
push dword [ebp - 0x22c]
call dword [0x59feb8]
mov eax, dword [ebp - 0x23c]
cmp eax, 0xffffffff
je 0x461866
test eax, eax
je 0x461866
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x21c]
call fcn.004d1211
add esp, 4
push esi
call fcn.004d1211
add esp, 4
push ebx
call fcn.004d1211
mov ecx, dword [ebp - 8]
add esp, 4
mov eax, dword [ebp - 0x240]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004a8b60
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x230]
test edi, edi
jne 0x4618bb
push esi
push dword [ebp - 0x224]
push str.Extracting:__s__From__s_
call fcn.0044b0b0
add esp, 0xc
test esi, esi
mov eax, str._NULL_
mov ecx, str._1_.xml
cmovne eax, esi
nop word [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4618f0
test dl, dl
je 0x4618ec
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4618f0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4618d0
xor eax, eax
jmp 0x4618f5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4619a2
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x244]
push eax
push dword [ebp - 0x22c]
call dword [0x59fea0]
test eax, eax
je 0x461992
cmp dword [ebp - 0x220], 0
je 0x461992
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 0x46196c
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 0x461a03
test edi, edi
jne 0x461816
call fcn.0044b6b0
push eax
push str.__Could_not_extract_file:__s
call fcn.0044b0b0
mov esi, dword [ebp - 0x218]
add esp, 8
jmp 0x461820
call fcn.0044b6b0
push eax
push str.__Could_not_access_WIM_info:__s
jmp 0x46180e
push dword [ebp - 0x234]
push dword [ebp - 0x22c]
call dword [0x59f9a4]
mov dword [ebp - 0x238], eax
test eax, eax
jne 0x4619ce
call fcn.0044b6b0
push eax
push str.__Could_not_set_index:__s
jmp 0x46180e
mov esi, dword [ebp - 0x218]
push 0
push ebx
push esi
push eax
call dword [0x59fbb0]
test eax, eax
jne 0x461a09
test edi, edi
jne 0x461833
call fcn.0044b6b0
push eax
push str.__Could_not_extract_file:__s
call fcn.0044b0b0
add esp, 8
jmp 0x46181c
mov esi, dword [ebp - 0x218]
mov dword [ebp - 0x240], 1
jmp 0x46181c