Function at 0x10049fc0
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d61a2
mov eax, dword fs:[0]
push eax
sub esp, 0x2f8
mov eax, dword [0x1011449c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x26c], eax
mov dword [ebp - 0x260], eax
xor eax, eax
mov dword [ebp - 0x25c], ebx
mov dword [ebp - 0x258], eax
call fcn.10004570
mov ecx, eax
test ecx, ecx
je 0x1004a67b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x254], eax
push 0x100de924
lea ecx, [ebp - 0x254]
mov dword [ebp - 4], 0
call fcn.10004280
test al, al
jne 0x1004a058
push 0
push 0x100de924
lea ecx, [ebp - 0x254]
call fcn.100046c0
push ebx
push 0
push 0x410
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
or ebx, 0xffffffff
mov dword [ebp - 0x250], esi
test esi, esi
je 0x1004a233
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.100a6fe0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x1004a0e3
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1004a0b5
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x254]
call fcn.100046c0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1004a371
call fcn.1005f9c0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x1004a227
push 0x6b
push str.d:jenkins.jenkinsworkspacelib_commoncomputerz12_grab_versionhookhomepage_1145_bro_mon_filemonitor.cpp
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], al
call fcn.100058c0
push 3
push 0x100e21cc
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 2
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.100058c0
mov byte [ebp - 4], 3
call fcn.1005f9c0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x25c]
lea eax, [ebp - 0x24c]
push str.getAppNameById_GetProcessImageFileName__d_failed.__d
push 2
push eax
call fcn.1005f5e0
mov eax, 2
add esp, 0x14
mov dword [ebp - 0x258], eax
push 0x183
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x304]
call fcn.10008480
mov esi, eax
mov eax, dword [ebp - 0x24c]
mov ecx, 0x100e1fb4
test eax, eax
mov byte [ebp - 4], 5
cmovne ecx, eax
push ecx
push esi
call fcn.10006ea0
mov eax, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x304]
call fcn.10009f10
mov edx, dword [ebp - 0x24c]
mov eax, ebx
mov byte [ebp - 4], 3
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1004a207
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x248]
call fcn.10003f50
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 1
call fcn.10003f50
mov esi, dword [ebp - 0x250]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1004a371
call fcn.1005f9c0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x1004a371
push 0x6b
push str.d:jenkins.jenkinsworkspacelib_commoncomputerz12_grab_versionhookhomepage_1145_bro_mon_filemonitor.cpp
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], al
call fcn.100058c0
push 3
push 0x100e21cc
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 6
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.100058c0
mov byte [ebp - 4], 7
call fcn.1005f9c0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x25c]
lea eax, [ebp - 0x24c]
push str.getAppNameById_OpenProcess__d_failed.__d
push 2
push eax
call fcn.1005f5e0
mov eax, 4
add esp, 0x14
mov dword [ebp - 0x258], eax
push 0x18a
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x304]
call fcn.10008480
mov esi, eax
mov eax, dword [ebp - 0x24c]
mov ecx, 0x100e1fb4
test eax, eax
mov byte [ebp - 4], 9
cmovne ecx, eax
push ecx
push esi
call fcn.10006ea0
mov eax, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x304]
call fcn.10009f10
mov edx, dword [ebp - 0x24c]
mov eax, ebx
mov byte [ebp - 4], 7
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1004a357
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x248]
call fcn.10003f50
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 1
call fcn.10003f50
call fcn.1005f9c0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
mov esi, dword [ebp - 0x254]
movzx eax, al
sub eax, 1
jne 0x1004a585
push 0x6b
push str.d:jenkins.jenkinsworkspacelib_commoncomputerz12_grab_versionhookhomepage_1145_bro_mon_filemonitor.cpp
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.100058c0
push 3
push 0x100e21cc
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.100058c0
mov byte [ebp - 4], 0xb
call fcn.1005f9c0
mov dword [ebp - 0x24c], eax
lea eax, [esi - 0x10]
push eax
call fcn.100043b0
lea edi, [eax + 0x10]
mov dword [ebp - 0x250], edi
push edi
push dword [ebp - 0x25c]
lea eax, [ebp - 0x268]
mov byte [ebp - 4], 0xd
push str.getAppNameById__d__s_
push 2
push eax
call fcn.1005f5e0
or dword [ebp - 0x258], 8
add esp, 0x18
mov dword [ebp - 0x250], eax
add edi, 0xfffffff0
mov byte [ebp - 4], 0xc
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x1004a45b
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
push 0x18c
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x304]
call fcn.10008480
mov edi, eax
mov eax, dword [ebp - 0x250]
mov ecx, 0x100e1fb4
mov byte [ebp - 4], 0xe
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
push ecx
push edi
call fcn.10006ea0
mov ecx, dword [ebp - 0x24c]
add esp, 8
mov eax, dword [ecx]
push edi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x304]
call fcn.10009f10
mov edx, dword [ebp - 0x268]
mov eax, ebx
mov byte [ebp - 4], 0xb
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1004a4d3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x21c]
mov byte [ebp - 4], 0xa
cmp edx, 0x10
jb 0x1004a511
mov ecx, dword [ebp - 0x230]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1004a507
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1004a685
push edx
push ecx
call fcn.10080302
add esp, 8
mov edx, dword [ebp - 0x234]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
mov byte [ebp - 4], 1
cmp edx, 0x10
jb 0x1004a56a
mov ecx, dword [ebp - 0x248]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1004a560
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1004a68a
push edx
push ecx
call fcn.10080302
add esp, 8
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
cmp dword [esi - 0xc], 0
jne 0x1004a5ea
call fcn.10004570
mov ecx, eax
test ecx, ecx
je 0x1004a68f
mov eax, dword [ecx]
call dword [eax + 0xc]
mov edi, dword [ebp - 0x260]
add eax, 0x10
mov dword [edi], eax
push str.unknown
mov ecx, edi
mov byte [ebp - 4], 0xf
call fcn.10004280
test al, al
jne 0x1004a5cc
push 7
push str.unknown
mov ecx, edi
call fcn.100046c0
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x1004a65b
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x1004a65b
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x264]
call fcn.10003e80
mov eax, dword [ebp - 0x264]
add eax, 0xfffffff0
mov byte [ebp - 4], 0x10
push eax
call fcn.100043b0
mov edi, dword [ebp - 0x260]
add eax, 0x10
mov edx, dword [ebp - 0x264]
add esp, 4
mov byte [ebp - 4], 1
add edx, 0xfffffff0
mov dword [edi], eax
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1004a63f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x1004a65b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10080681
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.10004100
call fcn.100aae05
call fcn.100aae05
push 0x80004005
call fcn.10004100
int3