Function at 0x486760
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x586ddb
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x615000]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 8], 0
je 0x4867e0
mov eax, dword [ebp + 8]
mov dword [ebp - 0xa8], eax
mov ecx, dword [ebp - 0xa8]
add ecx, 2
mov dword [ebp - 0xac], ecx
mov edx, dword [ebp - 0xa8]
mov ax, word [edx]
mov word [ebp - 0xae], ax
add dword [ebp - 0xa8], 2
cmp word [ebp - 0xae], 0
jne 0x4867a9
mov ecx, dword [ebp - 0xa8]
sub ecx, dword [ebp - 0xac]
sar ecx, 1
mov dword [ebp - 0xb4], ecx
jne 0x4867f9
push str.ERR:_invalid_param_input__Out_r_n
push 0x599dbc
call fcn.0040c050
add esp, 8
xor eax, eax
jmp 0x486e46
call fcn.00402270
mov dword [ebp - 0x58], eax
mov byte [ebp - 0x80], 0
xor edx, edx
mov dword [ebp - 0x7f], edx
mov dword [ebp - 0x7b], edx
mov dword [ebp - 0x77], edx
mov dword [ebp - 0x73], edx
mov dword [ebp - 0x6f], edx
mov dword [ebp - 0x6b], edx
mov dword [ebp - 0x67], edx
mov word [ebp - 0x63], dx
mov byte [ebp - 0x61], dl
mov eax, dword [ebp + 8]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jne 0x48683b
mov dword [ebp - 0xb8], 0
jmp 0x48689c
mov ecx, dword [ebp - 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x3fffffff
jle 0x486860
mov dword [ebp - 0xbc], 0
jmp 0x486890
mov eax, dword [ebp - 0x14]
shl eax, 1
call fcn.0056a8e0
mov dword [ebp - 0xc0], esp
mov edx, dword [ebp - 0x58]
push edx
mov eax, dword [ebp - 0x14]
shl eax, 1
push eax
mov ecx, dword [ebp - 0x48]
push ecx
mov edx, dword [ebp - 0xc0]
push edx
call fcn.004022d0
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0xb8], eax
mov ecx, dword [ebp - 0xb8]
push ecx
push 0x20
lea edx, [ebp - 0x80]
push edx
push 0x5947d3
push 0x599dc8
push 0x599dd0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x4868da
lea eax, [ebp - 0x80]
push eax
push str.Read_report_server_ip_S_r_n
push 0x599e14
call fcn.0040c050
add esp, 0xc
jmp 0x4868fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERR:_can_not_get_report_ip_conf_err_d__Out_r_n
push 0x599e80
call fcn.0040c050
add esp, 0xc
xor eax, eax
jmp 0x486e46
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0x599e8c
push 0x599e98
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x60], eax
mov edx, dword [ebp - 0x60]
push edx
push str.Read_report_server_port_d_r_n
push 0x599eec
call fcn.0040c050
add esp, 0xc
cmp dword [ebp - 0x60], 0
jne 0x48694f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERR:_can_not_get_report_port_conf_err_d__Out_r_n
push 0x599f5c
call fcn.0040c050
add esp, 0xc
xor eax, eax
jmp 0x486e46
lea eax, [ebp - 0x80]
push eax
mov ecx, 0x63b220
call fcn.00405fb0
mov ecx, dword [ebp - 0x60]
mov dword [0x63b23c], ecx
mov edx, dword [ebp + 8]
push edx
push 1
push str.network_flow
push 0x599f84
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [0x63b444], eax
mov eax, dword [ebp + 8]
push eax
push 0
push 0x599f9c
push 0x599fb0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [0x63b420], eax
mov ecx, dword [0x63b420]
push ecx
push str.Read_last_handle_event_audit_time_d_r_n
push 0x59a018
call fcn.0040c050
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
push 0
push 0x59a024
push 0x59a03c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [0x63b424], eax
mov eax, dword [0x63b424]
push eax
push str.Read_last_handle_event_audit_record_d_r_n
push 0x59a0ac
call fcn.0040c050
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push 0
push str.localset
push 0x59a0cc
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x54], eax
mov edx, dword [ebp - 0x54]
push edx
push str.Read_report_local_set_d_r_n
push 0x59a11c
call fcn.0040c050
add esp, 0xc
xor eax, eax
cmp eax, dword [ebp - 0x54]
sbb ecx, ecx
neg ecx
mov dword [0x63b240], ecx
mov edx, dword [ebp + 8]
push edx
push 0
push str.selflearn
push str.selflearn_conf
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x88]
push eax
push str.Read_report_self_learn_d_r_n
push 0x59a194
call fcn.0040c050
add esp, 0xc
mov ecx, dword [ebp - 0x88]
mov dword [0x63b40c], ecx
mov edx, dword [ebp + 8]
push edx
push 0
push str.heartbeat
push str.heartbeat_conf
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
push eax
push str.Read_report_heartbeat_d_r_n
push 0x59a20c
call fcn.0040c050
add esp, 0xc
cmp dword [ebp - 0x4c], 0
jne 0x486aa8
mov dword [ebp - 0xc4], 0x5a0
jmp 0x486ab1
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0xc4], ecx
mov edx, dword [ebp - 0xc4]
mov dword [0x63b410], edx
mov eax, dword [ebp + 8]
push eax
push 0
push str.detect_cdrom_exist
push 0x59a240
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
push ecx
push str.Read_report_detect_CDRom_exist_d_r_n
push 0x59a254
call fcn.0040c050
add esp, 0xc
cmp dword [ebp - 0x5c], 0
jne 0x486afe
mov dword [ebp - 0xc8], 0x1e
jmp 0x486b07
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0xc8], edx
mov eax, dword [ebp - 0xc8]
mov dword [0x63b414], eax
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0x59a2a8
push 0x59a2cc
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
push edx
push str.Read_report_detect_local_port_d_r_n
push 0x59a328
call fcn.0040c050
add esp, 0xc
cmp dword [ebp - 0x18], 0
jne 0x486b53
mov dword [ebp - 0xcc], 0x3c
jmp 0x486b5c
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xcc], eax
mov ecx, dword [ebp - 0xcc]
mov dword [0x63b418], ecx
mov edx, dword [ebp + 8]
push edx
push 0x3c
push str.system_running
push 0x59a354
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [0x63b448], eax
mov eax, dword [ebp + 8]
push eax
push 0x15180
push str.system_software
push 0x59a388
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [0x63b44c], eax
mov ecx, dword [ebp + 8]
push ecx
push 0x384
push str.system_base_info
push 0x59a3c0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [0x63b450], eax
mov edx, dword [ebp + 8]
push edx
push 0x384
push str.network_card
push 0x59a3f0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [0x63b454], eax
mov eax, dword [ebp + 8]
push eax
push 0x384
push str.open_port_detail
push 0x59a428
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [0x63b458], eax
mov ecx, dword [ebp + 8]
push ecx
push 0x384
push str.system_patch
push 0x59a458
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [0x63b45c], eax
mov edx, dword [ebp + 8]
push edx
push 0x384
push str.system_hardware
push 0x59a48c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [0x63b460], eax
mov eax, dword [ebp + 8]
push eax
push 0x384
push str.process_info
push 0x59a4bc
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [0x63b464], eax
mov ecx, dword [ebp + 8]
push ecx
push 0x384
push str.scan_assets
push 0x59a4e8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [0x63b468], eax
mov edx, dword [ebp + 8]
push edx
push 0
push str.cmd_max_len
push 0x59a514
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
push eax
push str.Read_report_cmd_max_length_d_r_n
push str.ParseConf
call fcn.0040c050
add esp, 0xc
cmp dword [ebp - 0x50], 0
jne 0x486cb4
mov dword [ebp - 0xd0], 0x400
jmp 0x486cbd
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0xd0], ecx
mov edx, dword [ebp - 0xd0]
mov dword [0x63b41c], edx
xor eax, eax
mov word [ebp - 0x30], ax
xor ecx, ecx
mov dword [ebp - 0x2e], ecx
mov dword [ebp - 0x2a], ecx
mov dword [ebp - 0x26], ecx
mov dword [ebp - 0x22], ecx
mov word [ebp - 0x1e], cx
mov edx, dword [ebp + 8]
push edx
push 0xa
lea eax, [ebp - 0x30]
push eax
push 0x59a574
push str.PROCESS
push 0x59a588
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x486d54
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0xa4]
call fcn.004060b0
mov dword [ebp - 0xd4], eax
mov edx, dword [ebp - 0xd4]
mov dword [ebp - 0xd8], edx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0xd8]
push eax
mov ecx, 0x63b428
call fcn.0042b0a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa4]
call fcn.004060f0
xor ecx, ecx
mov word [ebp - 0x44], cx
xor edx, edx
mov dword [ebp - 0x42], edx
mov dword [ebp - 0x3e], edx
mov dword [ebp - 0x3a], edx
mov dword [ebp - 0x36], edx
mov word [ebp - 0x32], dx
mov eax, dword [ebp + 8]
push eax
push 0xa
lea ecx, [ebp - 0x44]
push ecx
push 0x59a5a0
push 0x59a5a4
push 0x59a5ac
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x486e29
lea edx, [ebp - 0x44]
mov dword [ebp - 0x48], edx
cmp dword [ebp - 0x48], 0
jne 0x486db0
mov dword [ebp - 0xdc], 0
jmp 0x486e11
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x3fffffff
jle 0x486dd5
mov dword [ebp - 0xe0], 0
jmp 0x486e05
mov eax, dword [ebp - 0x14]
shl eax, 1
call fcn.0056a8e0
mov dword [ebp - 0xe4], esp
mov ecx, dword [ebp - 0x58]
push ecx
mov edx, dword [ebp - 0x14]
shl edx, 1
push edx
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0xe4]
push ecx
call fcn.004022d0
mov dword [ebp - 0xe0], eax
mov edx, dword [ebp - 0xe0]
mov dword [ebp - 0xdc], edx
mov eax, dword [ebp - 0xdc]
push eax
call fcn.0055f09e
add esp, 4
push eax
call fcn.0048f440
add esp, 4
mov ecx, dword [ebp + 8]
push ecx
call fcn.00485210
add esp, 4
mov edx, dword [ebp + 8]
push edx
call fcn.004854f0
add esp, 4
mov eax, 1
lea esp, [ebp - 0xe8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0055abea
mov esp, ebp
pop ebp
ret