Function at 0x417800
Capabilities:
Check if file exists
Enumerate process modules

Disassembly:
mov eax, 0x1420
call fcn.004999f0
mov eax, dword [esp + 0x1424]
push ebx
push esi
xor ebx, ebx
push eax
push ebx
push 0x410
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x10], esi
je 0x417a70
mov cx, word [0x4c712c]
push ebp
push edi
mov word [esp + 0x28], cx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x2a]
lea edx, [esp + 0x20]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push edx
lea eax, [esp + 0x434]
push 0x1000
push eax
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x417a54
mov eax, dword [esp + 0x20]
mov dword [esp + 0x24], ebx
cmp eax, ebx
jbe 0x417a54
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov ebx, dword [sym.imp.MSVCRT.dll__wcsicmp]
lea ecx, [esp + 0x430]
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x28]
push 0x104
push edx
mov ecx, dword [eax]
push ecx
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
je 0x4179f8
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4179f8
lea eax, [esp + 0x28]
push eax
call ebp
mov ecx, dword [0x4b7080]
mov esi, eax
test esi, esi
mov dword [esp + 0x10], ecx
je 0x4179a8
mov edx, esi
shr edx, 0x10
jne 0x417976
and esi, 0xffff
lea eax, [esp + 0x230]
mov edi, esi
push 0x100
push eax
push edi
call fcn.00406fc0
mov ecx, 0x100
sub ecx, eax
cmp ecx, 1
jle 0x41792a
lea edx, [esp + 0x230]
lea ecx, [esp + 0x10]
push edx
call fcn.00405d80
jmp 0x4179a8
push 0x1ff
lea ecx, [esp + 0x14]
mov esi, 0x200
call fcn.00406ac0
test eax, eax
je 0x417969
push esi
push eax
push edi
call fcn.00406fc0
mov ecx, esi
sub ecx, eax
cmp ecx, 1
jg 0x417969
add esi, 0x100
lea ecx, [esp + 0x10]
lea edx, [esi - 1]
push edx
call fcn.00406ac0
test eax, eax
jne 0x417941
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.00406b80
jmp 0x4179a8
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
test edi, edi
je 0x4179a8
push edi
lea ecx, [esp + 0x14]
call fcn.00406c50
test eax, eax
je 0x4179a8
mov edx, dword [esp + 0x10]
lea eax, [edi + edi]
push eax
lea ecx, [edi + edi + 2]
push esi
push ecx
push edx
call fcn.00405800
add esp, 0x10
mov esi, 0x4a6900
mov eax, dword [esi]
push eax
mov eax, dword [esp + 0x14]
push eax
call ebx
add esp, 8
test eax, eax
je 0x417a1d
add esi, 4
cmp esi, 0x4a6914
jb 0x4179ad
mov eax, dword [esp + 0x10]
mov edx, dword [0x4b7084]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4179f8
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4179f8
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00437568
add esp, 4
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
inc eax
add edx, 4
cmp eax, ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], edx
jae 0x417a54
mov esi, dword [esp + 0x18]
jmp 0x417898
mov eax, dword [esp + 0x10]
mov edx, dword [0x4b7084]
mov dword [esp + 0x1c], 1
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x417a54
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x417a54
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00437568
add esp, 4
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x1c]
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x1420
ret 4
pop esi
mov eax, 1
pop ebx
add esp, 0x1420
ret 4