Function at 0x100102d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100475d2
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x10062698]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ecx
mov dword [ebp - 0x40], 0
mov esi, esp
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x44], esi
mov eax, dword [eax + 4]
sub eax, 0x10
mov dword [ebp - 0x2c], ecx
push eax
call fcn.10003d20
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov ecx, edi
lea eax, [ebp - 0x3c]
push eax
call fcn.100109f0
mov eax, dword [ebp - 0x3c]
or edi, 0xffffffff
mov dword [ebp - 4], 0
cmp dword [eax - 0xc], 0
je 0x100108db
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100108db
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x3c]
push eax
call fcn.100036f0
call fcn.100018f0
mov ecx, eax
test ecx, ecx
je 0x1001091b
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x30], eax
mov esi, dword [ebp - 0x34]
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 1
push dword [esi + 0x20]
push dword [esi + 0xc]
push 0x1004cc28
push str.PluginRunMechanism.tpi
push str.__dll_s___entry_s___name_s___length_lu
push eax
call fcn.10004090
add esp, 0x18
cmp dword [esi + 0x28], 0
je 0x1001045b
mov eax, dword [ebp - 0x30]
mov ecx, str.___breakpr
sub ecx, eax
mov dword [ebp - 0x2c], str.___breakpr
sar ecx, 1
push 0xa
mov esi, dword [eax - 0xc]
push str.___breakpr
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x40], esi
call fcn.10031043
mov ecx, 0x7fffffff
mov dword [ebp - 0x44], eax
sub ecx, eax
add esp, 8
cmp ecx, esi
jl 0x10010925
add esi, eax
js 0x1001092f
mov eax, dword [ebp - 0x30]
mov edx, 1
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x1001041c
push esi
lea ecx, [ebp - 0x30]
call fcn.10001cd0
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x40]
cmp ecx, edx
ja 0x1001042c
lea ecx, [eax + ecx*2]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x44]
lea eax, [eax + edx*2]
push ecx
push dword [ebp - 0x2c]
push ecx
push eax
call fcn.10001b40
mov eax, dword [ebp - 0x30]
add esp, 0x10
cmp esi, dword [eax - 8]
jg 0x10010925
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [ebp - 0x30]
mov word [eax + esi*2], cx
mov esi, dword [ebp - 0x34]
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x49]
call fcn.100101d0
push eax
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.10013b80
add esp, 0xc
mov edx, dword [ebp - 0x44]
mov eax, edi
mov byte [ebp - 4], 4
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001049a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x38]
cmp dword [eax - 0xc], 0
jne 0x100104af
mov dword [ebp - 0x2c], 0
jmp 0x1001089a
call fcn.100018f0
mov ecx, eax
test ecx, ecx
je 0x10010939
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x2c], eax
push str.__self
push dword [esi]
mov byte [ebp - 4], 5
call fcn.1003123d
add esp, 8
test eax, eax
je 0x10010535
push str.__noen
push dword [esi]
call fcn.1003123d
add esp, 8
test eax, eax
jne 0x100104fa
lea eax, [ebp - 0x30]
jmp 0x10010538
mov eax, dword [ebp - 0x38]
cmp dword [eax - 0xc], 0
je 0x10010535
lea eax, [ebp - 0x34]
push 1
push eax
call fcn.10017720
mov eax, dword [ebp - 0x34]
add esp, 8
cmp dword [eax - 0xc], 0
jne 0x100106e0
lea edx, [eax - 0x10]
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10010535
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x2c]
call fcn.100036f0
xorps xmm0, xmm0
mov dword [ebp - 0x12c], 0x44
lea eax, [ebp - 0x12c]
movlpd qword [ebp - 0x128], xmm0
push eax
movlpd qword [ebp - 0x120], xmm0
movlpd qword [ebp - 0x118], xmm0
movlpd qword [ebp - 0x110], xmm0
movlpd qword [ebp - 0x108], xmm0
movlpd qword [ebp - 0x100], xmm0
movlpd qword [ebp - 0xf8], xmm0
movlpd qword [ebp - 0xf0], xmm0
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov esi, dword [ebp - 0x2c]
xor eax, eax
xorps xmm0, xmm0
mov dword [ebp - 0x100], 1
mov word [ebp - 0xfc], ax
movups xmmword [ebp - 0x13c], xmm0
cmp dword [esi - 4], 1
jle 0x100105cf
push dword [esi - 0xc]
lea ecx, [ebp - 0x2c]
call fcn.10001bd0
mov esi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x3c]
cmp dword [eax - 4], 1
jle 0x100105e6
push dword [eax - 0xc]
lea ecx, [ebp - 0x3c]
call fcn.10001bd0
mov eax, dword [ebp - 0x3c]
lea ecx, [ebp - 0x13c]
push ecx
lea ecx, [ebp - 0x12c]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x10010876
call fcn.10016840
test eax, eax
je 0x1001086d
call fcn.10016840
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 4]
call eax
test al, al
je 0x1001086d
call fcn.10016840
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0xe8]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0xe8], 0x1004c2a0
push 0
lea eax, [ebp - 0xe4]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x98], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [ebp - 0x9c], 0x48
call fcn.10005ee0
mov eax, dword [ebp - 0xe8]
push 8
mov dword [ebp - 4], 8
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xe8], vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebp - 0xe8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0xec], eax
mov dword [ebp - 0xe4], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.1001b10d
add esp, 4
mov dword [ebp - 0x48], eax
test eax, eax
je 0x10010722
push 1
mov byte [ebp - 4], 9
call fcn.1001258d
mov ecx, dword [ebp - 0x48]
add esp, 4
mov dword [ecx + 4], eax
jmp 0x10010724
push eax
push dword [ebp - 0x38]
push 0x1004cd98
push str.mechanism
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov edx, dword [ebp - 0x34]
mov ecx, edi
mov dword [ebp - 0x40], eax
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x10010714
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x10010535
push esi
jmp 0x10010539
xor ecx, ecx
lea eax, [ebp - 0xe0]
mov dword [ebp - 0xb0], ecx
mov dword [ebp - 0xd8], eax
lea eax, [ebp - 0xdc]
mov dword [ebp - 0xd4], eax
lea eax, [ebp - 0xd0]
mov dword [ebp - 0xc8], eax
lea eax, [ebp - 0xcc]
mov dword [ebp - 0xc4], eax
lea eax, [ebp - 0xc0]
mov dword [ebp - 0xb8], eax
lea eax, [ebp - 0xbc]
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xdc], 0
mov dword [ebp - 0xcc], 0
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xe0], 0
mov dword [ebp - 0xd0], 0
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xe4], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xa8], 4
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xa
push str.create_exe_fail
push eax
call fcn.100076d0
add esp, 8
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
mov byte [ebp - 4], 0xb
jb 0x100107f0
mov eax, dword [eax]
push ecx
push eax
lea eax, [ebp - 0xe8]
push eax
call fcn.10006a30
mov edx, dword [ebp - 0x14]
add esp, 0xc
mov byte [ebp - 4], 0xa
cmp edx, 8
jb 0x1001083f
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10010835
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10010943
push edx
push ecx
call fcn.1001b13d
add esp, 8
mov ecx, dword [ebp - 0x34]
lea edx, [ebp - 0xe8]
xor eax, eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
push edx
mov eax, dword [ecx]
mov dword [ebp - 0x14], 7
call dword [eax + 0x14]
lea ecx, [ebp - 0xe8]
call fcn.10003760
mov dword [ebp - 0x2c], 0
jmp 0x1001087f
mov eax, dword [ebp - 0x13c]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 4
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1001089a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x38]
mov eax, edi
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100108b8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x30]
mov eax, edi
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100108d6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x2c]
jmp 0x100108dd
xor esi, esi
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x100108fc
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001b4ae
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.10001ab0
push 0x80070057
call fcn.10001ab0
push 0x80070057
call fcn.10001ab0
push 0x80004005
call fcn.10001ab0
call fcn.10026bbe
int3