Function at 0x10048ec
Capabilities:
Check if file exists
Create process on windows
Enumerate gui resources
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x308
mov eax, dword [0x100e004]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x11
mov esi, ecx
pop ecx
mov dword [ebp - 0x2b0], eax
xor eax, eax
lea edi, [ebp - 0x308]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.WINMM.dll_mixerGetID]
push 0x20000000
lea eax, [ebp - 0x2ac]
push eax
push dword [esi + 0x1d8]
xor ebx, ebx
mov dword [ebp - 0x2a4], esi
mov dword [ebp - 0x308], 0x44
mov dword [ebp - 0x2a8], ebx
mov dword [ebp - 0x2ac], ebx
call edi
test eax, eax
jne 0x1004bac
push 0x10000000
lea eax, [ebp - 0x2a8]
push eax
push dword [esi + 0x1dc]
call edi
test eax, eax
jne 0x1004bac
push 0x104
lea eax, [ebp - 0x290]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x290]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
cmp word [ebp + eax*2 - 0x292], 0x5c
pop ecx
je 0x10049ac
mov word [ebp + eax*2 - 0x290], 0x5c
inc eax
mov edi, 0x103
mov ecx, edi
sub ecx, eax
push ecx
mov word [ebp + eax*2 - 0x290], bx
lea eax, [ebp - 0x290]
push 0x10017b4
push eax
call dword [sym.imp.msvcrt.dll_wcsncat]
add esp, 0xc
cmp dword [ebp + 0xc], ebx
lea eax, [ebp - 0x84]
je 0x10049fb
push dword [ebp - 0x2ac]
push 0x1001788
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0xc
add esi, 0x1b8
jmp 0x1004a16
push dword [ebp - 0x2a8]
push 0x1001760
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0xc
add esi, 0x1c8
mov eax, dword [esi]
cmp eax, ebx
je 0x1004a9b
lea ecx, [ebp - 0x2b4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x1004a76
cmp dword [ebp - 0x2b4], edi
jne 0x1004a65
lea eax, [ebp - 0x2a0]
push eax
push 0x10047a2
mov dword [ebp - 0x2a0], esi
mov dword [ebp - 0x294], ebx
mov dword [ebp - 0x29c], ebx
mov dword [ebp - 0x298], ebx
call dword [sym.imp.USER32.dll_EnumWindows]
jmp 0x1004bac
push dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [esi + 4]
call edi
jmp 0x1004a8b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1001738
push ebx
call fcn.0100be32
add esp, 0xc
xor eax, eax
mov edi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
cmp dword [esi], ebx
jne 0x1004bac
push esi
lea eax, [ebp - 0x308]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x290]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1004aed
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1004bac
mov eax, dword [ebp - 0x2a4]
push 0x82
push dword [eax + 0x190]
push 2
call fcn.0100c20c
jmp 0x1004bac
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x2c4]
push eax
push dword [ebp - 0x2b0]
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
je 0x1004b9f
mov eax, dword [ebp - 0x2c4]
mov dword [ebp - 0x29c], eax
mov eax, dword [ebp - 0x2c0]
mov dword [ebp - 0x294], ebx
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 6
mov dword [ebp - 0x2a0], esi
mov dword [ebp - 0x298], eax
call ebx
push 4
mov edi, eax
call ebx
add edi, eax
mov eax, dword [ebp - 0x2a4]
mov eax, dword [eax + 0x1b8]
cmp eax, dword [esi]
jne 0x1004b63
add dword [ebp - 0x29c], edi
add dword [ebp - 0x298], edi
jmp 0x1004b72
lea eax, [edi + edi]
add dword [ebp - 0x29c], eax
add dword [ebp - 0x298], eax
xor esi, esi
lea eax, [ebp - 0x2a0]
push eax
push 0x100483c
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [ebp - 0x294], 0
jne 0x1004bac
push 0x19
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x14
jl 0x1004b74
jmp 0x1004bac
push 0x1001720
push ebx
call fcn.0100be32
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor eax, eax
pop ebx
call fcn.01003c21
leave
ret 8