Function at 0x46344e
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xac
push ebx
push esi
push edi
push 0x44
pop esi
push esi
xor ebx, ebx
lea eax, [esp + 0x74]
mov edi, ecx
push ebx
push eax
mov dword [esp + 0x40], edi
call fcn.00422790
xor eax, eax
inc eax
mov dword [esp + 0xa8], eax
mov word [esp + 0xac], ax
mov al, byte [ebp + 0xc]
add esp, 0xc
mov dword [esp + 0x70], esi
mov dword [esp + 0x14], ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x28], ebx
mov esi, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], ebx
mov ebx, dword [ebp + 0x10]
test al, al
je 0x4634db
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0xc]
call fcn.0040ba2b
cmp dword [ebx + 8], 7
mov dword [esp + 0x28], eax
jbe 0x463511
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0x1c]
call fcn.0040ba2b
mov esi, eax
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0x1c]
jmp 0x4634f4
cmp dword [ebx + 8], 3
jbe 0x463526
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0xc]
call fcn.0040ba2b
mov esi, eax
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0xc]
and esi, 0xffff0000
call fcn.0040ba2b
and eax, 0xffff
mov dword [esp + 0x1c], eax
mov al, byte [ebp + 0xc]
test al, al
je 0x463526
jmp 0x463514
mov al, byte [ebp + 0xc]
cmp dword [ebx + 8], 6
jbe 0x463522
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0x18]
jmp 0x463534
test al, al
jne 0x463541
push 2
pop eax
cmp dword [ebx + 8], eax
jbe 0x463541
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 8]
call fcn.0040ba2b
mov word [esp + 0xa0], ax
test esi, 0x10000
je 0x463551
mov dword [esp + 0x24], 0x10
mov eax, dword [ebx + 4]
mov esi, dword [eax]
mov ecx, esi
call fcn.00407b3e
mov eax, dword [esi + 8]
mov ecx, dword [eax]
call fcn.0044946b
cmp byte [ebp + 0xc], 0
je 0x46362a
mov ecx, dword [ebx + 4]
mov dword [esp + 0x14], eax
mov esi, dword [ecx + 4]
mov ecx, esi
call fcn.00407b3e
mov ecx, dword [esi + 8]
mov ecx, dword [ecx]
call fcn.0044946b
mov ecx, dword [ebx + 4]
mov dword [esp + 0xc], eax
mov esi, dword [ecx + 8]
mov ecx, esi
call fcn.00407b3e
mov ecx, dword [esi + 8]
mov ecx, dword [ecx]
call fcn.0044946b
mov ecx, dword [ebx + 4]
mov dword [esp + 0x10], eax
mov esi, dword [ecx + 0x10]
mov ecx, esi
call fcn.00407b3e
mov ecx, dword [esi + 8]
mov ecx, dword [ecx]
call fcn.0044946b
cmp dword [ebx + 8], 5
mov dword [esp + 0x18], eax
jbe 0x4635f8
mov ecx, dword [ebx + 4]
mov esi, dword [ecx + 0x14]
mov ecx, esi
call fcn.00407b3e
mov ecx, dword [esi + 8]
mov ecx, dword [ecx]
call fcn.0044946b
mov esi, eax
test esi, esi
je 0x4635f8
push esi
call fcn.0042271b
pop ecx
test eax, eax
jne 0x463692
mov edi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0
push 0
call edi
mov esi, eax
xor ecx, ecx
push 2
pop edx
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00420f2a
pop ecx
push esi
mov esi, eax
push esi
mov dword [esp + 0x28], eax
call edi
jmp 0x46368e
cmp dword [ebx + 8], 1
mov dword [esp + 0x18], eax
jbe 0x46365c
mov eax, dword [ebx + 4]
mov esi, dword [eax + 4]
mov ecx, esi
call fcn.00407b3e
mov eax, dword [esi + 8]
mov ecx, dword [eax]
call fcn.0044946b
mov esi, eax
test esi, esi
je 0x46365c
push esi
call fcn.0042271b
pop ecx
test eax, eax
jne 0x4636c7
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0
push 0
call edi
mov esi, eax
xor ecx, ecx
push 2
pop edx
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00420f2a
pop ecx
push eax
push esi
mov dword [esp + 0x28], eax
call edi
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x34]
cmp byte [ebp + 0xc], 0
je 0x4636c7
mov ecx, dword [ebx + 4]
push 0x49ec00
mov ecx, dword [ecx]
call fcn.0040b7a0
mov ecx, dword [ebx + 4]
push 0x49ec00
mov ecx, dword [ecx + 4]
call fcn.0040b7a0
mov ecx, dword [ebx + 4]
push 0x49ec00
mov ecx, dword [ecx + 8]
call fcn.0040b7a0
mov edx, dword [esp + 0x1c]
push edx
lea ecx, [esp + 0x4c]
call fcn.0044aa92
test edx, edx
je 0x463733
call fcn.0044b17d
cmp eax, 0xffffffff
sete bl
dec bl
lea ecx, [esp + 0x48]
mov dword [esp + 0xac], eax
and bl, 1
call fcn.0044b076
cmp eax, 0xffffffff
sete bh
dec bh
lea ecx, [esp + 0x48]
mov dword [esp + 0xb0], eax
and bh, bl
call fcn.0044b105
cmp eax, 0xffffffff
sete bl
dec bl
mov dword [esp + 0xa8], eax
and bl, bh
je 0x463735
or dword [esp + 0x9c], 0x100
jmp 0x463735
xor bl, bl
cmp byte [ebp + 0xc], 0
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x74]
push eax
push esi
je 0x4637d5
push dword [esp + 0x30]
push dword [esp + 0x28]
push ecx
push dword [esp + 0x40]
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [esp + 0x38]
call fcn.0043c99c
push dword [esp + 0x14]
mov bh, al
call fcn.0042271b
pop ecx
mov ecx, dword [esp + 0x14]
test eax, eax
je 0x463783
mov byte [ecx], 0
inc ecx
dec eax
jne 0x46377c
push dword [esp + 0xc]
call fcn.0042271b
pop ecx
mov ecx, dword [esp + 0xc]
test eax, eax
je 0x46379c
mov byte [ecx], 0
inc ecx
dec eax
jne 0x463795
push dword [esp + 0x10]
call fcn.0042271b
pop ecx
mov ecx, dword [esp + 0x10]
test eax, eax
je 0x4637b5
mov byte [ecx], 0
inc ecx
dec eax
jne 0x4637ae
push dword [esp + 0x14]
call fcn.00420f9e
pop ecx
push dword [esp + 0xc]
call fcn.00420f9e
pop ecx
push dword [esp + 0x10]
call fcn.00420f9e
pop ecx
jmp 0x4637f4
push 0
push dword [esp + 0x34]
movzx eax, bl
push eax
push 0
push 0
push dword [esp + 0x38]
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
setne bh
push dword [esp + 0x18]
call fcn.00420f9e
pop ecx
push esi
call fcn.00420f9e
pop ecx
test bh, bh
jne 0x463846
mov eax, dword [edi]
xor ebx, ebx
mov ecx, dword [eax + 4]
push ebx
push 1
add ecx, edi
call fcn.0044e859
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [edi]
mov ecx, dword [eax + 4]
add ecx, edi
call fcn.004067ec
mov esi, dword [ebp + 0x14]
mov ecx, esi
call fcn.00411260
mov dword [esi + 0xc], 1
mov dword [esi], ebx
jmp 0x4638c7
push dword [esp + 0x3c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x46387e
lea ecx, [esp + 0x48]
call fcn.0044ad0c
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x48]
mov dword [esp + 0x4c], eax
call fcn.0044b382
lea eax, [esp + 0x48]
push eax
lea ecx, [edi + 0x488]
call fcn.0046390a
cmp byte [ebp + 8], 0
je 0x463890
mov eax, dword [esp + 0x38]
mov dword [edi + 0x470], eax
jmp 0x4638c7
mov eax, dword [esp + 0x40]
fild dword [esp + 0x40]
test eax, eax
jns 0x4638a2
fadd qword [0x4b7a00]
mov esi, dword [ebp + 0x14]
fstp qword [esp + 0x28]
mov ecx, esi
call fcn.00411260
fld qword [esp + 0x28]
push dword [esp + 0x38]
fstp qword [esi]
mov dword [esi + 0xc], 3
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x48]
call fcn.0044ab2c
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10