Function at 0x101cc7d0
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 0x101cc87e
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 0x101cc955
cmp eax, 0x105
jae 0x101ccbe9
lea ebx, [ebp - 0x38]
push eax
push esi
push ebx
call fcn.10169f90
add esp, 0xc
push dword [ebp - 0x30]
push dword [ebp - 0x38]
call fcn.1016c510
add esp, 8
test eax, eax
je 0x101cca32
lea ecx, [ebp - 0x28]
push edx
push eax
push ecx
call fcn.101769e0
add esp, 0xc
cmp dword [ebp - 0x28], 0
mov esi, dword [ebp + 8]
je 0x101ccb29
mov eax, dword [ebp - 0x20]
movsd xmm0, qword [ebp - 0x28]
mov dword [ebp - 0x3c], eax
movsd qword [ebp - 0x44], xmm0
jmp 0x101ccba2
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x264], 0x104429f4
mov dword [ebp - 0x260], 2
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x34], 0x1002e030
mov dword [ebp - 0x25c], eax
mov dword [ebp - 0x258], 1
lea eax, [ebp - 0x264]
lea ecx, [ebp - 0x28]
push eax
push ecx
call fcn.1001b0a0
add esp, 8
mov esi, dword [0x1044f00c]
mov ebx, dword [0x1044eff8]
movzx eax, byte [esi]
mov eax, dword [ebx]
test eax, eax
jne 0x101cc8fb
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x101ccbdb
mov dword [ebx], eax
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x101ccbdb
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 0x101cc932
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x101cc944
mov dword [ebx], eax
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
jne 0x101cca0d
push 0xc
push 4
call fcn.1001ac80
add esp, 8
jmp 0x101ccc3b
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x28], 0x10442a24
mov dword [ebp - 0x24], 2
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x4c], 0x1002e030
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 1
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x38]
push eax
push ecx
call fcn.1001b0a0
add esp, 8
mov esi, dword [0x1044f00c]
mov ebx, dword [0x1044eff8]
movzx eax, byte [esi]
mov eax, dword [ebx]
test eax, eax
jne 0x101cc9c0
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x101ccbfe
mov dword [ebx], eax
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x101ccbfe
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 0x101cc9fb
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x101ccc0c
mov dword [ebx], eax
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x101ccc0c
mov esi, dword [ebp + 8]
mov dword [eax], edi
mov dword [eax + 4], 0x1043ef0c
mov byte [eax + 8], 0x27
mov dword [esi + 8], eax
mov dword [esi + 4], 3
mov dword [esi], 0
jmp 0x101ccbce
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x28], 0x10442a6c
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x58], 0x1016c1c0
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 1
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x50]
push ecx
push eax
call fcn.1001b0a0
add esp, 8
mov eax, dword [ebp - 0x48]
movsd xmm0, qword [ebp - 0x50]
mov esi, dword [0x1044f00c]
mov ebx, dword [0x1044eff8]
mov dword [ebp - 0x20], eax
movsd qword [ebp - 0x28], xmm0
movzx eax, byte [esi]
mov eax, dword [ebx]
test eax, eax
jne 0x101ccaa2
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x101ccc1a
mov dword [ebx], eax
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x101ccc1a
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 0x101ccadd
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x101ccc28
mov dword [ebx], eax
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x101ccc28
mov dword [eax], edi
mov dword [eax + 4], 0x1043ef0c
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 0x101ccb21
push dword [ebp - 0x38]
push 0
push dword [ebx]
call sub.KERNEL32.dll_HeapFree
mov esi, dword [ebp + 8]
jmp 0x101ccbce
mov esi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
test esi, esi
je 0x101ccb86
setns al
js 0x101ccc36
mov byte [ebp - 0xd], al
mov eax, dword [0x1044f00c]
mov ebx, dword [0x1044eff8]
movzx eax, byte [eax]
mov eax, dword [ebx]
mov dword [ebp - 0x54], ecx
test eax, eax
jne 0x101ccb61
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x101ccb73
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 0x101ccb8b
movzx eax, byte [ebp - 0xd]
push esi
push eax
call fcn.1001ac80
add esp, 8
jmp 0x101ccc3b
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 0x101ccbce
mov eax, dword [0x1044eff8]
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.1001ac80
add esp, 8
jmp 0x101ccc3b
push 0x10442a34
push 0x104
push eax
call fcn.1002ac30
add esp, 0xc
ud2
push 0xc
push 4
call fcn.1001ac80
add esp, 8
jmp 0x101ccc3b
push 0xc
push 4
call fcn.1001ac80
add esp, 8
jmp 0x101ccc3b
push 0xc
push 4
call fcn.1001ac80
add esp, 8
jmp 0x101ccc3b
push 0xc
push 4
call fcn.1001ac80
add esp, 8
jmp 0x101ccc3b
call fcn.1001ac40
ud2