Function at 0x10048ac
Capabilities:
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 [0x100e024]
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 - 0x2b4], 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 - 0x2a4]
push eax
push dword [esi + 0x1d8]
xor ebx, ebx
mov dword [ebp - 0x2ac], esi
mov dword [ebp - 0x308], 0x44
mov dword [ebp - 0x2a8], ebx
mov dword [ebp - 0x2a4], ebx
call edi
test eax, eax
jne 0x1004b44
push 0x10000000
lea eax, [ebp - 0x2a8]
push eax
push dword [esi + 0x1dc]
call edi
test eax, eax
jne 0x1004b44
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 0x100496c
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 0x100177c
push eax
call dword [sym.imp.msvcrt.dll_wcsncat]
add esp, 0xc
cmp dword [ebp + 0xc], ebx
lea eax, [ebp - 0x84]
je 0x10049bb
push dword [ebp - 0x2a4]
push 0x1001750
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0xc
add esi, 0x1b8
jmp 0x10049d6
push dword [ebp - 0x2a8]
push 0x1001728
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0xc
add esi, 0x1c8
mov eax, dword [esi]
cmp eax, ebx
je 0x1004a5b
lea ecx, [ebp - 0x2b0]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x1004a36
cmp dword [ebp - 0x2b0], edi
jne 0x1004a25
lea eax, [ebp - 0x2a0]
push eax
push 0x1004762
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 0x1004b44
push dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [esi + 4]
call edi
jmp 0x1004a4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1001700
push ebx
call fcn.0100bd82
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 0x1004b44
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
je 0x1004b44
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x2c4]
push eax
push dword [ebp - 0x2b4]
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
je 0x1004b37
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 - 0x2ac]
mov eax, dword [eax + 0x1b8]
cmp eax, dword [esi]
jne 0x1004afb
add dword [ebp - 0x29c], edi
add dword [ebp - 0x298], edi
jmp 0x1004b0a
lea eax, [edi + edi]
add dword [ebp - 0x29c], eax
add dword [ebp - 0x298], eax
xor esi, esi
lea eax, [ebp - 0x2a0]
push eax
push 0x10047fc
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [ebp - 0x294], 0
jne 0x1004b44
push 0x19
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x14
jl 0x1004b0c
jmp 0x1004b44
push 0x10016e8
push ebx
call fcn.0100bd82
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor eax, eax
pop ebx
call fcn.01003bf1
leave
ret 8