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

Disassembly:
mov eax, 0x141c
call fcn.0044c0a0
mov eax, dword [esp + 0x1420]
push ebx
push esi
xor ebx, ebx
push eax
push ebx
push 0x410
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
mov dword [esp + 0xc], esi
je 0x40b56b
mov cx, word [0x491808]
push ebp
push edi
mov word [esp + 0x24], cx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x26]
lea edx, [esp + 0x1c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push edx
lea eax, [esp + 0x430]
push 0x1000
push eax
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x40b54f
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], ebx
cmp eax, ebx
jbe 0x40b54f
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
lea ebx, [esp + 0x42c]
mov edx, dword [ebx]
lea ecx, [esp + 0x24]
push 0x104
push ecx
push edx
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
je 0x40b4fb
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40b4fb
lea ecx, [esp + 0x24]
push ecx
call ebp
mov edx, dword [0x4881a0]
mov esi, eax
test esi, esi
mov dword [esp + 0x10], edx
je 0x40b4a8
shr eax, 0x10
jne 0x40b476
and esi, 0xffff
lea ecx, [esp + 0x22c]
mov edi, esi
push 0x100
push ecx
push edi
call fcn.00403a10
mov edx, 0x100
sub edx, eax
cmp edx, 1
jle 0x40b42a
lea eax, [esp + 0x22c]
lea ecx, [esp + 0x10]
push eax
call fcn.00402c90
jmp 0x40b4a8
push 0x1ff
lea ecx, [esp + 0x14]
mov esi, 0x200
call fcn.004034f0
test eax, eax
je 0x40b469
push esi
push eax
push edi
call fcn.00403a10
mov ecx, esi
sub ecx, eax
cmp ecx, 1
jg 0x40b469
add esi, 0x100
lea ecx, [esp + 0x10]
lea edx, [esi - 1]
push edx
call fcn.004034f0
test eax, eax
jne 0x40b441
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.004035b0
jmp 0x40b4a8
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
test edi, edi
je 0x40b4a8
push edi
lea ecx, [esp + 0x14]
call fcn.004036b0
test eax, eax
je 0x40b4a8
mov edx, dword [esp + 0x10]
lea eax, [edi + edi]
push eax
lea ecx, [edi + edi + 2]
push esi
push ecx
push edx
call fcn.004029e0
add esp, 0x10
mov esi, 0x47c5e0
mov eax, dword [esi]
push eax
mov eax, dword [esp + 0x14]
push eax
call fcn.0044c1ff
add esp, 8
test eax, eax
je 0x40b518
add esi, 4
cmp esi, 0x47c5f4
jb 0x40b4ad
mov eax, dword [esp + 0x10]
mov edx, dword [0x4881a4]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40b4fb
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40b4fb
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.004472d3
add esp, 4
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
inc eax
add ebx, 4
cmp eax, ecx
mov dword [esp + 0x20], eax
jae 0x40b54f
mov esi, dword [esp + 0x14]
jmp 0x40b39e
mov eax, dword [esp + 0x10]
mov edx, dword [0x4881a4]
mov dword [esp + 0x18], 1
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40b54f
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40b54f
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.004472d3
add esp, 4
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x141c
ret 4
pop esi
mov eax, 1
pop ebx
add esp, 0x141c
ret 4