Function at 0x1005fa40
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 8], 0
jne 0x1005fa60
push str.ActivateBreakpoints:_Error__tracked_region_argument_NULL._n
call fcn.1003cfa0
add esp, 4
xor eax, eax
jmp 0x1005ff90
cmp dword [0x1065f9e4], 0
jne 0x1005fa74
push 0x1065f9e0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [0x1065f9e4], 0
jne 0x1005fa91
push str.ActivateBreakpoints:_Failed_to_obtain_system_page_size._n
call fcn.1003e700
add esp, 4
xor eax, eax
jmp 0x1005ff90
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
push str.ActivateBreakpoints:_TrackedRegion__AllocationBase:_0x_p__TrackedRegion__RegionSize:_0x_x__thread__d_n
call fcn.1003cfa0
add esp, 0x10
mov edx, dword [ebp + 8]
cmp dword [edx + 8], 0
je 0x1005facf
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x1005facf
cmp dword [ebp - 8], 0
jne 0x1005faf4
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
push str.ActivateBreakpoints:_Error__one_of_the_following_is_NULL___TrackedRegion__AllocationBase:_0x_p__TrackedRegion__RegionSize:_0x_x__thread__d_n
call fcn.1003cfa0
add esp, 0x10
xor eax, eax
jmp 0x1005ff90
cmp dword [0x1065f20c], 0
je 0x1005fc3f
mov eax, dword [ebp + 8]
cmp eax, dword [0x1065f20c]
je 0x1005fc3f
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
mov eax, dword [0x1065f20c]
mov ecx, dword [eax]
push ecx
push str.ActivateBreakpoints:_Switching_breakpoints_from_region_0x_p_to_0x_p._n
call fcn.1003cfa0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call fcn.10039f90
add esp, 4
mov edx, dword [0x1065f20c]
mov dword [edx + 0x98], eax
call fcn.1003b890
mov eax, dword [0x1065f20c]
cmp dword [eax + 0x50], 0
jne 0x1005fba0
mov ecx, dword [0x1065f20c]
mov edx, dword [ecx]
cmp edx, dword [0x1065f93c]
je 0x1005fba0
mov eax, dword [0x1065f20c]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [0x1065f20c]
mov eax, dword [edx]
push eax
call fcn.10038990
add esp, 8
test eax, eax
je 0x1005fba0
mov ecx, dword [0x1065f20c]
mov dword [ecx + 0x54], 1
mov edx, dword [0x1065f20c]
push edx
call fcn.1005cec0
add esp, 4
mov eax, dword [ebp + 8]
mov dword [0x1065f20c], eax
mov ecx, dword [0x1065f20c]
cmp dword [ecx + 0x90], 0
je 0x1005fc3f
mov edx, dword [0x1065f20c]
cmp dword [edx + 0x98], 0
je 0x1005fc3f
mov eax, dword [0x1065f20c]
mov ecx, dword [eax + 0x98]
push ecx
call fcn.1003c950
add esp, 4
test eax, eax
jne 0x1005fc0f
mov edx, dword [0x1065f20c]
mov eax, dword [edx]
push eax
push str.ActivateBreakpoints:_Failed_to_restore_region_breakpoints_for_region_at_0x_p._n
call fcn.1003cfa0
add esp, 8
mov ecx, dword [0x1065f20c]
mov dword [ecx + 0x90], 0
xor eax, eax
jmp 0x1005ff90
mov edx, dword [0x1065f20c]
mov eax, dword [edx]
push eax
push str.ActivateBreakpoints:_Restored_region_breakpoints_for_region_at_0x_p._n
call fcn.1003cfa0
add esp, 8
mov ecx, dword [0x1065f20c]
mov dword [ecx + 0x90], 1
mov eax, 1
jmp 0x1005ff90
mov edx, dword [ebp + 8]
cmp dword [edx + 0x50], 0
je 0x1005fc5f
push str.ActivateBreakpoints:_Current_tracked_region_has_already_been_dumped._n
call fcn.1003cfa0
add esp, 4
mov eax, 1
jmp 0x1005ff90
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0
je 0x1005fc86
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 4]
cmp eax, dword [edx]
je 0x1005fc86
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
mov dword [ecx + 0x80], eax
jmp 0x1005fc94
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov dword [ecx + 0x80], eax
mov ecx, dword [0x1065f9d8]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x80]
mov dword [ecx + 0x1c], eax
call fcn.1003b890
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x80]
movzx eax, byte [edx]
test eax, eax
je 0x1005fdd4
cmp dword [ebp + 0xc], 0
jne 0x1005fd4e
push 0x1005f210
push 0
push 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x80]
push edx
push 0
mov eax, dword [ebp + 8]
add eax, 0x84
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call fcn.1003cbe0
add esp, 0x1c
test eax, eax
jne 0x1005fd25
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x80]
push edx
push str.ActivateBreakpoints:_SetNextAvailableBreakpoint_failed_to_set_exec_bp_on_tracked_region_protect_address_0x_p._n
call fcn.1003cfa0
add esp, 8
mov eax, dword [ebp + 8]
mov dword [eax + 0x80], 0
xor eax, eax
jmp 0x1005ff90
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x80]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x80]
movzx edx, byte [ecx]
push edx
push str.ActivateBreakpoints:_Set_execution_breakpoint_on_non_zero_byte_0x_x_at_protected_address:_0x_p_n
call fcn.1003cfa0
add esp, 0xc
jmp 0x1005fdcf
push 0x1005f210
push 0
push 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x80]
push ecx
push 0
mov edx, dword [ebp + 8]
add edx, 0x84
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
push ecx
call fcn.1003c320
add esp, 0x1c
test eax, eax
jne 0x1005fdab
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x80]
push eax
push 0x103e06b0
call fcn.1003cfa0
add esp, 8
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x80], 0
xor eax, eax
jmp 0x1005ff90
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x80]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x80]
movzx eax, byte [edx]
push eax
push 0x103e0650
call fcn.1003cfa0
add esp, 0xc
jmp 0x1005fec3
cmp dword [ebp + 0xc], 0
jne 0x1005fe4f
push 0x1005f740
push 0
push 1
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x80]
push edx
push 2
mov eax, dword [ebp + 8]
add eax, 0x84
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call fcn.1003cbe0
add esp, 0x1c
test eax, eax
jne 0x1005fe36
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x80]
push edx
push str.ActivateBreakpoints:_SetNextAvailableBreakpoint_failed_to_set_write_bp_on_tracked_region_protect_address_0x_p._n
call fcn.1003cfa0
add esp, 8
mov eax, dword [ebp + 8]
mov dword [eax + 0x80], 0
xor eax, eax
jmp 0x1005ff90
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x80]
push edx
push str.ActivateBreakpoints:_Set_write_breakpoint_on_empty_protect_address:_0x_p_n
call fcn.1003cfa0
add esp, 8
jmp 0x1005fec3
push 0x1005f740
push 0
push 1
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x80]
push ecx
push 2
mov edx, dword [ebp + 8]
add edx, 0x84
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
push ecx
call fcn.1003c320
add esp, 0x1c
test eax, eax
jne 0x1005feac
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x80]
push eax
push 0x103e04b8
call fcn.1003cfa0
add esp, 8
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x80], 0
xor eax, eax
jmp 0x1005ff90
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x80]
push eax
push 0x103e03f8
call fcn.1003cfa0
add esp, 8
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov dword [ebp - 4], edx
cmp dword [ebp + 0xc], 0
jne 0x1005ff2b
push 0x1005ef30
push 0
push 1
mov eax, dword [ebp - 4]
add eax, 0x3c
push eax
push 4
lea ecx, [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call fcn.1003cbe0
add esp, 0x1c
test eax, eax
jne 0x1005ff15
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x80]
push eax
push str.ActivateBreakpoints:_SetNextAvailableBreakpoint_failed_to_set_write_bp_on_e_lfanew_address_0x_p._n
call fcn.1003cfa0
add esp, 8
xor eax, eax
jmp 0x1005ff90
mov ecx, dword [ebp - 4]
add ecx, 0x3c
push ecx
push str.ActivateBreakpoints:_Set_write_breakpoint_on_e_lfanew_address:_0x_p_n
call fcn.1003cfa0
add esp, 8
jmp 0x1005ff83
push 0x1005ef30
push 0
push 1
mov edx, dword [ebp - 4]
add edx, 0x3c
push edx
push 4
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
push edx
call fcn.1003c320
add esp, 0x1c
test eax, eax
jne 0x1005ff6f
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x80]
push ecx
push 0x103e0270
call fcn.1003cfa0
add esp, 8
xor eax, eax
jmp 0x1005ff90
mov edx, dword [ebp - 4]
add edx, 0x3c
push edx
push 0x103e0228
call fcn.1003cfa0
add esp, 8
mov eax, dword [ebp + 8]
mov dword [0x1065f20c], eax
mov eax, 1
mov esp, ebp
pop ebp
ret