Function at 0x450f4d
Capabilities:
Contain obfuscated stackstrings
Get common file path
Write file on windows

Disassembly:
push ebp
xor eax, eax
mov ecx, 0x41
mov ebp, esp
push edi
xor edi, edi
push esi
push ebx
sub esp, 0x15c
mov dword [ebp - 0x124], edi
lea edi, [ebp - 0x11c]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
call fcn.0044ebdc
cmp dword [0x52b080], 0
mov dword [ebp - 0x134], eax
jne 0x450fcb
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 esi
push esi
mov dword [0x52b080], eax
test eax, eax
jne 0x450fcb
call fcn.0043f53d
mov dword [esp + 8], str.Wimgapi
mov dword [esp + 0xc], eax
mov dword [esp + 4], str.WIMCreateFile
jmp 0x45105d
cmp dword [0x52b064], 0
jne 0x451015
mov eax, str.Wimgapi
call fcn.0044e729
mov dword [esp + 4], str.WIMGetImageInformation
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push ebx
push ebx
mov dword [0x52b064], eax
test eax, eax
jne 0x451015
call fcn.0043f53d
mov dword [esp + 8], str.Wimgapi
mov dword [esp + 0xc], eax
mov dword [esp + 4], str.WIMGetImageInformation
jmp 0x45105d
cmp dword [0x52b060], 0
jne 0x45106e
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 ecx
push ecx
mov dword [0x52b060], eax
test eax, eax
jne 0x45106e
call fcn.0043f53d
mov dword [esp + 8], str.Wimgapi
mov dword [esp + 0xc], eax
mov dword [esp + 4], str.WIMCloseHandle
mov dword [esp], 0x4b4003
call fcn.0043efa9
jmp 0x45137f
cmp dword [ebp + 0xc], 0
je 0x45137f
xor edx, edx
xor eax, eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], edx
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 - 0x134]
mov dword [esp], eax
call dword [0x52b080]
mov dword [ebp - 0x12c], eax
sub esp, 0x18
test eax, eax
jne 0x4510de
call fcn.0043f53d
mov dword [esp], str.__Could_not_access_image:__s
mov dword [esp + 4], eax
call fcn.0043efa9
jmp 0x45137f
lea eax, [ebp - 0x124]
mov dword [esp + 8], eax
lea eax, [ebp - 0x120]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x12c]
mov dword [esp], eax
call dword [0x52b064]
sub esp, 0xc
test eax, eax
je 0x451111
cmp dword [ebp - 0x124], 0
jne 0x45112d
call fcn.0043f53d
mov dword [esp], str.__Could_not_access_WIM_info:__s
xor ebx, ebx
mov dword [esp + 4], eax
call fcn.0043efa9
jmp 0x45137b
mov eax, 0x5267e0
call fcn.0044ebdc
mov edi, eax
mov eax, 0x4b3f45
call fcn.0044ebdc
mov dword [ebp - 0x130], eax
mov dword [esp + 4], 2
mov dword [esp], 0x104
call sub.msvcrt.dll_calloc
mov dword [esp + 0xc], eax
mov esi, eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x130]
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.DLL_GetTempFileNameW]
mov ebx, eax
mov eax, dword [sym.imp.KERNEL32.DLL_GetLastError]
sub esp, 0x10
mov dword [ebp - 0x13c], eax
call eax
mov dword [ebp - 0x138], eax
test ebx, ebx
je 0x4511ea
xor eax, eax
mov dword [esp + 0x14], 0x104
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
lea eax, [ebp - 0x11c]
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], 0xfde9
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
sub esp, 0x20
mov ebx, eax
test eax, eax
jne 0x4511ea
mov eax, dword [ebp - 0x13c]
call eax
mov dword [ebp - 0x138], eax
test esi, esi
je 0x4511f6
mov dword [esp], esi
call sub.msvcrt.dll_free
cmp dword [ebp - 0x130], 0
je 0x45120d
mov eax, dword [ebp - 0x130]
mov dword [esp], eax
call sub.msvcrt.dll_free
test edi, edi
je 0x451219
mov dword [esp], edi
call sub.msvcrt.dll_free
mov eax, dword [ebp - 0x138]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_SetLastError]
push eax
test ebx, ebx
je 0x451236
cmp byte [ebp - 0x11c], 0
jne 0x45125e
mov dword [ebp - 0x118], 0x6d585666
mov dword [ebp - 0x11c], 0x75525c2e
mov dword [ebp - 0x116], 0x2e6c6d58
mov dword [ebp - 0x112], 0x706d74
lea eax, [ebp - 0x11c]
xor edi, edi
call fcn.0044fdbb
lea eax, [ebp - 0x11c]
call fcn.0044ebdc
mov dword [esp + 0x18], edi
mov esi, eax
xor eax, eax
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 0xc0000000
mov dword [esp], esi
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
sub esp, 0x1c
mov ebx, eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
test esi, esi
je 0x4512c4
mov dword [esp], esi
call sub.msvcrt.dll_free
mov dword [esp], edi
call dword [sym.imp.KERNEL32.DLL_SetLastError]
push esi
cmp ebx, 0xffffffff
je 0x45137b
xor ecx, ecx
lea eax, [ebp - 0x124]
mov esi, 1
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x124]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x120]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
sub esp, 0x14
test eax, eax
je 0x45137b
lea eax, [ebp - 0x11c]
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], 0x4b4915
call fcn.00427fbf
test eax, eax
je 0x45137b
mov dword [esp], eax
call sub.msvcrt.dll_atoi
cmp eax, dword [ebp + 0xc]
je 0x45133e
inc esi
jmp 0x451310
mov esi, 1
mov eax, dword [ebp - 0x12c]
mov dword [esp], eax
call dword [0x52b060]
lea eax, [ebx - 1]
push edx
cmp eax, 0xfffffffd
ja 0x451365
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push eax
cmp byte [ebp - 0x11c], 0
je 0x451383
lea eax, [ebp - 0x11c]
call fcn.0044fdbb
jmp 0x451383
xor esi, esi
jmp 0x451343
xor esi, esi
jmp 0x451365
mov eax, dword [ebp - 0x134]
mov dword [esp], eax
call sub.msvcrt.dll_free
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret