Function at 0x403e30
Capabilities:
Get file version info
Link many functions at runtime
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x484342
mov eax, dword fs:[0]
push eax
mov eax, 0x1070
call fcn.004839d0
mov eax, dword [0x4ab00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi + 0x60], 0
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x1064], eax
je 0x403e80
mov eax, 3
jmp 0x404742
mov eax, dword [ebp + 0x18]
mov byte [esi + 0x60], 0
sub eax, 0
je 0x403ea3
sub eax, 1
je 0x403e9a
mov dword [esi + 0x6c], 2
jmp 0x403eaa
mov dword [esi + 0x6c], 1
jmp 0x403eaa
mov dword [esi + 0x6c], 0
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x70], 0
mov byte [esi + 0x74], 0
mov dword [esi], 0
mov dword [esi + 0x78], 0
mov dword [esi + 0x64], eax
mov dword [esi + 0x68], 0x8000000
mov edx, dword [esi + 0x84]
push ecx
mov ecx, dword [esi + 0x80]
call fcn.0040afa0
mov eax, dword [esi + 0x80]
add esp, 4
mov dword [esi + 0x84], eax
lea eax, [esi + 0x1c]
mov dword [esi + 0x8c], 0
cmp dword [eax + 0x14], 8
mov dword [eax + 0x10], 0
jb 0x403f0c
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
test byte [esi + 0x64], 0x10
je 0x403f1a
mov dword [esi + 0x68], ecx
cmp dword [esi + 0x48], 8
lea ebx, [esi + 0x34]
mov dword [ebx + 0x10], ecx
mov eax, ebx
jb 0x403f2a
mov eax, dword [ebx]
xor ecx, ecx
mov word [eax], cx
test edi, edi
je 0x403f6e
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403f40
sub ecx, edx
sar ecx, 1
je 0x403f6e
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403f56
sub ecx, edx
sar ecx, 1
push ecx
push edi
mov ecx, ebx
call fcn.00402430
mov edx, dword [ebp - 0x1064]
test edx, edx
jne 0x403fc9
push 0x208
push edx
lea eax, [ebp - 0x21c]
push eax
call fcn.0046dcc0
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x104
push eax
push 0x491f44
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403fb0
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
jmp 0x403fe1
mov ecx, edx
lea edi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403fd0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea edi, [esi + 4]
mov ecx, edi
call fcn.00402430
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
cmp dword [esi + 0x14], 0
mov byte [ebp - 0x1059], 0
je 0x4040ac
push str.dism.exe
mov ecx, esi
call fcn.00404780
test al, al
je 0x4040ac
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x404036
mov eax, dword [edi]
push eax
lea eax, [ebp - 0x814]
push str._sdism.exe
push eax
call fcn.0040a7d0
add esp, 0xc
lea eax, [ebp - 0x1050]
push eax
lea eax, [ebp - 0x814]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x1064], eax
test eax, eax
je 0x4040ac
push eax
call fcn.00474e96
add esp, 4
mov dword [ebp - 0x1060], eax
test eax, eax
je 0x4040ac
push eax
push dword [ebp - 0x1064]
lea eax, [ebp - 0x814]
push dword [ebp - 0x1050]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x40415e
push dword [ebp - 0x1060]
call fcn.00474e91
add esp, 4
push str.dism.exe
mov ecx, esi
call fcn.00404780
mov byte [ebp - 0x1059], al
cmp byte [ebp + 0x10], 0
jne 0x404727
mov cl, byte [esi + 0x4c]
cmp cl, 6
ja 0x4040e0
jne 0x404727
cmp byte [esi + 0x4d], 1
jb 0x404727
push str.dismapi.dll
mov ecx, esi
call fcn.00404780
test al, al
mov al, byte [ebp - 0x1059]
je 0x40472d
test al, al
je 0x40472d
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x40410c
mov eax, dword [edi]
push eax
lea eax, [ebp - 0xc24]
push str._sdismapi.dll
push eax
call fcn.0040a7f0
add esp, 0xc
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x40412b
mov eax, dword [edi]
push eax
lea eax, [ebp - 0x1034]
push 0x491fa8
push eax
call fcn.0040a7f0
mov eax, dword [esi + 0x64]
add esp, 0xc
test al, 1
jne 0x4041d1
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [ebp - 0x1064], eax
mov eax, dword [esi + 0x64]
jmp 0x4041dd
lea eax, [ebp - 0x1054]
push eax
lea eax, [ebp - 0x1058]
push eax
push 0x491f40
push dword [ebp - 0x1060]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4041aa
mov ecx, dword [ebp - 0x1058]
mov byte [ebp - 0x1059], 1
movzx eax, word [ecx + 0xa]
mov dword [esi + 0x50], eax
movzx eax, word [ecx + 8]
mov dword [esi + 0x54], eax
movzx eax, word [ecx + 0xe]
mov dword [esi + 0x58], eax
movzx eax, word [ecx + 0xc]
mov dword [esi + 0x5c], eax
push dword [ebp - 0x1060]
call fcn.00474e91
add esp, 4
cmp byte [ebp - 0x1059], 0
je 0x4040ac
mov byte [ebp - 0x1059], 1
jmp 0x4040be
mov ecx, dword [ebp - 0x1054]
mov dword [ebp - 0x1064], ecx
test al, 2
jne 0x40432f
push 0x1000
call fcn.00474e96
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40432c
push 0x800
push ebx
push str.PATH
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 0x1060], eax
cmp eax, 0x1000
jbe 0x404256
push ebx
call fcn.00474e91
mov eax, dword [ebp - 0x1060]
add esp, 4
add eax, eax
push eax
call fcn.00474e96
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x404323
mov ecx, dword [ebp - 0x1060]
lea eax, [ecx + ecx]
shr eax, 1
push eax
push ebx
push str.PATH
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
xor eax, eax
mov dword [ebp - 0x103c], 0
mov dword [ebp - 0x1038], 7
mov word [ebp - 0x104c], ax
push edi
lea ecx, [ebp - 0x104c]
mov dword [ebp - 4], eax
call fcn.004021e0
push 1
push 0x491fbc
lea ecx, [ebp - 0x104c]
call fcn.0040a760
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4042a0
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x104c]
call fcn.0040a760
cmp dword [ebp - 0x1038], 8
lea eax, [ebp - 0x104c]
cmovae eax, dword [ebp - 0x104c]
push eax
push str.PATH
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x1038]
cmp edx, 8
jb 0x404323
mov ecx, dword [ebp - 0x104c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404319
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404767
push edx
push ecx
call fcn.0046ba31
add esp, 8
push ebx
call fcn.00474e91
add esp, 4
lea ebx, [esi + 0x34]
test byte [esi + 0x64], 4
lea eax, [ebp - 0xc24]
je 0x404344
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x40434f
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test byte [esi + 0x64], 1
mov dword [esi + 0x78], eax
jne 0x404364
push dword [ebp - 0x1064]
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov eax, dword [esi + 0x78]
test eax, eax
jne 0x404435
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea eax, [ebp - 0x1070]
push 0x3f6
push eax
call fcn.0046cd70
mov edx, 0x491dd8
push edi
mov ecx, dword [eax]
test ecx, ecx
lea eax, [ebp - 0xdc]
cmovne edx, ecx
push edx
push eax
call fcn.0040a810
add esp, 0x14
push dword [ebp - 0x1068]
call fcn.0046bc3a
add esp, 4
push dword [ebp - 0x1070]
call fcn.0046bc3a
add esp, 4
lea eax, [ebp - 0xdc]
lea ecx, [ebp - 0x107c]
push eax
call fcn.00402270
lea eax, [ebp - 0x107c]
mov dword [ebp - 4], 1
push eax
lea ecx, [esi + 0x80]
call fcn.0040a370
mov edx, dword [ebp - 0x1068]
cmp edx, 8
jb 0x404727
mov ecx, dword [ebp - 0x107c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404426
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40476c
push edx
push ecx
call fcn.0046ba31
add esp, 8
jmp 0x404727
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.DismInitialize
push eax
call edi
push str.DismMountImage
mov dword [0x4ac904], eax
push dword [esi + 0x78]
call edi
push str.DismOpenSession
mov dword [0x4ac900], eax
push dword [esi + 0x78]
call edi
push str.DismCommitImage
mov dword [0x4ac8fc], eax
push dword [esi + 0x78]
call edi
push str.DismCloseSession
mov dword [0x4ac8f8], eax
push dword [esi + 0x78]
call edi
push str.DismUnmountImage
mov dword [0x4ac8f4], eax
push dword [esi + 0x78]
call edi
push str.DismShutdown
mov dword [0x4ac8f0], eax
push dword [esi + 0x78]
call edi
push str.DismGetMountedImageInfo
mov dword [0x4ac8ec], eax
push dword [esi + 0x78]
call edi
push str.DismCleanupMountpoints
mov dword [0x4ac8e8], eax
push dword [esi + 0x78]
call edi
push str.DismAddPackage
mov dword [0x4ac8e4], eax
push dword [esi + 0x78]
call edi
push str.DismAddDriver
mov dword [0x4ac8e0], eax
push dword [esi + 0x78]
call edi
push str.DismDelete
mov dword [0x4ac8dc], eax
push dword [esi + 0x78]
call edi
mov edi, dword [0x4ac904]
mov edx, eax
mov al, 1
mov dword [0x4ac8d8], edx
movzx ecx, al
xor eax, eax
test edi, edi
cmove ecx, eax
cmp dword [0x4ac900], eax
movzx ecx, cl
cmove ecx, eax
movzx eax, cl
xor ecx, ecx
cmp dword [0x4ac8fc], ecx
cmove eax, ecx
cmp dword [0x4ac8f8], ecx
movzx eax, al
cmove eax, ecx
cmp dword [0x4ac8f4], ecx
movzx eax, al
cmove eax, ecx
cmp dword [0x4ac8f0], ecx
movzx eax, al
cmove eax, ecx
cmp dword [0x4ac8ec], ecx
movzx eax, al
cmove eax, ecx
cmp dword [0x4ac8e8], ecx
movzx eax, al
cmove eax, ecx
cmp dword [0x4ac8e4], ecx
movzx eax, al
cmove eax, ecx
cmp dword [0x4ac8e0], ecx
movzx eax, al
cmove eax, ecx
cmp dword [0x4ac8dc], ecx
movzx eax, al
cmove eax, ecx
test edx, edx
je 0x40467d
test al, al
je 0x40467d
cmp dword [esi + 0x44], ecx
jne 0x404595
xor ebx, ebx
jmp 0x40459d
cmp dword [ebx + 0x14], 8
jb 0x40459d
mov ebx, dword [ebx]
push 0
push ebx
push dword [esi + 0x6c]
call edi
mov edi, eax
test edi, edi
jns 0x40466e
push dword [esi + 0x78]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 0x2e4
cmp di, ax
jne 0x4045cc
mov eax, 1
jmp 0x404742
lea eax, [ebp - 0x1070]
push 0x3f7
push eax
call fcn.0046cd70
add esp, 8
mov dword [ebp - 4], 2
mov ecx, 0x491dd8
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
push ecx
lea ecx, [ebp - 0x104c]
call fcn.00402270
lea eax, [ebp - 0x104c]
mov byte [ebp - 4], 3
push eax
lea ecx, [esi + 0x80]
call fcn.0040a370
mov edx, dword [ebp - 0x1038]
cmp edx, 8
jb 0x404655
mov ecx, dword [ebp - 0x104c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40464b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404771
push edx
push ecx
call fcn.0046ba31
add esp, 8
push dword [ebp - 0x1068]
call fcn.0046bc3a
add esp, 4
push dword [ebp - 0x1070]
jmp 0x40471f
mov byte [esi + 0x60], 1
mov dword [esi], 1
jmp 0x404727
push dword [esi + 0x78]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x1040]
push 0x3f8
push eax
call fcn.0046cd70
add esp, 8
mov dword [ebp - 4], 4
mov ecx, 0x491dd8
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
push ecx
lea ecx, [ebp - 0x107c]
call fcn.00402270
lea eax, [ebp - 0x107c]
mov byte [ebp - 4], 5
push eax
lea ecx, [esi + 0x80]
call fcn.0040a370
mov edx, dword [ebp - 0x1068]
cmp edx, 8
jb 0x40470b
mov ecx, dword [ebp - 0x107c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404701
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404776
push edx
push ecx
call fcn.0046ba31
add esp, 8
push dword [ebp - 0x1038]
call fcn.0046bc3a
add esp, 4
push dword [ebp - 0x1040]
call fcn.0046bc3a
add esp, 4
mov al, byte [ebp - 0x1059]
cmp dword [esi], 0
jne 0x404740
test al, al
je 0x404760
mov dword [esi], 2
mov byte [esi + 0x60], 1
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0046b9f0
mov esp, ebp
pop ebp
ret 0x14
mov eax, 8
jmp 0x404742
call fcn.00471513
call fcn.00471513
call fcn.00471513
call fcn.00471513
int3