Function at 0x10002520
Capabilities:
Check for time delay via gettickcount
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10007204
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x1000b134]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [str.Msg3.0.db]
mov dword [ebp - 0x28], eax
mov ecx, dword [0x10008518]
mov dword [ebp - 0x24], ecx
mov dx, word [0x1000851c]
mov word [ebp - 0x20], dx
mov al, byte [0x1000851e]
mov byte [ebp - 0x1e], al
push 0x80
call fcn.10005fcf
add esp, 4
mov dword [ebp - 0xac], eax
mov ecx, dword [ebp - 0xac]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x18], 0
mov edx, dword [ebp + 8]
push edx
push 0
push 0x410
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x100025b3
xor eax, eax
jmp 0x100028d0
push 0x104
push 0x1000b5d8
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.PSAPI.DLL_GetModuleFileNameExA
lea ecx, [ebp - 0x70]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
mov edx, dword [ebp - 0x68]
mov dword [ebp - 0x2c], edx
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x64]
jae 0x100028af
push 0x1c
lea ecx, [ebp - 0x4c]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_VirtualQueryEx]
cmp eax, 0x1c
je 0x1000260d
xor eax, eax
jmp 0x100028d0
cmp dword [ebp - 0x3c], 0x1000
jne 0x100028a1
cmp dword [ebp - 0x38], 4
jne 0x100028a1
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x74], ecx
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x78], edx
cmp dword [ebp - 0x78], 0x400
jl 0x100028a1
mov dword [ebp - 0x7c], 0
mov eax, dword [ebp - 0x78]
push eax
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
mov dword [ebp - 0x80], eax
lea ecx, [ebp - 0x7c]
push ecx
mov edx, dword [ebp - 0x78]
push edx
mov eax, dword [ebp - 0x80]
push eax
mov ecx, dword [ebp - 0x74]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.DLL_ReadProcessMemory]
test eax, eax
je 0x10002894
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x7c]
push ecx
mov edx, dword [ebp - 0x80]
push edx
call fcn.10002420
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x10002894
lea eax, [ebp - 0x28]
push eax
call sub.MSVCR90.dll_strlen
add esp, 4
add eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x80]
lea edx, [ecx + eax - 0x16]
mov dword [ebp - 0x84], edx
mov eax, dword [ebp - 0x84]
mov byte [eax + 0x16], 0
mov ecx, dword [ebp - 0x84]
push ecx
push 0x17
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.MSVCR90.dll_strcpy_s]
add esp, 0xc
mov eax, dword [ebp - 0x30]
push eax
lea ecx, [ebp - 0xa0]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov dword [ebp - 4], 0
mov ecx, dword [sym.imp.MSVCP90.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov edx, dword [ecx]
push edx
push 0x10008510
lea ecx, [ebp - 0xa0]
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::rfind_char_const___unsigned_int_const]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0xa4]
push eax
push 0
lea ecx, [ebp - 0xc8]
push ecx
lea ecx, [ebp - 0xa0]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::substr_unsigned_int__unsigned_int_]
mov dword [ebp - 0xe8], eax
mov edx, dword [ebp - 0xe8]
mov dword [ebp - 0xec], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0xec]
push eax
lea ecx, [ebp - 0xa0]
call dword [0x1000812c]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xc8]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [sym.imp.MSVCP90.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov edx, dword [ecx]
push edx
push 0x10008510
lea ecx, [ebp - 0xa0]
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::rfind_char_const___unsigned_int_const]
mov dword [ebp - 0xa4], eax
mov eax, dword [sym.imp.MSVCP90.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 0xa4]
add edx, 1
push edx
lea eax, [ebp - 0xe4]
push eax
lea ecx, [ebp - 0xa0]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::substr_unsigned_int__unsigned_int_]
mov dword [ebp - 0xf0], eax
mov ecx, dword [ebp - 0xf0]
mov dword [ebp - 0xf4], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0xf4]
push edx
lea ecx, [ebp - 0xa0]
call dword [0x1000812c]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xe4]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov dword [ebp - 0xa8], 0
jmp 0x100027f8
mov eax, dword [ebp - 0xa8]
add eax, 1
mov dword [ebp - 0xa8], eax
lea ecx, [ebp - 0xa0]
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::length_void_const]
cmp dword [ebp - 0xa8], eax
jae 0x10002855
mov ecx, dword [ebp - 0xa8]
push ecx
lea ecx, [ebp - 0xa0]
call dword [sym.imp.MSVCP90.dll_public:_char____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator___unsigned_int_]
movsx edx, byte [eax]
cmp edx, 0x30
jl 0x10002842
mov eax, dword [ebp - 0xa8]
push eax
lea ecx, [ebp - 0xa0]
call dword [sym.imp.MSVCP90.dll_public:_char____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator___unsigned_int_]
movsx ecx, byte [eax]
cmp ecx, 0x3a
jle 0x10002853
push 0x1000850e
lea ecx, [ebp - 0xa0]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
jmp 0x100027e9
lea ecx, [ebp - 0xa0]
call dword [sym.imp.MSVCP90.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
lea ecx, [ebp - 0xa0]
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::length_void_const]
add eax, 1
push eax
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.MSVCR90.dll_strcpy_s]
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa0]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
jmp 0x100028af
mov eax, dword [ebp - 0x80]
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov ecx, dword [ebp - 0x4c]
add ecx, dword [ebp - 0x40]
mov dword [ebp - 0x2c], ecx
jmp 0x100025e1
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
sub eax, dword [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
push edx
push str._________Time:__d_ms_n
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 8
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1000601c
mov esp, ebp
pop ebp
ret