Function at 0x30009250
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x30215e88]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, dword [ebp + 8]
push ebx
mov dword [ebp - 0x118], ecx
mov ebx, edx
mov ecx, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x11c], ecx
mov ecx, eax
push edi
mov dword [ebp - 0x114], eax
call fcn.3004d730
mov edi, eax
test edi, edi
jne 0x300092c2
mov edi, dword [ebp - 0x114]
push edi
push str.MapSectionViewHandler:_Failed_to_obtain_pid_from_process_handle_0x_x
call fcn.3000a0f0
mov esi, dword [0x3026e5d0]
add esp, 8
test esi, esi
je 0x300092bc
lea ecx, [ecx]
cmp dword [esi + 4], edi
je 0x300092be
mov esi, dword [esi + 0x2c]
test esi, esi
jne 0x300092b0
xor esi, esi
mov edi, dword [esi]
jmp 0x300092dd
mov esi, dword [0x3026e5d0]
test esi, esi
je 0x300092db
lea esp, [esp]
cmp dword [esi], edi
je 0x300092dd
mov esi, dword [esi + 0x2c]
test esi, esi
jne 0x300092d0
xor esi, esi
test edi, edi
jne 0x300092f4
push dword [ebp - 0x114]
push str.MapSectionViewHandler:_Failed_to_find_injection_info_pid_from_process_handle_0x_x._n
call fcn.3000a0d0
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp edi, eax
jne 0x30009366
mov eax, dword [0x3026e5cc]
test eax, eax
je 0x30009312
cmp dword [eax], ebx
je 0x3000933a
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x30009307
mov ecx, dword [ebp - 0x11c]
mov edx, dword [ebp - 0x118]
push ecx
mov ecx, ebx
call fcn.30008910
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.30159c2d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x118]
cmp dword [eax + 4], ecx
je 0x300094dd
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x11c]
mov dword [eax + 8], ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.30159c2d
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x300093c4
cmp dword [esi], edi
jne 0x300094dd
mov eax, dword [ebp - 0x114]
mov dword [esi + 4], eax
mov eax, dword [0x3026e5cc]
test eax, eax
je 0x30009393
cmp dword [eax], ebx
je 0x300094a3
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x30009384
push 0
xor edx, edx
mov ecx, ebx
call fcn.30008910
add esp, 4
test eax, eax
je 0x300094ce
mov dword [eax + 0x10], 1
mov dword [eax + 0xc], edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.30159c2d
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp edi, eax
je 0x300094dd
mov ecx, edi
call fcn.30008820
mov dword [ebp - 0x118], eax
test eax, eax
je 0x300094dd
mov esi, dword [ebp - 0x114]
mov ecx, esi
mov dword [eax + 4], esi
mov dword [eax], edi
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
call fcn.3004ff50
mov ecx, eax
mov eax, dword [ebp - 0x118]
mov dword [eax + 0xc], ecx
test ecx, ecx
je 0x30009426
push ecx
push esi
push edi
push str.MapSectionViewHandler:_Image_base_for_process__d__handle_0x_x_:_0x_p._n
call fcn.3000a0d0
add esp, 0x10
push 0x104
lea eax, [ebp - 0x110]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameA]
test eax, eax
je 0x3000945c
lea ecx, [ebp - 0x110]
call fcn.30002100
mov ecx, dword [0x3026ed74]
mov dword [ecx + 0x14], eax
test eax, eax
jne 0x30009498
push str.MapSectionViewHandler:_Error_translating_target_process_path
jmp 0x30009490
mov edx, 1
mov ecx, 0x104
call fcn.300011a0
mov ecx, dword [0x3026ed74]
mov dword [ecx + 0x14], eax
test eax, eax
je 0x3000948b
push str.Error_obtaining_target_process_name
push 0x104
push eax
call fcn.30008800
add esp, 0xc
push str.MapSectionViewHandler:_Error_obtaining_target_process_name
call fcn.3000a0f0
add esp, 4
mov ecx, ebx
call fcn.300088f0
test eax, eax
je 0x300094be
mov dword [eax + 0x10], 1
mov dword [eax + 0xc], edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.30159c2d
mov esp, ebp
pop ebp
ret
push 0
xor edx, edx
call fcn.30008910
add esp, 4
test eax, eax
jne 0x300094aa
push edi
push ebx
push str.MapSectionViewHandler:_Error__failed_to_add_section_view_with_handle_0x_x_and_target_process__d._n
call fcn.3000a0d0
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.30159c2d
mov esp, ebp
pop ebp
ret