Function at 0x46f690
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5da159
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x65eb68]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
push esi
call fcn.00471bd0
add esp, 4
test al, al
je 0x46f9ab
mov eax, dword fs:[0x2c]
mov ecx, dword [0x66c334]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x668c48]
cmp eax, dword [ecx + 0x10]
jg 0x46f9c7
xor edi, edi
mov dword [ebp - 0x14], 7
xor eax, eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x18], edi
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 1
cmp byte [ebp + 0xc], al
je 0x46f81c
cmp dword [0x668c40], eax
je 0x46f81c
push 0x5f73e0
lea ecx, [ebp - 0x40]
call fcn.0043df5f
push esi
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00404abf
mov esi, eax
add esp, 0xc
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x46f7d6
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x46f78c
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46f782
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46fa0e
push edx
push ecx
call fcn.00599f8e
add esp, 8
mov dword [ebp - 0x18], 0
xor eax, eax
mov word [ebp - 0x28], ax
mov dword [ebp - 0x14], 7
mov eax, dword [esi]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x58]
call fcn.00404866
lea ecx, [ebp - 0x40]
call fcn.00404866
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
push 1
cmovae ecx, dword [ebp - 0x28]
mov eax, 0x668c30
cmp dword [0x668c44], 8
push 0
cmovae eax, dword [0x668c30]
push ecx
push eax
push 0x5eefe4
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x46f96d
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x46f83b
push 1
push 0
push esi
push 0x5f73f8
push 0x5eefe4
jmp 0x46f964
push 0xd
xor eax, eax
mov dword [ebp - 0x40], 0
push 0x5f740c
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.004049aa
push esi
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00404abf
mov esi, eax
add esp, 0xc
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x46f90b
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x46f8c1
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46f8b7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46fa13
push edx
push ecx
call fcn.00599f8e
add esp, 8
mov dword [ebp - 0x18], 0
xor eax, eax
mov word [ebp - 0x28], ax
mov dword [ebp - 0x14], 7
mov eax, dword [esi]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x58]
call fcn.00404866
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x46f94d
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46f943
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46fa13
push edx
push ecx
call fcn.00599f8e
add esp, 8
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 1
cmovae eax, dword [ebp - 0x28]
push 0
push eax
push 0x5f73f8
push 0
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov edi, eax
mov edx, dword [ebp - 0x14]
cmp edi, 0x20
seta bl
cmp edx, 8
jb 0x46f9a9
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46f99f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46fa18
push edx
push ecx
call fcn.00599f8e
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00599f9c
mov esp, ebp
pop ebp
ret
push 0x668c48
call fcn.0059a45b
add esp, 4
cmp dword [0x668c48], 0xffffffff
jne 0x46f6f2
push 0x668c30
mov dword [ebp - 4], 0
call fcn.00471090
push 0x5e8ce0
call fcn.0059a313
push 0x668c48
call fcn.0059a411
add esp, 0xc
jmp 0x46f6f2
call fcn.005a1930
call fcn.005a1930
call fcn.005a1930
int3