Function at 0x1004c19b
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x10086084]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
mov esi, ecx
xor ecx, ecx
mov dword [ebp - 0x3c], esi
push 0x44
push ecx
stosd dword es:[edi], eax
mov ebx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x2c], ecx
stosd dword es:[edi], eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x30], ecx
stosd dword es:[edi], eax
lea eax, [ebp - 0xa8]
push eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x34], ecx
call sub.msvcrt.dll_memset
xor eax, eax
lea edi, [ebp - 0x5c]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
test esi, esi
je 0x1004c67b
xor edi, edi
cmp word [esi], di
je 0x1004c67b
push esi
lea eax, [ebp - 0x2c]
push 0x10009f80
push eax
call fcn.1007ff3f
mov esi, eax
add esp, 0xc
test esi, esi
jns 0x1004c241
push esi
push 0x75
mov ecx, 0x10009f64
call fcn.1003a254
jmp 0x1004c4b7
mov ecx, dword [ebp - 0x3c]
lea edx, [ebp - 0x28]
call fcn.1003a0f3
mov esi, eax
test esi, esi
jns 0x1004c264
push esi
push 0x7c
mov ecx, 0x10009f64
call fcn.1003a254
jmp 0x1004c4a9
push edi
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x1004c2cc
cmp eax, 0xffffffff
jne 0x1004c2bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 0x80070000
test eax, eax
jle 0x1004c290
movzx eax, ax
or eax, edi
test eax, eax
jns 0x1004c2a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x1004c2aa
movzx esi, si
or esi, edi
jmp 0x1004c2aa
mov esi, 0x80004005
push esi
push 0x88
mov ecx, 0x10009f64
call fcn.1003a254
jmp 0x1004c4a7
mov esi, 0xc1420118
push esi
push 0x8c
jmp 0x1004c255
push edi
push edi
push 0x10009fa0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x18], edi
test edi, edi
je 0x1004c318
push 0x10009fbc
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x1004c318
push 0x10009fdc
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x1004c318
lea eax, [ebp - 0x44]
mov ecx, esi
push eax
call dword [0x10087410]
call esi
mov dword [ebp - 0x40], eax
or dword [ebp - 0x7c], 1
lea ecx, [ebp - 0x38]
xor eax, eax
mov dword [ebp - 0xa8], 0x44
mov word [ebp - 0x78], ax
call fcn.1004cccb
mov esi, eax
test esi, esi
jns 0x1004c34f
push esi
push 0xa9
mov ecx, 0x10009f64
call fcn.1003a254
jmp 0x1004c47f
lea ecx, [ebp - 0x30]
call fcn.1004ce2f
mov esi, eax
test esi, esi
jns 0x1004c365
push esi
push 0xae
jmp 0x1004c340
mov eax, dword [ebp - 0x38]
lea edi, [ebp - 0x14]
and dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x10], eax
mov eax, ebx
lea ecx, [ebp - 8]
cmp edi, ecx
jae 0x1004c434
test ebx, ebx
je 0x1004c3a3
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
neg eax
sbb eax, eax
not eax
and ebx, eax
mov dword [ebp - 0x20], ebx
mov ecx, dword [edi]
test ecx, ecx
je 0x1004c3d4
lea eax, [ebp - 0x20]
mov edx, str.wimserv.exe
push eax
call fcn.1003694f
mov esi, eax
test esi, esi
js 0x1004c469
mov ebx, dword [ebp - 0x20]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1004c426
test al, 0x10
jne 0x1004c426
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0xa8]
push eax
push dword [ebp - 0x30]
xor eax, eax
push eax
push 0x8000000
push eax
push eax
push eax
push dword [ebp - 0x2c]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x1004c429
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
mov ecx, ebx
test ebx, ebx
jne 0x1004c412
mov ecx, str.wimserv.exe
push eax
push ecx
push 0x1000a000
push 0x40000
call fcn.10039c80
add esp, 0x10
mov eax, dword [ebp - 0x1c]
add edi, 4
test eax, eax
je 0x1004c379
test eax, eax
jne 0x1004c569
mov eax, dword [ebp - 0x24]
mov ecx, eax
sub ecx, 0
je 0x1004c55c
dec ecx
sub ecx, 1
je 0x1004c55c
test eax, eax
je 0x1004c569
jg 0x1004c53e
mov esi, eax
jmp 0x1004c547
push esi
push 0xd0
mov ecx, 0x10009f64
call fcn.1003a254
mov ebx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x18]
cmp dword [ebp - 0x40], 0
je 0x1004c49c
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x1004c49c
push dword [ebp - 0x44]
mov ecx, eax
call dword [0x10087410]
mov eax, dword [ebp - 0x34]
call eax
test edi, edi
je 0x1004c4a7
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edi, edi
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x1004c4b7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x5c], 0
je 0x1004c4c6
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x58], 0
je 0x1004c4d5
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2c], 0
je 0x1004c4ec
push dword [ebp - 0x2c]
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebx, ebx
je 0x1004c4ff
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x1004c515
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x1004c52b
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10083b20
mov esp, ebp
pop ebp
ret
movzx esi, ax
or esi, 0x80070000
push esi
push 0xfe
mov ecx, 0x10009f64
call fcn.1003a254
jmp 0x1004c47c
mov esi, 0xc1420119
push esi
push 0xf9
jmp 0x1004c54d
push dword [ebp - 0x54]
push dword [ebp - 0x3c]
push 0x1000a058
push 0x20000
call fcn.10039c80
mov eax, dword [ebp - 0x28]
add esp, 0x10
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x4c]
push 0
push 0x493e0
push 0
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjectsEx]
cmp eax, 1
je 0x1004c602
cmp eax, 0x102
je 0x1004c5f2
cmp eax, 0xffffffff
jne 0x1004c47c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 0x80070000
test eax, eax
jle 0x1004c5cd
movzx eax, ax
or eax, edi
test eax, eax
jns 0x1004c5e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x1004c5e7
movzx esi, si
or esi, edi
jmp 0x1004c5e7
mov esi, 0x80004005
push esi
push 0x131
jmp 0x1004c54d
mov esi, 0xc142011a
push esi
push 0x110
jmp 0x1004c54d
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x1004c64e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 0x80070000
test eax, eax
jle 0x1004c629
movzx eax, ax
or eax, edi
test eax, eax
jns 0x1004c63e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x1004c643
movzx esi, si
or esi, edi
jmp 0x1004c643
mov esi, 0x80004005
push esi
push 0x11b
jmp 0x1004c54d
mov esi, dword [ebp - 0x24]
test esi, esi
jne 0x1004c665
mov esi, 0xc142011b
push esi
push 0x11f
jmp 0x1004c54d
jle 0x1004c670
movzx esi, si
or esi, 0x80070000
push esi
push 0x123
jmp 0x1004c54d
mov esi, 0x80004005
mov ecx, 0x10009f64
push esi
push 0x6f
call fcn.1003a254
mov edi, ebx
jmp 0x1004c47f