Function at 0x101ad3f0
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x258
push dword [ebp + 0xc]
push 0
push 0x410
call sub.KERNEL32.dll_OpenProcess
test eax, eax
je 0x101ad49e
mov edi, eax
lea esi, [ebp - 0x264]
push 0x208
push 0
push esi
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x104
push esi
push edi
call sub.psapi.dll_GetProcessImageFileNameW
test eax, eax
je 0x101ad575
cmp eax, 0x105
jae 0x101ad809
lea ebx, [ebp - 0x38]
push eax
push esi
push ebx
call fcn.1014d9e0
add esp, 0xc
push dword [ebp - 0x30]
push dword [ebp - 0x38]
call fcn.1014ff80
add esp, 8
test eax, eax
je 0x101ad652
lea ecx, [ebp - 0x28]
push edx
push eax
push ecx
call fcn.1015a1e0
add esp, 0xc
cmp dword [ebp - 0x28], 0
mov esi, dword [ebp + 8]
je 0x101ad749
mov eax, dword [ebp - 0x20]
movsd xmm0, qword [ebp - 0x28]
mov dword [ebp - 0x3c], eax
movsd qword [ebp - 0x44], xmm0
jmp 0x101ad7c2
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x264], 0x103525d4
mov dword [ebp - 0x260], 2
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x34], 0x1002d590
mov dword [ebp - 0x25c], eax
mov dword [ebp - 0x258], 1
lea eax, [ebp - 0x264]
lea ecx, [ebp - 0x28]
push eax
push ecx
call fcn.1001ac00
add esp, 8
mov esi, dword [0x103564a0]
mov ebx, dword [0x1035648c]
movzx eax, byte [esi]
mov eax, dword [ebx]
test eax, eax
jne 0x101ad51b
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x101ad7fb
mov dword [ebx], eax
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x101ad7fb
mov edi, eax
mov eax, dword [ebp - 0x20]
mov dword [edi + 8], eax
movsd xmm0, qword [ebp - 0x28]
movsd qword [edi], xmm0
movzx eax, byte [esi]
mov eax, dword [ebx]
test eax, eax
jne 0x101ad552
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x101ad564
mov dword [ebx], eax
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
jne 0x101ad62d
push 0xc
push 4
call fcn.1001a7e0
add esp, 8
jmp 0x101ad85b
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x28], 0x10352604
mov dword [ebp - 0x24], 2
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x4c], 0x1002d590
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 1
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x38]
push eax
push ecx
call fcn.1001ac00
add esp, 8
mov esi, dword [0x103564a0]
mov ebx, dword [0x1035648c]
movzx eax, byte [esi]
mov eax, dword [ebx]
test eax, eax
jne 0x101ad5e0
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x101ad81e
mov dword [ebx], eax
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x101ad81e
mov edi, eax
mov eax, dword [ebp - 0x30]
mov dword [edi + 8], eax
movsd xmm0, qword [ebp - 0x38]
movsd qword [edi], xmm0
movzx eax, byte [esi]
mov eax, dword [ebx]
test eax, eax
jne 0x101ad61b
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x101ad82c
mov dword [ebx], eax
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x101ad82c
mov esi, dword [ebp + 8]
mov dword [eax], edi
mov dword [eax + 4], 0x103507b8
mov byte [eax + 8], 0x27
mov dword [esi + 8], eax
mov dword [esi + 4], 3
mov dword [esi], 0
jmp 0x101ad7ee
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x28], 0x1035264c
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x58], 0x1014fc30
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 1
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x50]
push ecx
push eax
call fcn.1001ac00
add esp, 8
mov eax, dword [ebp - 0x48]
movsd xmm0, qword [ebp - 0x50]
mov esi, dword [0x103564a0]
mov ebx, dword [0x1035648c]
mov dword [ebp - 0x20], eax
movsd qword [ebp - 0x28], xmm0
movzx eax, byte [esi]
mov eax, dword [ebx]
test eax, eax
jne 0x101ad6c2
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x101ad83a
mov dword [ebx], eax
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x101ad83a
mov edi, eax
mov eax, dword [ebp - 0x20]
mov dword [edi + 8], eax
movsd xmm0, qword [ebp - 0x28]
movsd qword [edi], xmm0
movzx eax, byte [esi]
mov eax, dword [ebx]
test eax, eax
jne 0x101ad6fd
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x101ad848
mov dword [ebx], eax
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x101ad848
mov dword [eax], edi
mov dword [eax + 4], 0x103507b8
mov byte [eax + 8], 0x27
mov ecx, dword [ebp + 8]
cmp dword [ebp - 0x34], 0
mov dword [ecx + 8], eax
mov dword [ecx + 4], 3
mov dword [ecx], 0
je 0x101ad741
push dword [ebp - 0x38]
push 0
push dword [ebx]
call sub.KERNEL32.dll_HeapFree
mov esi, dword [ebp + 8]
jmp 0x101ad7ee
mov esi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
test esi, esi
je 0x101ad7a6
setns al
js 0x101ad856
mov byte [ebp - 0xd], al
mov eax, dword [0x103564a0]
mov ebx, dword [0x1035648c]
movzx eax, byte [eax]
mov eax, dword [ebx]
mov dword [ebp - 0x54], ecx
test eax, eax
jne 0x101ad781
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x101ad793
mov dword [ebx], eax
push esi
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
mov ecx, dword [ebp - 0x54]
mov ebx, eax
test eax, eax
jne 0x101ad7ab
movzx eax, byte [ebp - 0xd]
push esi
push eax
call fcn.1001a7e0
add esp, 8
jmp 0x101ad85b
mov ebx, 1
push esi
push ecx
push ebx
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
mov esi, dword [ebp + 8]
push edi
call sub.KERNEL32.dll_CloseHandle
mov eax, dword [ebp - 0x3c]
movsd xmm0, qword [ebp - 0x44]
cmp dword [ebp - 0x34], 0
mov dword [esi + 8], eax
movsd qword [esi], xmm0
je 0x101ad7ee
mov eax, dword [0x1035648c]
push dword [ebp - 0x38]
push 0
push dword [eax]
call sub.KERNEL32.dll_HeapFree
mov eax, esi
add esp, 0x258
pop esi
pop edi
pop ebx
pop ebp
ret
push 0xc
push 4
call fcn.1001a7e0
add esp, 8
jmp 0x101ad85b
push 0x10352614
push 0x104
push eax
call fcn.1002a190
add esp, 0xc
ud2
push 0xc
push 4
call fcn.1001a7e0
add esp, 8
jmp 0x101ad85b
push 0xc
push 4
call fcn.1001a7e0
add esp, 8
jmp 0x101ad85b
push 0xc
push 4
call fcn.1001a7e0
add esp, 8
jmp 0x101ad85b
push 0xc
push 4
call fcn.1001a7e0
add esp, 8
jmp 0x101ad85b
call fcn.1001a7a0
ud2