Function at 0x4d2d40
Capabilities:
Create process on windows

Disassembly:
mov ecx, dword [0x55e3d4]
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 0x4d2dd5
lea edx, [esp + 0x54]
test edx, edx
jne 0x4d2d7b
xor ebx, ebx
jmp 0x4d2d88
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 0x4d2dce
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 0x4d2dff
push eax
mov dword [esp + 0x14], edx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x4d2e24
mov eax, dword [0x546560]
mov esi, edx
test edx, edx
mov dword [esp + 0x10], eax
jne 0x4d2e12
xor eax, eax
jmp 0x4d2e19
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 0x4d2e44
mov edx, dword [eax - 4]
test edx, edx
jge 0x4d2e9c
mov ebp, dword [eax - 8]
test ebp, ebp
jle 0x4d2e4d
mov ecx, ebp
push ecx
lea ecx, [esp + 0x14]
call fcn.00405530
test eax, eax
je 0x4d2e9c
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 [0x546564]
cmp ebx, eax
je 0x4d2e98
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4d2e98
push ebx
call fcn.00531732
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 0x4d2ecd
push ecx
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x4d2eef
mov ecx, dword [0x546560]
mov esi, eax
test eax, eax
mov dword [esp + 0x14], ecx
je 0x4d2ee4
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 0x4d2f0a
mov dword [esp + 0x24], 0x547140
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov edx, dword [0x546564]
mov esi, eax
mov eax, dword [esp + 0x14]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4d2f4a
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x4d2f50
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
jmp 0x4d2f50
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, dword [esp + 0x10]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4d2f7b
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x4d2f7b
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov eax, dword [esp + 0x260]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4d2fac
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x4d2fac
mov edx, dword [esp + 0x260]
add edx, 0xfffffff4
push edx
call fcn.00531732
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