Function at 0x414825
Capabilities:
Enumerate process modules
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x422573
mov eax, dword fs:[0]
push eax
mov eax, 0x126c
call fcn.00421e90
mov eax, dword [0x435024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, ecx
push 0x42a598
mov dword [ebp - 0x25c], eax
mov dword [ebp - 0x274], ebx
call dword [0x4251fc]
xor edi, edi
cmp dword [ebp - 0x25c], edi
mov esi, 0x80004005
mov dword [ebp - 0x268], edi
mov dword [ebp - 0x258], esi
jne 0x4148bc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push edi
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, edi
mov dword [ebp - 0x25c], eax
mov dword [ebp - 0x268], 1
jne 0x4148bc
mov eax, esi
jmp 0x414b97
push 0xffc
lea eax, [ebp - 0x1274]
push edi
push eax
mov dword [ebp - 0x1278], edi
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x260]
push eax
mov esi, 0x1000
push esi
lea eax, [ebp - 0x1278]
push eax
push dword [ebp - 0x25c]
mov dword [ebp - 0x260], edi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x414b6b
cmp dword [ebp - 0x260], esi
jae 0x414b6b
xor esi, esi
test dword [ebp - 0x260], 0xfffffffc
jbe 0x414b6b
push 0x208
lea eax, [ebp - 0x21a]
push edi
push eax
mov word [ebp - 0x21c], di
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x21c]
push eax
push dword [ebp + esi*4 - 0x1278]
push dword [ebp - 0x25c]
call sub.PSAPI.DLL_GetModuleFileNameExW
cmp eax, edi
je 0x414a02
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x238]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov dword [ebp - 4], edi
mov eax, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
push dword [eax]
lea ecx, [ebp - 0x238]
push 0x5c
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::rfind_wchar_t__unsigned_int_const]
mov ecx, dword [ebp - 0x224]
sub ecx, eax
dec ecx
push ecx
inc eax
push eax
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp - 0x238]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::substr_unsigned_int__unsigned_int_]
mov byte [ebp - 4], 1
cmp dword [ebp - 0x23c], 8
mov eax, dword [ebp - 0x250]
jae 0x4149c7
lea eax, [ebp - 0x250]
push dword [ebp - 0x240]
push str.p2pliveEx.dll
push eax
call dword [sym.imp.MSVCR80.dll_wcsncmp]
add esp, 0xc
neg eax
sbb eax, eax
inc eax
jne 0x414a19
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], al
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x238]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, dword [ebp - 0x260]
inc esi
shr eax, 2
cmp esi, eax
jb 0x414922
jmp 0x414b6b
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x414a2e
lea eax, [ebp - 0x234]
push edi
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, edi
jbe 0x414b4b
push esi
call fcn.00421302
cmp dword [ebp - 0x220], 8
mov dword [ebp - 0x264], eax
mov eax, dword [ebp - 0x234]
pop ecx
jae 0x414a61
lea eax, [ebp - 0x234]
push dword [ebp - 0x264]
push esi
push edi
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x414b3f
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x26c]
push eax
push 0x42a384
push dword [ebp - 0x264]
mov dword [ebp - 0x278], 0x34
mov dword [ebp - 0x26c], edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x414b39
mov eax, dword [ebp - 0x26c]
movzx esi, word [eax + 0xa]
movzx edi, word [eax + 8]
movzx ebx, word [eax + 0xe]
movzx eax, word [eax + 0xc]
mov dword [ebp - 0x270], eax
mov eax, dword [0x435bb0]
mov ecx, 0x435bb0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x258], eax
mov byte [ebp - 4], 2
cmp dword [ebp - 0x23c], 8
mov eax, dword [ebp - 0x250]
jae 0x414af8
lea eax, [ebp - 0x250]
push dword [ebp - 0x270]
push ebx
push edi
push esi
push eax
lea eax, [ebp - 0x258]
push str.__s:_d._d._d._d_
push eax
call fcn.00405c2a
mov esi, dword [ebp - 0x258]
mov ecx, dword [ebp - 0x274]
add esp, 0x1c
push esi
call dword [0x4251fc]
lea eax, [esi - 0x10]
call fcn.0040167f
mov ebx, dword [ebp - 0x274]
xor edi, edi
mov dword [ebp - 0x258], edi
push dword [ebp - 0x264]
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
pop ecx
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x238]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
cmp dword [ebx + 0x14], edi
jne 0x414b7d
push 0x42e4a0
mov ecx, ebx
call dword [0x4251fc]
cmp dword [ebp - 0x268], edi
je 0x414b91
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x258]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00421314
leave
ret