Function at 0x40ac70
Capabilities:
Create process on windows
Query environment variable
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x46c180
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x488e40]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x34]
mov eax, dword [ebx + 0x78]
sub eax, 0x10
push eax
call fcn.00410a10
add eax, 0x10
add esp, 4
mov dword [esp + 0x1c], eax
mov dword [esp + 0x2c], 0
mov eax, dword [esp + 0x38]
push eax
push 0x4761b0
lea ecx, [esp + 0x24]
push ecx
call fcn.00409940
call fcn.0044188f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40ace7
push 0x80004005
call fcn.00409d90
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x38], edi
mov byte [esp + 0x2c], 1
call fcn.0044188f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40ad16
push 0x80004005
call fcn.00409d90
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
push 0
lea ecx, [esp + 0x24]
mov byte [esp + 0x30], 2
mov eax, dword [ebx + 0x74]
add ebx, 0x74
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov ebp, eax
test ebp, ebp
je 0x40adb0
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, ebp
or eax, ecx
jge 0x40ad64
push ebp
lea ecx, [esp + 0x3c]
call fcn.00409ec0
mov edi, dword [esp + 0x38]
mov eax, dword [ebx]
push ebp
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test edi, edi
jne 0x40ad77
xor ecx, ecx
jmp 0x40ad8f
mov ecx, edi
lea edx, [ecx + 1]
mov dword [esp + 0x18], edx
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x40ad80
sub ecx, dword [esp + 0x18]
js 0x40ae0e
cmp ecx, dword [edi - 8]
jg 0x40ae0e
test eax, eax
mov dword [edi - 0xc], ecx
mov byte [ecx + edi], 0
je 0x40ada3
cmp eax, ebp
jle 0x40adb0
lea ecx, [esp + 0x38]
call fcn.0040a130
mov edi, dword [esp + 0x38]
cmp dword [edi - 0xc], 0
jne 0x40adc4
push ebx
lea ecx, [esp + 0x3c]
call fcn.00410a80
mov edi, dword [esp + 0x38]
mov ecx, dword [esp + 0x1c]
mov ebx, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push 0
lea eax, [esp + 0x24]
push eax
push ecx
call ebx
mov ebp, eax
test ebp, ebp
je 0x40ae4e
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, ebp
or eax, ecx
jge 0x40adfd
push ebp
lea ecx, [esp + 0x18]
call fcn.00409ec0
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
push ebp
push esi
push edx
call ebx
test esi, esi
jne 0x40ae18
xor ecx, ecx
jmp 0x40ae2d
push 0x80070057
call fcn.00409d90
mov ecx, esi
lea ebx, [ecx + 1]
lea ecx, [ecx]
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x40ae20
sub ecx, ebx
js 0x40ae0e
cmp ecx, dword [esi - 8]
jg 0x40ae0e
test eax, eax
mov dword [esi - 0xc], ecx
mov byte [ecx + esi], 0
je 0x40ae41
cmp eax, ebp
jle 0x40ae4e
lea ecx, [esp + 0x14]
call fcn.0040a130
mov esi, dword [esp + 0x14]
cmp dword [esi - 0xc], 0
jne 0x40ae66
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
call fcn.00410a80
mov esi, dword [esp + 0x14]
push 1
push 0
push esi
push edi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ebp, eax
cmp ebp, 0x20
ja 0x40af93
push str.Error_executing__
lea ecx, [esp + 0x1c]
call fcn.0040a230
mov byte [esp + 0x2c], 3
mov eax, dword [edi - 0xc]
push eax
push edi
lea ecx, [esp + 0x20]
call fcn.00409c60
push 2
push 0x4761d0
lea ecx, [esp + 0x20]
call fcn.00409c60
mov eax, dword [esi - 0xc]
push eax
push esi
lea ecx, [esp + 0x20]
call fcn.00409c60
push 2
push 0x4761d4
lea ecx, [esp + 0x20]
call fcn.00409c60
mov ecx, dword [esp + 0x18]
push ebp
call fcn.00417350
mov ecx, dword [esp + 0x38]
add esp, 4
push 0x30
mov ebp, eax
push str.Dependency_Walker_External_Viewer_Error
push ebp
call fcn.0043534e
test ebp, ebp
je 0x40af00
push ebp
call fcn.00454dd4
add esp, 4
mov byte [esp + 0x2c], 2
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40af25
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0x2c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40af46
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [esp + 0x2c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40af67
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x2c], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40af8f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x40b002
add esi, 0xfffffff0
mov byte [esp + 0x2c], 1
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40afb4
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
add edi, 0xfffffff0
mov byte [esp + 0x2c], 0
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40afd5
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov dword [esp + 0x2c], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40affd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 8