Function at 0x1006f070
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101285d6
mov eax, dword fs:[0]
push eax
sub esp, 0x7dc
mov eax, dword [0x10167c60]
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 edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov ecx, dword [edi]
cmp dword [ecx - 0xc], 0
je 0x1006f2fb
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x1006f2fb
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
lea ecx, [ebp - 0x7e4]
call fcn.100079a0
mov eax, dword [ebp - 0x7e4]
mov dword [ebp - 4], 0
mov esi, dword [eax - 0xc]
test esi, esi
js 0x1006f319
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x1006f10a
push esi
lea ecx, [ebp - 0x7e4]
call fcn.1000b310
mov eax, dword [ebp - 0x7e4]
lea ecx, [esi + 1]
push ecx
push eax
call fcn.100eff17
mov eax, dword [ebp - 0x7e4]
add esp, 8
cmp esi, dword [eax - 8]
jg 0x1006f319
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [ebp - 0x7e4]
mov word [eax + esi*2], cx
mov eax, dword [ebp - 0x7e4]
cmp dword [eax - 0xc], ecx
jl 0x1006f181
push 0x10136ed8
push eax
call fcn.100e6a12
add esp, 8
test eax, eax
je 0x1006f181
sub eax, dword [ebp - 0x7e4]
sar eax, 1
cmp eax, 0xffffffff
je 0x1006f181
push 5
push 0
push dword [ebx]
push dword [edi]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov esi, eax
neg esi
sbb esi, esi
neg esi
jmp 0x1006f2d2
push dword [edi]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.BasicEntry
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x1006f2d2
push 0x7d0
lea eax, [ebp - 0x7e0]
push 0
push eax
call fcn.100e67c0
add esp, 0xc
lea eax, [ebp - 0x7e0]
push 0x3e8
push eax
push dword [ebx]
call esi
lea eax, [ebp - 0x7e0]
push eax
push str._RunFileEx__setup_result___s
call fcn.10061520
add esp, 8
call fcn.100088b0
mov ecx, eax
test ecx, ecx
je 0x1006f323
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x7e8], eax
lea eax, [ebp - 0x7e0]
mov byte [ebp - 4], 1
test eax, 0xffff0000
jne 0x1006f218
movzx eax, ax
lea ecx, [ebp - 0x7e8]
push eax
call fcn.10008a30
jmp 0x1006f243
lea ecx, [ebp - 0x7e0]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1006f221
sub ecx, edx
lea eax, [ebp - 0x7e0]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x7e8]
call fcn.1000b940
mov eax, dword [ebp - 0x7e8]
mov edx, 0x10133ea4
mov ecx, eax
mov si, word [ecx]
cmp si, word [edx]
jne 0x1006f276
test si, si
je 0x1006f272
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x1006f276
add ecx, 4
add edx, 4
test si, si
jne 0x1006f250
xor ecx, ecx
jmp 0x1006f27b
sbb ecx, ecx
or ecx, 1
test ecx, ecx
je 0x1006f2c2
mov ecx, 0x10136f28
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1006f2aa
test dx, dx
je 0x1006f2a6
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1006f2aa
add eax, 4
add ecx, 4
test dx, dx
jne 0x1006f284
xor eax, eax
jmp 0x1006f2af
sbb eax, eax
or eax, 1
test eax, eax
je 0x1006f2c2
lea ecx, [ebp - 0x7e8]
call fcn.10007df0
xor esi, esi
jmp 0x1006f2d2
lea ecx, [ebp - 0x7e8]
call fcn.10007df0
mov esi, 1
mov edi, dword [ebp - 0x7e4]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x1006f2f7
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
jmp 0x1006f2fd
xor eax, eax
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.100c495f
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.10008520
push 0x80004005
call fcn.10008520
int3