Function at 0x517fd0
Capabilities:
Enumerate process modules

Disassembly:
push 0xffffffffffffffff
push 0x5d1e47
mov eax, dword fs:[0]
push eax
sub esp, 0x2d0
mov eax, dword [0x65d4e4]
xor eax, esp
mov dword [esp + 0x2cc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x65d4e4]
xor eax, esp
push eax
lea eax, [esp + 0x2e4]
mov dword fs:[0], eax
mov esi, dword [esp + 0x2f4]
push esi
push 8
mov dword [esp + 0x24], ecx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
mov dword [esp + 0x14], edi
xor ebx, ebx
cmp edi, 0xffffffff
mov dword [esp + 0x2ec], ebx
jne 0x518117
push 1
push 2
lea ecx, [esp + 0x44]
call fcn.0040b040
mov byte [esp + 0x2ec], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._of_module_
push esi
lea eax, [esp + 0x48]
push str.CreateToolhelp32Snapshot__
push eax
call fcn.00409b60
add esp, 8
mov ecx, eax
call fcn.004024e0
push eax
call fcn.00409b60
add esp, 8
mov ecx, eax
call fcn.004024e0
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x40]
call fcn.004094f0
mov esi, 0x10
cmp dword [eax + 0x18], esi
mov byte [esp + 0x2ec], 2
jb 0x5180a6
mov eax, dword [eax + 4]
jmp 0x5180a9
add eax, 4
push eax
push str.BaseLib::CModlesManage::Enumerate
push 0x22
push str..ywSMPpubProcessManage.cpp
push 0x5001
call fcn.00409860
mov ecx, eax
call fcn.004fb930
cmp dword [esp + 0x38], esi
jb 0x5180da
mov edx, dword [esp + 0x24]
push edx
call fcn.00595eb8
add esp, 4
lea ecx, [esp + 0x88]
mov byte [esp + 0x2ec], bl
call fcn.00409e00
lea eax, [esp + 0x88]
push eax
mov dword [esp + 0x8c], vtable.std::ios_base.0
call fcn.005cdcde
add esp, 4
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x518326
lea ecx, [esp + 0xbc]
push ecx
push edi
mov dword [esp + 0xc4], 0x224
call sub.KERNEL32.dll_Module32First
test eax, eax
jne 0x518202
push 1
push 2
lea ecx, [esp + 0x44]
call fcn.0040b040
mov byte [esp + 0x2ec], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x40]
push str.Module32First__
push edx
call fcn.00409b60
add esp, 8
mov ecx, eax
call fcn.004024e0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x40]
call fcn.004094f0
mov esi, 0x10
cmp dword [eax + 0x18], esi
mov byte [esp + 0x2ec], 4
jb 0x518192
mov eax, dword [eax + 4]
jmp 0x518195
add eax, 4
push eax
push str.BaseLib::CModlesManage::Enumerate
push 0x2b
push str..ywSMPpubProcessManage.cpp
push 0x5001
call fcn.00409860
mov ecx, eax
call fcn.004fb930
cmp dword [esp + 0x38], esi
jb 0x5181c6
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00595eb8
add esp, 4
lea ecx, [esp + 0x88]
mov byte [esp + 0x2ec], bl
call fcn.00409e00
lea edx, [esp + 0x88]
push edx
mov dword [esp + 0x8c], vtable.std::ios_base.0
call fcn.005cdcde
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x518326
push 0x50
call fcn.00595e8d
add esp, 4
cmp eax, ebx
je 0x51823d
mov ecx, 0xf
mov dword [eax + 0x18], ecx
mov dword [eax + 0x14], ebx
mov byte [eax + 4], bl
mov dword [eax + 0x34], ecx
mov dword [eax + 0x30], ebx
mov byte [eax + 0x20], bl
mov dword [eax + 0x38], ebx
mov dword [eax + 0x3c], ebx
mov dword [eax + 0x40], ebx
mov dword [eax + 0x44], ebx
mov dword [eax + 0x48], ebx
mov dword [eax + 0x4c], ebx
mov esi, eax
jmp 0x51823f
xor esi, esi
cmp esi, ebx
mov dword [esp + 0x18], esi
je 0x518304
lea eax, [esp + 0xdc]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x518255
sub eax, edx
push eax
lea eax, [esp + 0xe0]
push eax
mov ecx, esi
call fcn.00409790
mov ecx, dword [esp + 0xc8]
mov dword [esi + 0x3c], ecx
mov edx, dword [esp + 0xd0]
mov dword [esi + 0x44], edx
mov eax, dword [esp + 0xd4]
mov dword [esi + 0x48], eax
mov ecx, dword [esp + 0xcc]
mov dword [esi + 0x40], ecx
mov edx, dword [esp + 0xc4]
mov dword [esi + 0x38], edx
mov eax, dword [esp + 0xd8]
mov dword [esi + 0x4c], eax
lea eax, [esp + 0x1dc]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x5182b6
sub eax, edx
push eax
lea ecx, [esp + 0x1e0]
push ecx
lea ecx, [esi + 0x1c]
call fcn.00409790
mov esi, dword [esp + 0x1c]
mov edi, dword [esi + 8]
mov eax, dword [edi + 4]
add esi, 4
lea edx, [esp + 0x18]
push edx
push eax
push edi
mov ecx, esi
call fcn.0050ded0
push 1
mov ecx, esi
mov ebp, eax
call fcn.00530bf0
mov dword [edi + 4], ebp
mov ecx, dword [ebp + 4]
mov edi, dword [esp + 0x14]
mov dword [ecx], ebp
lea edx, [esp + 0xbc]
push edx
push edi
call sub.KERNEL32.dll_Module32Next
test eax, eax
jne 0x518202
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [esp + 0x2e4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2cc]
xor ecx, esp
call fcn.005b1988
add esp, 0x2dc
ret 4