Function at 0x461e20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x5512ec]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x110]
mov dword [ebp - 0x11c], 0
push 0
push eax
mov edi, ecx
mov dword [ebp - 0x118], 0
mov ebx, 1
call fcn.004ab0f0
add esp, 0xc
test edi, edi
je 0x461ed7
cmp byte [edi], 0
jne 0x461e7f
push 2
push ebx
call fcn.004b6706
add esp, 8
mov esi, eax
jmp 0x461ed9
push 0
push 0
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x114], eax
cmp eax, 1
jle 0x461ed7
push 2
push eax
call fcn.004b6706
mov esi, eax
add esp, 8
test esi, esi
je 0x461ed7
push dword [ebp - 0x114]
push esi
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, dword [ebp - 0x114]
je 0x461ed9
push esi
call fcn.004d1211
add esp, 4
xor esi, esi
cmp dword [0x59fdd8], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
jne 0x461f29
push str.WIMCreateFile
push ecx
mov ecx, str.Wimgapi
call fcn.0045f020
add esp, 4
push eax
call edi
mov dword [0x59fdd8], eax
test eax, eax
jne 0x461f29
call fcn.0044b6b0
push eax
push str.Wimgapi
push str.WIMCreateFile
push str.Unable_to_locate__s___in__s.dll:__s
call fcn.0044b0b0
add esp, 0x10
jmp 0x462170
cmp dword [0x59fea0], 0
jne 0x461f73
push str.WIMGetImageInformation
push ecx
mov ecx, str.Wimgapi
call fcn.0045f020
add esp, 4
push eax
call edi
mov dword [0x59fea0], eax
test eax, eax
jne 0x461f73
call fcn.0044b6b0
push eax
push str.Wimgapi
push str.WIMGetImageInformation
push str.Unable_to_locate__s___in__s.dll:__s
call fcn.0044b0b0
add esp, 0x10
jmp 0x462170
cmp dword [0x59feb8], 0
jne 0x461fbd
push str.WIMCloseHandle
push ecx
mov ecx, str.Wimgapi
call fcn.0045f020
add esp, 4
push eax
call edi
mov dword [0x59feb8], eax
test eax, eax
jne 0x461fbd
call fcn.0044b6b0
push eax
push str.Wimgapi
push str.WIMCloseHandle
push str.Unable_to_locate__s___in__s.dll:__s
call fcn.0044b0b0
add esp, 0x10
jmp 0x462170
cmp dword [0x5a3050], 0xe0000
push 0
sbb eax, eax
push 0
and eax, 0xe0000000
add eax, 0x20000000
push eax
push 3
push 0x80000000
push esi
call dword [0x59fdd8]
mov edi, eax
test edi, edi
jne 0x462004
call fcn.0044b6b0
push eax
push str.__Could_not_access_image:__s
call fcn.0044b0b0
add esp, 8
jmp 0x462170
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x120]
push eax
push edi
call dword [0x59fea0]
test eax, eax
je 0x462156
cmp dword [ebp - 0x118], 0
je 0x462156
lea eax, [ebp - 0x110]
push eax
push ecx
call fcn.0045f3e0
add esp, 8
test eax, eax
je 0x46204b
cmp byte [ebp - 0x110], 0
jne 0x46207a
mov eax, dword [0x5451d4]
movq xmm0, qword [str..RufVXml.tmp]
mov dword [ebp - 0x108], eax
mov ax, word [0x5451d8]
mov word [ebp - 0x104], ax
movq qword [ebp - 0x110], xmm0
mov byte [ebp - 0x103], 0
lea ecx, [ebp - 0x110]
call fcn.0045f2f0
sub esp, 8
lea ecx, [ebp - 0x110]
mov edx, 0xc0000000
push 2
sub esp, 8
call fcn.0045f230
add esp, 0x14
mov dword [ebp - 0x114], eax
cmp eax, 0xffffffff
je 0x462137
push 0
lea ecx, [ebp - 0x118]
push ecx
push dword [ebp - 0x118]
push dword [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x462137
push 1
lea edx, [ebp - 0x110]
mov ecx, str.IMAGE_INDEX
call fcn.004249f0
add esp, 4
test eax, eax
je 0x462137
push eax
call fcn.004e83cb
add esp, 4
cmp eax, 2
je 0x46211e
inc ebx
lea edx, [ebp - 0x110]
push ebx
mov ecx, str.IMAGE_INDEX
call fcn.004249f0
add esp, 4
test eax, eax
jne 0x4620e8
push edi
call dword [0x59feb8]
mov eax, dword [ebp - 0x114]
jmp 0x462149
push edi
mov dword [ebp - 0x11c], 1
call dword [0x59feb8]
mov eax, dword [ebp - 0x114]
jmp 0x462149
push edi
call dword [0x59feb8]
mov eax, dword [ebp - 0x114]
cmp eax, 0xffffffff
je 0x462170
test eax, eax
je 0x462170
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x462170
call fcn.0044b6b0
push eax
push str.__Could_not_access_WIM_info:__s
call fcn.0044b0b0
add esp, 8
push edi
call dword [0x59feb8]
cmp byte [ebp - 0x110], 0
je 0x462184
lea ecx, [ebp - 0x110]
call fcn.0045f2f0
push esi
call fcn.004d1211
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, dword [ebp - 0x11c]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004a8b60
mov esp, ebp
pop ebp
ret