Function at 0x10004f20
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x340
mov eax, dword [0x1001e00c]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [0x10128d70], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, edx
mov ebx, ecx
jne 0x1000517b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x10128d70], eax
mov word [ebp - 0x33c], 0x85c1
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
and eax, 0x800000ff
jns 0x10004f72
dec eax
or eax, 0xffffff00
inc eax
cmp dword [0x1001e07c], 0xffffffff
mov byte [ebp - 0x33a], al
mov byte [ebp - 0x339], 3
mov byte [ebp - 0x338], bl
je 0x10005170
cmp byte [0x1011e0b0], 0
je 0x10005170
mov word [ebp - 0x2b4], 0x9bc1
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
and eax, 0x800000ff
jns 0x10004fbc
dec eax
or eax, 0xffffff00
inc eax
mov ecx, dword [0x10128d6c]
mov byte [ebp - 0x2b2], al
mov byte [ebp - 0x2b1], 3
mov byte [ebp - 0x2b0], bl
test ecx, ecx
jne 0x10004ff3
xorps xmm0, xmm0
mov word [ebp - 0x2a7], cx
movq qword [ebp - 0x2af], xmm0
mov byte [ebp - 0x2a5], cl
jmp 0x10005013
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 [0x10128d68]
test ecx, ecx
je 0x10005045
mov ecx, dword [ecx]
test ecx, ecx
je 0x10005045
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 0x10005060
xorps xmm0, xmm0
mov word [ebp - 0x29c], 0
movq qword [ebp - 0x2a4], xmm0
mov byte [ebp - 0x29a], 0
test esi, esi
jne 0x10005078
push 0x40
lea eax, [ebp - 0x299]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
jmp 0x100050a3
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 0x1000510d
push edi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x1000510d
push 0x104
lea eax, [ebp - 0x214]
push eax
push esi
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
test eax, eax
je 0x10005106
lea ecx, [ebp - 0x214]
call fcn.10011ae0
push eax
lea eax, [ebp - 0x259]
push 0x10019a00
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.10011f50
push eax
push 0
push 0x1011e230
call fcn.10009390
movzx eax, byte [ebp - 0x2b3]
add esp, 0x20
push eax
lea eax, [ebp - 0x2b4]
push eax
call fcn.10003c50
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10013364
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x33c]
call fcn.10004c50
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10013364
mov esp, ebp
pop ebp
ret