Function at 0x30004cc3
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb30
and dword [ebp - 4], 0
push ebx
push esi
lea eax, [ebp - 0xb30]
push edi
push eax
push dword [ebp + 0x10]
mov eax, dword [0x300022c4]
mov ebx, edx
mov esi, ecx
call dword [eax + 0x48]
push eax
mov eax, dword [0x300022c4]
push 0x30004c4c
call dword [eax + 0x48]
push eax
mov eax, dword [0x300022c4]
push esi
call dword [eax + 0x48]
lea eax, [ebp - 0xb30]
push eax
mov eax, dword [0x300022c4]
call dword [eax + 0x4c]
mov edi, eax
mov esi, 0x80000000
push 0x30004c5c
push edi
mov edx, esi
lea ecx, [ebp - 0x928]
call fcn.30005418
mov edx, esi
lea ecx, [ebp - 0x20c]
push 0x30004c68
push edi
call fcn.30005418
mov edx, esi
lea ecx, [ebp - 0x310]
push 0x30004c74
push edi
call fcn.30005418
cmp byte [ebp - 0x310], 0
jne 0x30004d6c
push 0x30004c84
push edi
mov edx, esi
lea ecx, [ebp - 0x310]
call fcn.30005418
push 0x30004c9c
push edi
mov edx, esi
lea ecx, [ebp - 0x824]
call fcn.30005418
mov edx, esi
lea ecx, [ebp - 0x518]
push 0x30004ca4
push edi
call fcn.30005418
cmp byte [ebp - 0x518], 0
jne 0x30004dae
push 0x30004cac
push edi
mov edx, esi
lea ecx, [ebp - 0x518]
call fcn.30005418
mov eax, dword [0x300022c4]
push edi
call dword [eax + 0x28]
lea eax, [ebp - 0x720]
push eax
mov eax, dword [0x300022c4]
push dword [ebp + 0xc]
call dword [eax + 0x48]
lea eax, [ebp - 0x720]
push eax
mov eax, dword [0x300022c4]
call dword [eax + 0x10]
add eax, eax
mov cx, word [ebp + eax - 0x722]
cmp cx, 0x5c
je 0x30004e10
cmp cx, 0x2f
je 0x30004e10
mov cx, word [ebx]
cmp cx, 0x5c
je 0x30004e10
cmp cx, 0x2f
je 0x30004e10
mov word [ebp + eax - 0x720], 0x5c
and word [ebp + eax - 0x71e], 0
lea eax, [ebp - 0x720]
push eax
mov eax, dword [0x300022c4]
push ebx
call dword [eax + 0x6c]
cmp byte [ebp - 0x20c], 0
jne 0x30004e30
xor eax, eax
jmp 0x300050e1
and byte [ebp - 0x108], 0
lea edi, [ebp - 0x20c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x414]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp byte [ebp - 0x414], 0x22
jne 0x30004eb6
lea eax, [ebp - 0x20b]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x414]
push 0x22
push eax
mov eax, dword [0x300022c4]
call dword [eax + 0x3c]
and byte [eax], 0
lea edx, [ebp - 0x414]
lea ecx, [ebp - 0x108]
call fcn.300050ea
lea eax, [ebp - 0x20b]
push 0x22
push eax
mov eax, dword [0x300022c4]
call dword [eax + 0x3c]
inc eax
jmp 0x30004f23
lea eax, [ebp - 0x414]
push 0x2e
push eax
mov eax, dword [0x300022c4]
call dword [eax + 0x5c]
test eax, eax
je 0x30004f1d
mov cl, byte [eax + 1]
cmp cl, 0x65
je 0x30004ed8
cmp cl, 0x45
jne 0x30004f1d
mov cl, byte [eax + 2]
cmp cl, 0x78
je 0x30004ee5
cmp cl, 0x58
jne 0x30004f1d
mov cl, byte [eax + 3]
cmp cl, 0x65
je 0x30004ef2
cmp cl, 0x45
jne 0x30004f1d
and byte [eax + 4], 0
lea edx, [ebp - 0x414]
lea ecx, [ebp - 0x108]
call fcn.300050ea
lea eax, [ebp - 0x20c]
push 0x2e
push eax
mov eax, dword [0x300022c4]
call dword [eax + 0x5c]
add eax, 4
jmp 0x30004f23
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp byte [ebp - 0x310], 0
jne 0x30004f95
lea eax, [ebp - 0x108]
push 0x5c
push eax
mov eax, dword [0x300022c4]
call dword [eax + 0x5c]
test eax, eax
je 0x30004f52
inc eax
jmp 0x30004f58
lea eax, [ebp - 0x108]
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x310]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x2e
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x310]
and ecx, 3
push eax
mov eax, dword [0x300022c4]
rep movsb byte es:[edi], byte [esi]
call dword [eax + 0x5c]
test eax, eax
je 0x30004f95
and byte [eax], 0
cmp byte [ebp - 0x518], 0
jne 0x30004fc6
mov edi, 0x30004cbc
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x518]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp byte [ebp - 0x928], 0
je 0x30004fe3
lea edx, [ebp - 0x720]
lea ecx, [ebp - 0x928]
call fcn.30005517
mov dword [ebp - 4], eax
cmp byte [ebp - 0x824], 0
lea edx, [ebp - 0x720]
lea ecx, [ebp - 0x824]
jne 0x30004ffe
lea ecx, [ebp - 0x108]
call fcn.30005517
cmp dword [ebp - 4], 0
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
mov dword [ebp + 0x10], eax
mov dword [ebp + 0xc], 0x20
je 0x30005037
push dword [ebp - 4]
lea edx, [ebp - 0x518]
lea ecx, [ebp - 0x310]
call fcn.300052f0
test eax, eax
jne 0x300050aa
push dword [ebp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_WinExec]
push dword [ebp + 0x10]
call edi
cmp eax, 0x1f
mov dword [ebp + 0xc], eax
jg 0x30005089
cmp dword [ebp + 0x10], 0
je 0x30005067
push dword [ebp + 0x10]
call esi
push eax
call ebx
push dword [ebp + 0x10]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea edx, [ebp - 0x720]
lea ecx, [ebp - 0x20c]
call fcn.30005517
mov dword [ebp + 0x10], eax
push dword [ebp + 0x14]
push eax
call edi
cmp eax, 0x1f
mov dword [ebp + 0xc], eax
jle 0x300050aa
cmp dword [ebp - 4], 0
je 0x300050c4
push dword [ebp - 4]
lea edx, [ebp - 0x518]
lea ecx, [ebp - 0x310]
call fcn.300052f0
test eax, eax
jne 0x300050aa
and dword [ebp + 0xc], eax
cmp dword [ebp - 4], 0
je 0x300050c4
push dword [ebp - 4]
call esi
push eax
call ebx
push dword [ebp - 4]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp + 0x10], 0
je 0x300050de
push dword [ebp + 0x10]
call esi
push eax
call ebx
push dword [ebp + 0x10]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0x10