Function at 0x1001f4d0
Capabilities:
Enumerate process modules
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10040169
mov eax, dword fs:[0]
push eax
mov eax, 0x133c
call fcn.1003c350
mov eax, dword [0x1006b894]
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
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0x132c], edi
mov dword [ebp - 0x1328], ebx
mov dword [ebp - 0x1324], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x1340], edi
mov dword [ebp - 0x133c], edi
mov dword [ebp - 0x1338], edi
mov eax, 7
xor ecx, ecx
mov dword [ebp - 0x125c], eax
mov dword [ebp - 0x1260], edi
mov word [ebp - 0x1270], cx
xor edx, edx
mov dword [ebp - 0x1240], eax
mov dword [ebp - 0x1244], edi
mov word [ebp - 0x1254], dx
mov dword [ebp - 0x1304], eax
xor eax, eax
mov dword [ebp - 0x1308], edi
mov word [ebp - 0x1318], ax
lea ecx, [ebp - 0x238]
push ecx
push 0x104
mov byte [ebp - 4], 4
call dword [sym.imp.kernel32.dll_GetTempPathW]
xor edx, edx
lea eax, [ebp - 0x238]
mov word [ebp - 0x128c], dx
mov dword [ebp - 0x1278], 7
mov dword [ebp - 0x127c], edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x1001f5b0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x128c]
call fcn.10031e30
mov byte [ebp - 4], 5
call dword [sym.imp.MSVCR100.dll__getpid]
call dword [sym.imp.kernel32.dll_GetCurrentProcessId]
lea ecx, [ebp - 0x1348]
push ecx
push 0x1000
lea edx, [ebp - 0x1238]
push edx
call sub.psapi.dll_EnumProcesses
test eax, eax
jne 0x1001f682
mov esi, 8
cmp dword [ebp - 0x1278], esi
jb 0x1001f61e
mov eax, dword [ebp - 0x128c]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor ecx, ecx
mov ebx, 7
mov dword [ebp - 0x1278], ebx
mov dword [ebp - 0x127c], edi
mov word [ebp - 0x128c], cx
cmp dword [ebp - 0x1240], esi
jb 0x1001f64f
mov edx, dword [ebp - 0x1254]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov dword [ebp - 0x1240], ebx
mov dword [ebp - 0x1244], edi
mov word [ebp - 0x1254], ax
cmp dword [ebp - 0x125c], esi
jb 0x1001f67b
mov ecx, dword [ebp - 0x1270]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov al, 1
jmp 0x1001fc1b
mov eax, dword [ebp - 0x1348]
shr eax, 2
mov dword [ebp - 0x1344], eax
mov dword [ebp - 0x1330], edi
cmp eax, edi
jbe 0x1001f7b7
lea edx, [ebp - 0x1238]
mov dword [ebp - 0x131c], edx
jmp 0x1001f6b0
mov esi, dword [ebp - 0x131c]
mov edx, dword [ebp - 0x132c]
cmp esi, ebx
jae 0x1001f731
cmp edx, esi
ja 0x1001f731
mov ecx, edx
sub esi, ecx
sar esi, 2
cmp ebx, edi
jne 0x1001f720
mov eax, ebx
sub eax, ecx
sar eax, 2
cmp eax, 0x3ffffffe
ja 0x1001f858
mov ecx, edi
sub ecx, edx
inc eax
sar ecx, 2
cmp eax, ecx
jbe 0x1001f720
mov edx, ecx
shr edx, 1
mov edi, 0x3fffffff
sub edi, edx
cmp edi, ecx
jae 0x1001f700
xor ecx, ecx
jmp 0x1001f702
add ecx, edx
cmp ecx, eax
jae 0x1001f708
mov ecx, eax
push ecx
lea ecx, [ebp - 0x132c]
call fcn.10031e30
mov edi, dword [ebp - 0x1324]
mov ebx, dword [ebp - 0x1328]
test ebx, ebx
je 0x1001f78e
mov eax, dword [ebp - 0x132c]
mov ecx, dword [eax + esi*4]
mov dword [ebx], ecx
jmp 0x1001f78e
cmp ebx, edi
jne 0x1001f786
mov eax, ebx
sub eax, edx
sar eax, 2
cmp eax, 0x3ffffffe
ja 0x1001f858
mov ecx, edi
sub ecx, edx
inc eax
sar ecx, 2
cmp eax, ecx
jbe 0x1001f786
mov edx, ecx
shr edx, 1
mov edi, 0x3fffffff
sub edi, edx
cmp edi, ecx
jae 0x1001f766
xor ecx, ecx
jmp 0x1001f768
add ecx, edx
cmp ecx, eax
jae 0x1001f76e
mov ecx, eax
push ecx
lea ecx, [ebp - 0x132c]
call fcn.10031e30
mov edi, dword [ebp - 0x1324]
mov ebx, dword [ebp - 0x1328]
test ebx, ebx
je 0x1001f78e
mov edx, dword [esi]
mov dword [ebx], edx
mov eax, dword [ebp - 0x1330]
add dword [ebp - 0x131c], 4
inc eax
add ebx, 4
mov dword [ebp - 0x1328], ebx
mov dword [ebp - 0x1330], eax
cmp eax, dword [ebp - 0x1344]
jb 0x1001f6b0
lea eax, [ebp - 0x1340]
push eax
call fcn.10031e30
mov eax, dword [ebp - 0x1340]
add esp, 4
mov dword [ebp - 0x131c], eax
cmp eax, dword [ebp - 0x133c]
je 0x1001fb22
xor edi, edi
push 0xa
push 5
lea ecx, [ebp - 0x12c4]
push ecx
mov ecx, dword [ebp - 0x131c]
call fcn.10031e30
mov esi, eax
lea edx, [ebp - 0x1270]
cmp edx, esi
je 0x1001f885
cmp dword [ebp - 0x125c], 8
jb 0x1001f81e
mov eax, dword [ebp - 0x1270]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x125c], 7
mov dword [ebp - 0x1260], edi
mov word [ebp - 0x1270], cx
cmp dword [esi + 0x14], 8
jae 0x1001f863
mov eax, dword [esi + 0x10]
lea edx, [eax + eax + 2]
push edx
lea eax, [ebp - 0x1270]
push esi
push eax
call dword [sym.imp.MSVCR100.dll_memmove]
add esp, 0xc
jmp 0x1001f86d
push str.vector_T__too_long
call dword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xlength_error_char_const__]
mov ecx, dword [esi]
mov dword [ebp - 0x1270], ecx
mov dword [esi], edi
mov edx, dword [esi + 0x10]
mov dword [ebp - 0x1260], edx
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x125c], eax
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
cmp dword [ebp - 0x12b0], 8
mov byte [ebp - 4], 5
jb 0x1001f8a1
mov ecx, dword [ebp - 0x12c4]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp dword [ebp - 0x125c], 8
mov eax, dword [ebp - 0x1270]
jae 0x1001f8b6
lea eax, [ebp - 0x1270]
push eax
call dword [sym.imp.MSVCR100.dll__wtoi]
mov ecx, dword [ebp - 0x132c]
add esp, 4
cmp ecx, ebx
je 0x1001f8e5
lea ebx, [ebx]
cmp dword [ecx], eax
je 0x1001f8dd
add ecx, 4
cmp ecx, ebx
jne 0x1001f8d0
jmp 0x1001f8e5
cmp ecx, ebx
jne 0x1001fb07
push eax
lea edx, [ebp - 0x30]
push str.lilo._d
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 6
xor eax, eax
mov esi, 7
push str..tmp
lea ecx, [ebp - 0x12e0]
mov dword [ebp - 0x12cc], esi
mov dword [ebp - 0x12d0], edi
mov word [ebp - 0x12e0], ax
call fcn.10031e30
xor ecx, ecx
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 7
mov dword [ebp - 0x1294], esi
mov dword [ebp - 0x1298], edi
mov word [ebp - 0x12a8], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x1001f943
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebp - 0x12a8]
call fcn.10031e30
lea eax, [ebp - 0x12a8]
push eax
lea ecx, [ebp - 0x128c]
push ecx
lea edx, [ebp - 0x12c4]
push edx
mov byte [ebp - 4], 8
call fcn.10031e30
lea ecx, [ebp - 0x12e0]
push ecx
push eax
lea edx, [ebp - 0x12fc]
push edx
mov byte [ebp - 4], 9
call fcn.10031e30
add esp, 0x18
mov esi, eax
lea eax, [ebp - 0x1254]
cmp eax, esi
je 0x1001fa1a
cmp dword [ebp - 0x1240], 8
jb 0x1001f9bf
mov ecx, dword [ebp - 0x1254]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor edx, edx
mov dword [ebp - 0x1240], 7
mov dword [ebp - 0x1244], edi
mov word [ebp - 0x1254], dx
cmp dword [esi + 0x14], 8
jae 0x1001f9f8
mov eax, dword [esi + 0x10]
inc eax
add eax, eax
push eax
lea ecx, [ebp - 0x1254]
push esi
push ecx
call dword [sym.imp.MSVCR100.dll_memmove]
add esp, 0xc
jmp 0x1001fa02
mov edx, dword [esi]
mov dword [ebp - 0x1254], edx
mov dword [esi], edi
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x1244], eax
mov ecx, dword [esi + 0x14]
mov dword [ebp - 0x1240], ecx
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
cmp dword [ebp - 0x12e8], 8
jb 0x1001fa32
mov edx, dword [ebp - 0x12fc]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
cmp dword [ebp - 0x12b0], 8
mov dword [ebp - 0x12e8], 7
mov dword [ebp - 0x12ec], edi
mov word [ebp - 0x12fc], ax
jb 0x1001fa63
mov ecx, dword [ebp - 0x12c4]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor edx, edx
cmp dword [ebp - 0x1294], 8
mov dword [ebp - 0x12b0], 7
mov dword [ebp - 0x12b4], edi
mov word [ebp - 0x12c4], dx
jb 0x1001fa94
mov eax, dword [ebp - 0x12a8]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor ecx, ecx
cmp dword [ebp - 0x12cc], 8
mov dword [ebp - 0x1294], 7
mov dword [ebp - 0x1298], edi
mov word [ebp - 0x12a8], cx
mov byte [ebp - 4], 5
jb 0x1001fac9
mov edx, dword [ebp - 0x12e0]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp dword [ebp - 0x1240], 8
mov eax, dword [ebp - 0x1254]
jae 0x1001fade
lea eax, [ebp - 0x1254]
push eax
call fcn.10031e30
mov eax, dword [ebp - 0x1254]
add esp, 4
cmp dword [ebp - 0x1240], 8
mov dword [ebp - 0x1244], edi
jae 0x1001fb02
lea eax, [ebp - 0x1254]
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp - 0x131c]
add eax, 0x1c
mov dword [ebp - 0x131c], eax
cmp eax, dword [ebp - 0x133c]
jne 0x1001f7e0
cmp dword [ebp - 0x1278], 8
jb 0x1001fb3a
mov edx, dword [ebp - 0x128c]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor edi, edi
xor eax, eax
mov esi, 8
mov ebx, 7
mov dword [ebp - 0x1278], ebx
mov dword [ebp - 0x127c], edi
mov word [ebp - 0x128c], ax
cmp dword [ebp - 0x1240], esi
jb 0x1001fb72
mov ecx, dword [ebp - 0x1254]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor edx, edx
mov dword [ebp - 0x1240], ebx
mov dword [ebp - 0x1244], edi
mov word [ebp - 0x1254], dx
cmp dword [ebp - 0x125c], esi
jb 0x1001fb9e
mov eax, dword [ebp - 0x1270]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x125c], ebx
mov dword [ebp - 0x1260], edi
mov word [ebp - 0x1270], cx
cmp dword [ebp - 0x1340], edi
je 0x1001fc06
mov esi, dword [ebp - 0x1340]
cmp esi, dword [ebp - 0x133c]
je 0x1001fbf7
lea esp, [esp]
cmp dword [esi + 0x14], 8
jb 0x1001fbe1
mov edx, dword [esi]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], edi
mov word [esi], ax
add esi, 0x1c
cmp esi, dword [ebp - 0x133c]
jne 0x1001fbd0
mov ecx, dword [ebp - 0x1340]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebp - 0x132c]
cmp eax, edi
je 0x1001fc19
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor al, al
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.1003c1ea
mov esp, ebp
pop ebp
ret