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

Disassembly:
push 0xffffffffffffffff
push 0x416de6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
push esi
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x48]
rep stosd dword es:[edi], eax
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x8c]
mov dword [esp + 0x28], eax
push ecx
mov dword [esp + 0x30], eax
push 0x104
mov dword [esp + 0x50], 0x44
mov dword [esp + 0x38], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov dl, byte [esp + 0x13]
xor ebx, ebx
push ebx
lea ecx, [esp + 0x38]
mov byte [esp + 0x38], dl
call fcn.00401d10
lea edi, [esp + 0x8c]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x38]
push ebp
call fcn.00402510
test al, al
je 0x407523
mov edi, dword [esp + 0x38]
mov ecx, ebp
mov eax, ecx
lea esi, [esp + 0x8c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x38]
call fcn.004024f0
mov cl, byte [esp + 0x13]
push ebx
mov byte [esp + 0x18], cl
lea ecx, [esp + 0x18]
mov dword [esp + 0x19c], ebx
call fcn.00401d10
mov edi, str.current_directory:
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x18]
push ebp
call fcn.00402510
test al, al
je 0x407580
mov edi, dword [esp + 0x18]
mov ecx, ebp
mov edx, ecx
mov esi, str.current_directory:
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.004024f0
mov eax, dword [0x418218]
lea ecx, [esp + 0x34]
push eax
push ebx
push ecx
lea ecx, [esp + 0x20]
mov byte [esp + 0x1a4], 1
call fcn.0040e410
mov edi, 0x41b2a0
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x418218]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [esp + 0x1c]
sub edx, ecx
cmp edx, esi
ja 0x4075c3
call fcn.0040e999
cmp esi, ebx
jbe 0x407607
mov eax, dword [esp + 0x1c]
push ebx
lea ecx, [esp + 0x18]
lea ebp, [eax + esi]
push ebp
call fcn.00402510
test al, al
je 0x407607
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
push ebp
lea edi, [edx + ecx]
mov ecx, esi
mov eax, ecx
mov esi, 0x41b2a0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.004024f0
mov cl, byte [esp + 0x14]
sub esp, 0x10
mov esi, esp
mov dword [esp + 0x54], esp
push ebx
mov byte [esi], cl
mov ecx, esi
call fcn.00401d10
mov edx, dword [0x418218]
lea eax, [esp + 0x24]
push edx
push ebx
push eax
mov ecx, esi
call fcn.00401b10
call fcn.00405060
add esp, 0x10
lea ecx, [esp + 0x14]
mov byte [esp + 0x198], bl
push 1
call fcn.00401d10
lea ecx, [esp + 0x24]
mov eax, dword [esp + 0x1a0]
lea edx, [esp + 0x48]
push ecx
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4076e0
mov cl, byte [esp + 0x13]
sub esp, 0x10
mov edx, esp
mov edi, str.CreateProcess___error__path_too_long__
mov dword [esp + 0x54], esp
mov byte [edx], cl
or ecx, 0xffffffff
mov dword [edx + 4], ebx
mov dword [edx + 8], ebx
mov dword [edx + 0xc], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.CreateProcess___error__path_too_long__
mov ecx, edx
call fcn.00402330
call fcn.00405060
add esp, 0x10
call fcn.00408490
mov ecx, dword [esp + 0x38]
cmp ecx, ebx
je 0x4076d8
mov al, byte [ecx - 1]
cmp al, bl
je 0x4076ce
cmp al, 0xff
je 0x4076ce
dec al
mov byte [ecx - 1], al
or eax, 0xffffffff
jmp 0x40777f
dec ecx
push ecx
call fcn.0040e98e
add esp, 4
or eax, 0xffffffff
jmp 0x40777f
mov edx, dword [esp + 0x24]
push 0x3e8
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x407745
mov ebp, dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push str.Intel_R__PRO_Adapters_and_Software_Uninstaller
push ebx
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, ebx
je 0x40772e
push 1
push eax
call ebp
push ebx
mov esi, eax
push ebx
push 0x201
push esi
call edi
push ebx
push ebx
push 0x202
push esi
call edi
mov eax, dword [esp + 0x24]
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x407703
mov ecx, dword [esp + 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x28]
push edx
call esi
mov ecx, dword [esp + 0x38]
cmp ecx, ebx
je 0x40777d
mov al, byte [ecx - 1]
cmp al, bl
je 0x407773
cmp al, 0xff
je 0x407773
dec al
mov byte [ecx - 1], al
jmp 0x40777d
dec ecx
push ecx
call fcn.0040e98e
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x190]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x18c
ret