Function at 0x575820
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x440
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov eax, dword [0x5f3418]
xor eax, ebp
mov dword [esp + 0x438], eax
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], eax
push ebx
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test eax, eax
je 0x5758df
lea ebx, [esp + 0x28]
push 0x410
push 0
push ebx
call fcn.005191b0
add esp, 0xc
push 0x208
push ebx
push edi
call sub.KERNEL32.dll_K32GetProcessImageFileNameW
dec eax
cmp eax, 0x206
ja 0x5758af
cmp byte [ebp + 0x10], 0
je 0x5759a1
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
test eax, eax
je 0x575a50
lea ecx, [esp + 0x18]
push eax
call fcn.0041fe00
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x20]
mov dword [esi + 8], eax
movsd xmm0, qword [esp + 0x18]
movsd qword [esi], xmm0
mov ecx, dword [esp + 0x438]
xor ecx, ebp
call fcn.00512ee3
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.00575780
test eax, eax
je 0x575900
push ebx
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test eax, eax
jne 0x575864
push 0x5d84dc
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.QueryFullProcessImageNameW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x5758b6
mov edi, eax
push ebx
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x5758b6
xor ecx, ecx
lea edx, [esp + 0x28]
push 0x208
push ecx
push edx
mov ebx, eax
call fcn.005191b0
add esp, 0xc
lea eax, [esp + 4]
mov dword [eax], 0x103
mov ecx, edi
call dword [section..00cfg]
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x2c]
push eax
xor eax, eax
push eax
push ebx
call edi
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x5759ee
cmp byte [ebp + 0x10], 0
je 0x5759ff
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
test eax, eax
je 0x575a50
lea ecx, [esp + 0x18]
push eax
call fcn.0041fe00
jmp 0x5758b6
lea ecx, [esp + 0x18]
push ebx
call fcn.0041fe00
xor eax, eax
lea ebx, [esp + 8]
mov dword [ebx + 4], eax
mov dword [ebx], eax
mov dword [ebx + 8], eax
lea ecx, [esp + 0x18]
mov edx, ebx
call fcn.005753a0
test al, al
je 0x5759d2
lea ecx, [esp + 0x18]
push ebx
call fcn.00407dd0
cmp byte [esp + 0x13], 0
jns 0x5758af
push dword [esp + 8]
call fcn.0050fc7c
add esp, 4
jmp 0x5758af
mov ecx, esi
push 0x5d7d84
call fcn.005477d0
jmp 0x5758c7
lea ebx, [esp + 0x18]
mov ecx, ebx
lea eax, [esp + 0x28]
push eax
call fcn.0041fe00
xor eax, eax
lea edi, [esp + 8]
mov dword [edi + 4], eax
mov dword [edi], eax
mov dword [edi + 8], eax
mov ecx, ebx
mov edx, edi
call fcn.005753a0
test al, al
je 0x575a34
lea ecx, [esp + 0x18]
push edi
call fcn.00407dd0
cmp byte [esp + 0x13], 0
jns 0x5758b6
push dword [esp + 8]
call fcn.0050fc7c
add esp, 4
jmp 0x5758b6
push str.string::assign_received_nullptr
push str.__s___nullptr
push 0xa17
push str....._buildtools_third_partylibc_trunkinclude_string
push str._s:_d:_assertion__s_failed:__s
call fcn.005495a0
int3