Function at 0x402b80
Capabilities:
Create process on windows
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x440d12
mov eax, dword fs:[0]
push eax
sub esp, 0x90
push ebx
push esi
push edi
mov eax, dword [0x4545f0]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x78]
mov edi, dword [esi + 0x80]
sub eax, 0x10
push eax
call fcn.00401840
add eax, 0x10
add esp, 4
mov dword [esp + 0x28], eax
xor ebx, ebx
mov dword [esp + 0xa8], ebx
mov eax, dword [esi + 0x7c]
sub eax, 0x10
push eax
call fcn.00401840
add eax, 0x10
add esp, 4
mov dword [esp + 0x10], eax
mov byte [esp + 0xa8], 1
call fcn.00411e58
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x402c11
push 0x80004005
call fcn.00401600
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x40], eax
mov byte [esp + 0xa8], 2
call fcn.00411e58
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x402c43
push 0x80004005
call fcn.00401600
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x34], eax
cmp edi, 0x3ea
mov byte [esp + 0xa8], 3
jne 0x402f70
push str.NHCAEnv.ini
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x44]
push edx
call fcn.00403170
add esp, 0xc
mov eax, dword [eax]
cmp eax, ebx
mov dword [esp + 0x18], vtable.CIni.0
mov dword [esp + 0x1c], ebx
je 0x402c9d
push eax
call fcn.0042ae45
add esp, 4
mov dword [esp + 0x1c], eax
mov bl, 6
mov byte [esp + 0xa8], bl
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402cc6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, str.UseCombinePackage
lea ecx, [esp + 0x18]
call fcn.00408090
mov edx, str.BeforeDeleteAgent
lea ecx, [esp + 0x18]
call fcn.00408090
test eax, eax
je 0x402dcd
call fcn.00411e58
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x402d04
push 0x80004005
call fcn.00401600
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0xa8], 7
call fcn.00401d20
test eax, eax
mov edx, str.CAUtil_x64.exe
jne 0x402d2f
mov edx, str.CAUtil.exe
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402d34
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x1c]
call fcn.00401930
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x38]
push eax
call fcn.004030b0
mov ecx, dword [eax]
mov eax, ecx
add esp, 0xc
lea esi, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x402d68
sub eax, esi
je 0x402d7b
push ecx
call fcn.00402a50
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402d9b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [esp + 0xa8], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402dcd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x40
lea ecx, [esp + 0x5c]
push 0
push ecx
call fcn.0042c680
xor eax, eax
add esp, 0xc
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], 0x44
call fcn.00401d20
push ecx
test eax, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x24], esp
mov esi, esp
je 0x402e39
add eax, 0xfffffff0
push eax
call fcn.00401840
add eax, 0x10
mov dword [esi], eax
mov edx, esp
mov byte [esp + 0xb0], 8
mov dword [esp + 0x1c], esp
push str.Pack_x64.zip
lea eax, [esp + 0x1c]
push eax
push edx
jmp 0x402e60
add eax, 0xfffffff0
push eax
call fcn.00401840
add eax, 0x10
mov dword [esi], eax
mov ecx, esp
mov byte [esp + 0xb0], 9
mov dword [esp + 0x1c], esp
push str.Pack_x32.zip
lea edx, [esp + 0x1c]
push edx
push ecx
call fcn.00403170
add esp, 0xc
mov byte [esp + 0xb0], bl
call fcn.004025b0
push str.NHCAPackageSetup.exe
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x34]
push ecx
call fcn.00403170
add esp, 0xc
mov esi, eax
push str.setup.exe
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x40]
push eax
mov byte [esp + 0xb4], 0xa
call fcn.00403170
mov esi, dword [esi]
mov eax, dword [eax]
add esp, 0xc
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402ed8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xa8], bl
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402eff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.NHCAPackageSetup.exe
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x2c]
push edx
call fcn.00403170
mov eax, dword [eax]
add esp, 0xc
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x58]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402f57
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xa8], 3
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x402f70
push eax
call fcn.0040d874
add esp, 4
mov byte [esp + 0xa8], 2
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402f98
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xa8], 1
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402fc0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xa8], 0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402fe8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0xa8], 0xffffffff
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403013
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret