Function at 0x57b120
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 0x57b1ce
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 0x57b2a5
cmp eax, 0x105
jae 0x57b539
lea ebx, [ebp - 0x38]
push eax
push esi
push ebx
call fcn.0052f440
add esp, 0xc
push dword [ebp - 0x30]
push dword [ebp - 0x38]
call fcn.00531950
add esp, 8
test eax, eax
je 0x57b382
lea ecx, [ebp - 0x28]
push edx
push eax
push ecx
call fcn.0053b6c0
add esp, 0xc
cmp dword [ebp - 0x28], 0
mov esi, dword [ebp + 8]
je 0x57b479
mov eax, dword [ebp - 0x20]
movsd xmm0, qword [ebp - 0x28]
mov dword [ebp - 0x3c], eax
movsd qword [ebp - 0x44], xmm0
jmp 0x57b4f2
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x264], 0x6060a4
mov dword [ebp - 0x260], 2
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x34], 0x42bbb0
mov dword [ebp - 0x25c], eax
mov dword [ebp - 0x258], 1
lea eax, [ebp - 0x264]
lea ecx, [ebp - 0x28]
push eax
push ecx
call fcn.0041acc0
add esp, 8
mov esi, dword [0x6074b4]
mov ebx, dword [0x6074a0]
movzx eax, byte [esi]
mov eax, dword [ebx]
test eax, eax
jne 0x57b24b
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x57b52b
mov dword [ebx], eax
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x57b52b
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 0x57b282
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x57b294
mov dword [ebx], eax
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
jne 0x57b35d
push 0xc
push 4
call fcn.0041a8c0
add esp, 8
jmp 0x57b58b
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x28], 0x6060d4
mov dword [ebp - 0x24], 2
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x4c], 0x42bbb0
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 1
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x38]
push eax
push ecx
call fcn.0041acc0
add esp, 8
mov esi, dword [0x6074b4]
mov ebx, dword [0x6074a0]
movzx eax, byte [esi]
mov eax, dword [ebx]
test eax, eax
jne 0x57b310
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x57b54e
mov dword [ebx], eax
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x57b54e
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 0x57b34b
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x57b55c
mov dword [ebx], eax
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x57b55c
mov esi, dword [ebp + 8]
mov dword [eax], edi
mov dword [eax + 4], 0x604510
mov byte [eax + 8], 0x27
mov dword [esi + 8], eax
mov dword [esi + 4], 3
mov dword [esi], 0
jmp 0x57b51e
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x28], 0x60611c
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x58], 0x531600
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 1
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x50]
push ecx
push eax
call fcn.0041acc0
add esp, 8
mov eax, dword [ebp - 0x48]
movsd xmm0, qword [ebp - 0x50]
mov esi, dword [0x6074b4]
mov ebx, dword [0x6074a0]
mov dword [ebp - 0x20], eax
movsd qword [ebp - 0x28], xmm0
movzx eax, byte [esi]
mov eax, dword [ebx]
test eax, eax
jne 0x57b3f2
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x57b56a
mov dword [ebx], eax
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x57b56a
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 0x57b42d
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x57b578
mov dword [ebx], eax
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x57b578
mov dword [eax], edi
mov dword [eax + 4], 0x604510
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 0x57b471
push dword [ebp - 0x38]
push 0
push dword [ebx]
call sub.KERNEL32.dll_HeapFree
mov esi, dword [ebp + 8]
jmp 0x57b51e
mov esi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
test esi, esi
je 0x57b4d6
setns al
js 0x57b586
mov byte [ebp - 0xd], al
mov eax, dword [0x6074b4]
mov ebx, dword [0x6074a0]
movzx eax, byte [eax]
mov eax, dword [ebx]
mov dword [ebp - 0x54], ecx
test eax, eax
jne 0x57b4b1
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x57b4c3
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 0x57b4db
movzx eax, byte [ebp - 0xd]
push esi
push eax
call fcn.0041a8c0
add esp, 8
jmp 0x57b58b
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 0x57b51e
mov eax, dword [0x6074a0]
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.0041a8c0
add esp, 8
jmp 0x57b58b
push 0x6060e4
push 0x104
push eax
call fcn.004287f0
add esp, 0xc
ud2
push 0xc
push 4
call fcn.0041a8c0
add esp, 8
jmp 0x57b58b
push 0xc
push 4
call fcn.0041a8c0
add esp, 8
jmp 0x57b58b
push 0xc
push 4
call fcn.0041a8c0
add esp, 8
jmp 0x57b58b
push 0xc
push 4
call fcn.0041a8c0
add esp, 8
jmp 0x57b58b
call fcn.0041a880
ud2