Function at 0x404b07
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfc
mov eax, dword [0x45b480]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov dword [ebp - 0xa0], ecx
mov ecx, str.wimgapi.dll
push edi
mov dword [ebp - 0x84], edx
call fcn.00413bc1
mov esi, eax
mov dword [ebp - 0xac], esi
test esi, esi
je 0x404bf7
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WIMCreateFile
push esi
call ebx
push str.WIMCloseHandle
push esi
mov dword [ebp - 0x8c], eax
call ebx
push str.WIMSetTemporaryPath
push esi
mov dword [ebp - 0x94], eax
call ebx
push str.WIMLoadImage
mov edi, eax
push esi
mov dword [ebp - 0xa4], edi
call ebx
push str.WIMGetImageInformation
push esi
mov dword [ebp - 0x88], eax
call ebx
mov edx, dword [ebp - 0x8c]
mov dword [ebp - 0xa8], eax
test edx, edx
je 0x404ef7
cmp dword [ebp - 0x94], 0
je 0x404ef7
test edi, edi
je 0x404ef7
cmp dword [ebp - 0x88], 0
je 0x404ef7
test eax, eax
je 0x404ef7
xor eax, eax
push eax
push eax
push eax
mov eax, dword [ebp - 0x84]
neg eax
push 3
sbb eax, eax
and eax, 0xc0000000
add eax, 0x40000000
push eax
push dword [ebp - 0xa0]
call edx
mov dword [ebp - 0x90], eax
test eax, eax
jne 0x404c03
call fcn.0041390d
mov ebx, eax
jmp 0x404efc
lea eax, [ebp - 0x94]
mov dword [ebp - 0x30], 0x44e7dc
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x28], ecx
push eax
lea ecx, [ebp - 0x80]
mov dword [ebp - 0xc], eax
call fcn.00411b06
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x404c43
mov edx, dword [ecx]
lea eax, [ebp - 0x30]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
call fcn.00402506
push eax
lea ecx, [ebp - 0x8c]
call fcn.00402331
lea ecx, [ebp - 0x8c]
call fcn.00413d87
mov edi, dword [ebp - 0x8c]
mov ebx, eax
test ebx, ebx
jne 0x404ee5
push edi
push dword [ebp - 0x90]
call dword [ebp - 0xa4]
test eax, eax
je 0x404c98
push 1
push dword [ebp - 0x90]
call dword [ebp - 0x88]
mov dword [ebp - 0x98], eax
test eax, eax
jne 0x404ca4
call fcn.0041390d
mov ebx, eax
jmp 0x404ee5
lea eax, [ebp - 0x94]
mov dword [ebp - 0x30], 0x44e7c4
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x28], ecx
push eax
lea ecx, [ebp - 0x58]
mov dword [ebp - 0xc], eax
call fcn.00411b06
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x404ce4
mov edx, dword [ecx]
lea eax, [ebp - 0x30]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
lea eax, [ebp - 0xfc]
push eax
lea eax, [ebp - 0x9c]
push eax
push dword [ebp - 0x98]
call dword [ebp - 0xa8]
test eax, eax
jne 0x404d0e
call fcn.0041390d
mov ebx, eax
jmp 0x404edd
xor ecx, ecx
lea eax, [ebp - 0xf8]
mov dword [ebp - 0xf8], ecx
mov dword [ebp - 0xf4], ecx
mov dword [ebp - 0xf0], ecx
mov dword [ebp - 0xec], ecx
mov dword [ebp - 0xe8], ecx
mov dword [ebp - 0xe4], eax
mov dword [ebp - 0xe0], ecx
mov dword [ebp - 0xdc], ecx
mov dword [ebp - 0xd8], ecx
mov dword [ebp - 0xd4], ecx
mov dword [ebp - 0xd0], ecx
mov dword [ebp - 0xcc], ecx
mov dword [ebp - 0xc8], ecx
mov dword [ebp - 0xc4], ecx
mov dword [ebp - 0xbc], ecx
mov dword [ebp - 0xc0], ecx
call fcn.00402506
push eax
lea ecx, [ebp - 0xb8]
call fcn.00402331
push ecx
mov ecx, esp
push dword [ebp - 0x9c]
call fcn.00401e23
lea ecx, [ebp - 0xf8]
call fcn.0040cab4
push dword [ebp - 0x9c]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
test ebx, ebx
jne 0x404ec4
mov edx, str.IMAGE
lea ecx, [ebp - 0xf8]
call fcn.00414985
cmp dword [ebp - 0x84], 0
mov ebx, eax
jne 0x404e70
push str.WIMSetImageInformation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
jne 0x404df1
mov ebx, 0x80004002
jmp 0x404ec4
push ecx
mov ecx, ebx
call fcn.00414ab5
push ecx
lea ecx, [ebp - 0x84]
call fcn.0040cc24
push 0
push 1
lea edx, [ebp - 0xf8]
lea ecx, [ebp - 0x84]
call fcn.004119ea
mov eax, dword [ebp - 0x84]
pop ecx
pop ecx
cmp dword [eax - 4], 1
mov ebx, dword [eax - 0xc]
jle 0x404e3d
push ebx
lea ecx, [ebp - 0x84]
call fcn.00401f75
mov eax, dword [ebp - 0x84]
lea ecx, [ebx + ebx]
push ecx
push eax
push dword [ebp - 0x98]
call esi
test eax, eax
jne 0x404e65
call fcn.0041390d
mov ecx, dword [ebp - 0x84]
mov ebx, eax
lea ecx, [ecx - 0x10]
call fcn.004025d7
jmp 0x404ec4
mov ecx, dword [ebp - 0x84]
lea ecx, [ecx - 0x10]
jmp 0x404ebd
call fcn.00402506
push eax
lea ecx, [ebp - 0x88]
call fcn.00402331
lea eax, [ebp - 0x88]
mov ecx, ebx
push eax
call fcn.00414b18
mov esi, dword [ebp - 0x88]
pop ecx
test eax, eax
je 0x404e9e
xor eax, eax
jmp 0x404eb2
push 0xa
push 0
push esi
call dword [sym.imp.msvcrt.dll_wcstoul]
add esp, 0xc
cmp eax, 6
sbb eax, eax
inc eax
mov ecx, dword [ebp - 0x84]
mov dword [ecx], eax
lea ecx, [esi - 0x10]
call fcn.004025d7
xor ebx, ebx
mov ecx, dword [ebp - 0xb8]
lea ecx, [ecx - 0x10]
call fcn.004025d7
lea ecx, [ebp - 0xc4]
call fcn.0040ce71
lea ecx, [ebp - 0x58]
call fcn.00411ad6
lea ecx, [edi - 0x10]
call fcn.004025d7
lea ecx, [ebp - 0x80]
call fcn.00411ad6
jmp 0x404efc
mov ebx, 0x80004002
lea ecx, [ebp - 0xac]
call fcn.00411b4e
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004488a4
leave
ret