Function at 0x4aa830
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x6c
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x40]
call fcn.00529a80
mov eax, dword [0x546560]
mov ecx, dword [esp + 0x48]
cmp ecx, eax
mov dword [esp + 0x10], eax
je 0x4aa899
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x4aa867
mov edx, dword [0x546564]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x4aa86e
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4aa87e
push eax
mov eax, dword [eax - 8]
push eax
lea ecx, [esp + 0x50]
call fcn.00405870
jmp 0x4aa899
lea ecx, [esp + 0x48]
call fcn.00412670
mov eax, dword [esp + 0x10]
mov dword [esp + 0x48], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ecx, esi
call fcn.004a15b0
xor edi, edi
cmp eax, edi
je 0x4aac7f
lea ecx, [esi + 0x1d0]
test ecx, ecx
je 0x4aa8bc
lea ecx, [esi + 0x1d4]
jmp 0x4aa8be
xor ecx, ecx
mov edx, dword [ecx]
push eax
push edx
lea ecx, [esp + 0x40]
call fcn.00510650
lea eax, [esp + 0x10]
add esi, 4
push eax
push edi
push ecx
mov dword [esp + 0x40], esi
mov ecx, esp
push 0x553dd8
call fcn.00405730
mov ecx, dword [esi]
push ecx
lea ecx, [esp + 0x50]
call fcn.00529f50
test eax, eax
jne 0x4aa946
lea ecx, [esp + 0x38]
call fcn.0050fe40
mov eax, dword [esp + 0x10]
mov ecx, dword [0x546564]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4aac88
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4aac88
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.00531732
add esp, 4
lea ecx, [esp + 0x40]
call fcn.00529ad0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
mov ecx, dword [0x546560]
mov edx, str._test_hl
test edx, edx
mov dword [esp + 0x14], ecx
je 0x4aa993
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
cmp esi, edi
je 0x4aa993
push esi
lea ecx, [esp + 0x18]
call fcn.00405530
test eax, eax
je 0x4aa993
mov eax, dword [esp + 0x14]
inc esi
push esi
push str._test_hl
push eax
call fcn.00405400
add esp, 0xc
lea ecx, [esp + 0x14]
push 0xffffffffffffffff
call fcn.00405bb0
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax - 8]
push ecx
lea ecx, [esp + 0x18]
call fcn.00405a90
mov eax, dword [esp + 0x14]
mov ecx, dword [0x546564]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4aa9d4
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4aa9d4
mov eax, dword [esp + 0x14]
add eax, 0xfffffff4
push eax
call fcn.00531732
add esp, 4
mov ecx, 0x547b28
test ecx, ecx
je 0x4aab86
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push ecx
call esi
mov ebx, eax
cmp ebx, edi
je 0x4aab86
mov edx, 0x546f04
test edx, edx
jne 0x4aaa03
mov dword [esp + 0x14], edi
jmp 0x4aaa0e
push 0x546f04
call esi
mov dword [esp + 0x14], eax
mov esi, dword [esp + 0x10]
mov eax, dword [esi - 8]
lea ebp, [esi + eax*2]
cmp esi, ebp
jae 0x4aab86
push 0x547b28
push esi
call fcn.0053176f
add esp, 8
test eax, eax
je 0x4aaa48
lea esi, [eax + ebx*2]
push 0x547b28
push esi
inc edi
call fcn.0053176f
add esp, 8
test eax, eax
jne 0x4aaa32
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
cmp esi, ebp
jb 0x4aaa20
test edi, edi
jle 0x4aab86
lea ecx, [esp + 0x10]
call fcn.004055c0
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
sub ebp, ebx
imul ebp, edi
mov eax, dword [esi - 8]
mov dword [esp + 0x18], eax
add ebp, eax
mov eax, dword [esi - 4]
mov dword [esp + 0x24], ebp
cmp eax, ebp
jl 0x4aaa8f
cmp dword [esi - 0xc], 1
jle 0x4aaacd
lea edi, [esi - 0xc]
push ebp
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], edi
call fcn.00405530
test eax, eax
je 0x4aab86
mov ecx, dword [edi + 4]
mov edi, dword [esp + 0x10]
shl ecx, 1
mov edx, ecx
mov eax, dword [esp + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00405590
mov esi, dword [esp + 0x10]
mov ecx, dword [esi - 8]
lea eax, [esi + ecx*2]
cmp esi, eax
mov dword [esp + 0x28], eax
jae 0x4aab83
push 0x547b28
push esi
call fcn.0053176f
mov edi, eax
add esp, 8
test edi, edi
je 0x4aab68
mov eax, dword [esp + 0x10]
mov edx, edi
sub edx, eax
mov eax, dword [esp + 0x18]
sar edx, 1
sub eax, edx
lea ecx, [edi + ebx*2]
sub eax, ebx
lea ebp, [eax + eax]
mov eax, dword [esp + 0x14]
push ebp
push ecx
lea esi, [eax + eax]
lea eax, [esi + edi]
push eax
mov dword [esp + 0x2c], eax
call fcn.00531870
mov ecx, esi
mov esi, 0x546f04
mov edx, ecx
mov eax, dword [esp + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
sub eax, ebx
and ecx, 3
push 0x547b28
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x30]
push esi
mov word [esi + ebp], 0
mov ebp, dword [esp + 0x2c]
add ebp, eax
mov dword [esp + 0x2c], ebp
call fcn.0053176f
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x4aaaf3
mov ebp, dword [esp + 0x24]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
mov eax, dword [esp + 0x28]
cmp esi, eax
jb 0x4aaadf
mov esi, dword [esp + 0x10]
mov dword [esi - 8], ebp
push 0x54725c
lea ecx, [esp + 0x24]
call fcn.00405730
push 0x54cdfc
lea ecx, [esp + 0x18]
call fcn.00405730
push str.__H__J__
lea ecx, [esp + 0x1c]
call fcn.00405730
lea ecx, [esp + 0x20]
lea edx, [esp + 0x30]
push ecx
push edx
lea ecx, [esp + 0x40]
call fcn.00510700
push eax
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x24]
push ecx
lea eax, [esp + 0x3c]
push edx
push eax
call fcn.00412dc0
lea ecx, [esp + 0x30]
push eax
push ecx
call fcn.00412dc0
lea edx, [esp + 0x30]
push eax
push edx
call fcn.00412dc0
push eax
lea eax, [esp + 0x24]
push eax
call fcn.00412dc0
lea ecx, [esp + 0x28]
call fcn.00405700
lea ecx, [esp + 0x24]
call fcn.00405700
lea ecx, [esp + 0x2c]
call fcn.00405700
lea ecx, [esp + 0x30]
call fcn.00405700
lea ecx, [esp + 0x18]
call fcn.00405700
lea ecx, [esp + 0x14]
call fcn.00405700
lea ecx, [esp + 0x20]
call fcn.00405700
mov ecx, dword [esp + 0x1c]
push 0
push 0x553d98
push ecx
mov ecx, dword [esp + 0x40]
call fcn.0043ac60
mov edx, dword [esp + 0x1c]
push 5
push 0
push edx
push str.mklink
push 0x547140
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [esp + 0x1c]
call fcn.00405700
lea ecx, [esp + 0x38]
call fcn.0050fe40
lea ecx, [esp + 0x10]
call fcn.00405700
lea ecx, [esp + 0x40]
call fcn.00529ad0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret