Function at 0x10004d10
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x340
mov eax, dword [0x1002700c]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [0x10131e98], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, edx
mov ebx, ecx
jne 0x10004f6b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x10131e98], eax
mov word [ebp - 0x33c], 0x85c1
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
and eax, 0x800000ff
jns 0x10004d62
dec eax
or eax, 0xffffff00
inc eax
cmp dword [0x1002704c], 0xffffffff
mov byte [ebp - 0x33a], al
mov byte [ebp - 0x339], 3
mov byte [ebp - 0x338], bl
je 0x10004f60
cmp byte [0x10127080], 0
je 0x10004f60
mov word [ebp - 0x2b4], 0x9bc1
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
and eax, 0x800000ff
jns 0x10004dac
dec eax
or eax, 0xffffff00
inc eax
mov ecx, dword [0x10131e94]
mov byte [ebp - 0x2b2], al
mov byte [ebp - 0x2b1], 3
mov byte [ebp - 0x2b0], bl
test ecx, ecx
jne 0x10004de3
xorps xmm0, xmm0
mov word [ebp - 0x2a7], cx
movq qword [ebp - 0x2af], xmm0
mov byte [ebp - 0x2a5], cl
jmp 0x10004e03
movq xmm0, qword [ecx]
movq qword [ebp - 0x2af], xmm0
mov ax, word [ecx + 8]
mov word [ebp - 0x2a7], ax
mov al, byte [ecx + 0xa]
mov byte [ebp - 0x2a5], al
mov ecx, dword [0x10131e90]
test ecx, ecx
je 0x10004e35
mov ecx, dword [ecx]
test ecx, ecx
je 0x10004e35
movq xmm0, qword [ecx]
movq qword [ebp - 0x2a4], xmm0
mov ax, word [ecx + 8]
mov word [ebp - 0x29c], ax
mov al, byte [ecx + 0xa]
mov byte [ebp - 0x29a], al
jmp 0x10004e50
xorps xmm0, xmm0
mov word [ebp - 0x29c], 0
movq qword [ebp - 0x2a4], xmm0
mov byte [ebp - 0x29a], 0
test esi, esi
jne 0x10004e68
push 0x40
lea eax, [ebp - 0x299]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
jmp 0x10004e93
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x299], xmm0
movups xmm0, xmmword [esi + 0x10]
movups xmmword [ebp - 0x289], xmm0
movups xmm0, xmmword [esi + 0x20]
movups xmmword [ebp - 0x279], xmm0
movups xmm0, xmmword [esi + 0x30]
movups xmmword [ebp - 0x269], xmm0
push 0x40
lea eax, [ebp - 0x259]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
test edi, edi
je 0x10004efd
push edi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x10004efd
push 0x104
lea eax, [ebp - 0x214]
push eax
push esi
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
test eax, eax
je 0x10004ef6
lea ecx, [ebp - 0x214]
call fcn.100171e0
push eax
lea eax, [ebp - 0x259]
push 0x10021c14
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x259]
mov ecx, 0x20
push eax
lea eax, [ebp - 0x299]
push eax
lea eax, [ebp - 0x2a4]
push eax
lea eax, [ebp - 0x2af]
push eax
movzx eax, byte [ebp - 0x2b0]
push eax
call fcn.10018e80
push eax
push 0
push 0x10127210
call fcn.1000e6e0
movzx eax, byte [ebp - 0x2b3]
add esp, 0x20
push eax
lea eax, [ebp - 0x2b4]
push eax
call fcn.10003cf0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1001a628
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x33c]
call fcn.10004ab0
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001a628
mov esp, ebp
pop ebp
ret