Function at 0x4d3980
Capabilities:
Create process on windows

Disassembly:
mov ecx, dword [0x55f48c]
sub esp, 0x24c
lea eax, [esp + 0x44]
push ebx
push ebp
push esi
push edi
push 0x104
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edx, dword [esp + 0x260]
mov eax, dword [edx - 8]
test eax, eax
jne 0x4d3a15
lea edx, [esp + 0x54]
test edx, edx
jne 0x4d39bb
xor ebx, ebx
jmp 0x4d39c8
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
push ebx
lea ecx, [esp + 0x264]
call fcn.00405660
test eax, eax
je 0x4d3a0e
mov edi, dword [esp + 0x260]
lea eax, [ebx + ebx]
mov ecx, eax
lea esi, [esp + 0x54]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x260]
mov dword [ecx - 8], ebx
mov edx, dword [esp + 0x260]
mov word [eax + edx], 0
mov edx, dword [esp + 0x260]
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
lea eax, [edx - 0xc]
mov dword [esp + 0x18], 0x3c
cmp dword [eax], 0
jl 0x4d3a3f
push eax
mov dword [esp + 0x14], edx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x4d3a64
mov eax, dword [0x547570]
mov esi, edx
test edx, edx
mov dword [esp + 0x10], eax
jne 0x4d3a52
xor eax, eax
jmp 0x4d3a59
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push eax
lea ecx, [esp + 0x18]
call fcn.00405870
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1c], 0
xor ecx, ecx
mov edx, dword [eax - 0xc]
lea ebx, [eax - 0xc]
cmp edx, 1
jg 0x4d3a84
mov edx, dword [eax - 4]
test edx, edx
jge 0x4d3adc
mov ebp, dword [eax - 8]
test ebp, ebp
jle 0x4d3a8d
mov ecx, ebp
push ecx
lea ecx, [esp + 0x14]
call fcn.00405530
test eax, eax
je 0x4d3adc
mov edi, dword [esp + 0x10]
lea ecx, [ebp + ebp + 2]
mov edx, ecx
lea esi, [ebx + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x10]
mov dword [eax - 8], ebp
mov eax, dword [0x547574]
cmp ebx, eax
je 0x4d3ad8
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4d3ad8
push ebx
call fcn.00532222
add esp, 4
mov eax, dword [esp + 0x10]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x264]
xor edx, edx
mov dword [esp + 0x34], 1
lea ecx, [eax - 0xc]
mov dword [esp + 0x40], edx
mov dword [esp + 0x20], edx
cmp dword [ecx], edx
jl 0x4d3b0d
push ecx
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x4d3b2f
mov ecx, dword [0x547570]
mov esi, eax
test eax, eax
mov dword [esp + 0x14], ecx
je 0x4d3b24
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push eax
lea ecx, [esp + 0x1c]
call fcn.00405870
mov eax, dword [esp + 0x268]
mov edx, dword [esp + 0x14]
test eax, eax
mov dword [esp + 0x2c], edx
je 0x4d3b4a
mov dword [esp + 0x24], 0x548150
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov edx, dword [0x547574]
mov esi, eax
mov eax, dword [esp + 0x14]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4d3b8a
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x4d3b90
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
jmp 0x4d3b90
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, dword [esp + 0x10]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4d3bbb
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x4d3bbb
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
mov eax, dword [esp + 0x260]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4d3bec
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x4d3bec
mov edx, dword [esp + 0x260]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
lea ecx, [esp + 0x264]
call fcn.00405700
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24c
ret