Function at 0x10008364
Capabilities:
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x964
mov eax, dword [0x10113a30]
xor eax, ebp
mov dword [ebp + 0x70], eax
push ebx
push edi
push dword [ebp + 0x7c]
push str._RAWLAPI__EnableDhcpServerEx_opmode___d________n
push 3
pop edi
push edi
call fcn.1000926a
add esp, 0xc
push str.ICSDHCP_EnableDhcpServerEx
push dword [0x1011cc28]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0x8f0], eax
jne 0x100083b4
push 0xffffffffffffff95
pop eax
jmp 0x10008a8c
push esi
push 0x40
pop esi
push esi
lea eax, [ebp + 0x30]
push ebx
push eax
call fcn.1008ef90
push esi
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.1008ef90
push esi
lea eax, [ebp - 0x50]
push ebx
push eax
call fcn.1008ef90
push dword [0x1011d148]
push str._RAWLAPI__EnableDhcpServerEx_gVar.bWiFiDirectVPort2___d_n
push edi
call fcn.1000926a
mov eax, dword [0x1011d148]
add esp, 0x30
cmp dword [ebp + 0x7c], edi
jne 0x100083fb
cmp eax, ebx
je 0x10008405
cmp dword [ebp + 0x7c], 2
jne 0x100084b8
push 0x514
lea eax, [ebp - 0x8e4]
push ebx
push eax
call fcn.1008ef90
lea eax, [ebp - 0x8e4]
push 2
push eax
call fcn.1000461a
push eax
push str._RAWLAPI__EnableDhcpServerEx__d_GetVMPortStatus_n
push edi
mov dword [ebp - 0x8ec], eax
call fcn.1000926a
add esp, 0x20
cmp dword [ebp - 0x8ec], 1
jne 0x10008489
push str._RAWLAPI__EnableDhcpServerEx_VM_ENABLED___n
push edi
call fcn.1000926a
push esi
lea eax, [ebp - 0x71c]
push eax
lea eax, [ebp + 0x30]
push eax
call fcn.1008ebc0
push esi
lea eax, [ebp - 0x8e4]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.1008ebc0
push esi
lea eax, [ebp - 0x8a4]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.1008ebc0
add esp, 0x2c
jmp 0x10008517
mov eax, str.RAWL_ERROR_WFD_VM_DISALED
jb 0x10008495
mov eax, str.RAWL_ERROR_WFD_VM_UNINSTALLED
push eax
push str._RAWLAPI__EnableDhcpServerEx__s___n
push 1
call fcn.1000926a
add esp, 0xc
cmp dword [ebp - 0x8ec], 1
sbb eax, eax
neg eax
add eax, 0xffffffec
jmp 0x10008a8b
cmp dword [ebp + 0x7c], edi
jne 0x100084e7
cmp eax, ebx
je 0x100084e7
push esi
lea eax, [ebp + 0x30]
push 0x1011cdfc
push eax
call fcn.1008ebc0
push esi
lea eax, [ebp - 0x10]
push 0x1011cc34
push eax
call fcn.1008ebc0
push esi
push 0x1011cc74
jmp 0x1000850b
push esi
lea eax, [ebp + 0x30]
push 0x1011c8cc
push eax
call fcn.1008ebc0
push esi
lea eax, [ebp - 0x10]
push 0x1011c704
push eax
call fcn.1008ebc0
push esi
push 0x1011c744
lea eax, [ebp - 0x50]
push eax
call fcn.1008ebc0
add esp, 0x24
lea eax, [ebp + 0x30]
push eax
call dword [ebp - 0x8f0]
lea ecx, [ebp + 0x30]
push ecx
push eax
push str._RAWLAPI__EnableDhcpServerEx_FALSE________d_fnICSDHCP_EnableDhcpServerEx__s___n
push edi
mov dword [ebp - 0x8e8], eax
call fcn.1000926a
mov eax, dword [ebp - 0x8e8]
add esp, 0x14
cmp eax, ebx
jne 0x1000856f
dec dword [0x1011cc30]
push dword [0x1011cc30]
push str._RAWLAPI_______Success____fnICSDHCP_EnableDhcpServerEx_1st__gVar.nEnableDhcpServer___d__n
push edi
call fcn.1000926a
lea eax, [ebp + 0x30]
push eax
call fcn.10006269
xor eax, eax
add esp, 0x10
inc eax
jmp 0x10008a8b
cmp eax, 5
jne 0x1000858a
push str._RAWLAPI_______ICS_ERROR_MESSAGE_LICENSE_CHECK_FAIL__fnICSDHCP_EnableDhcpServerEx_1st__n
push 1
call fcn.1000926a
pop ecx
pop ecx
push 0xfffffffffffffff5
pop eax
jmp 0x10008a8b
cmp eax, 0xd
je 0x100085b4
cmp eax, 0xe
je 0x100085b4
dec dword [0x1011cc30]
push dword [0x1011cc30]
push eax
push str._RAWLAPI_______d__fnICSDHCP_EnableDhcpServerEx_1st___gVar.nEnableDhcpServer___d_n
push edi
call fcn.1000926a
add esp, 0x10
jmp 0x10008a89
push 0x20
lea eax, [ebp - 0x3d0]
push ebx
push eax
call fcn.1008ef90
push esi
lea eax, [ebp - 0x90]
push ebx
push eax
mov dword [ebp - 0x3d0], ebx
call fcn.1008ef90
mov esi, pe_nt_image_headers32
push esi
lea eax, [ebp - 0x390]
push ebx
push eax
call fcn.1008ef90
push esi
lea eax, [ebp - 0x190]
push ebx
push eax
call fcn.1008ef90
push esi
lea eax, [ebp - 0x290]
push ebx
push eax
call fcn.1008ef90
add esp, 0x3c
push esi
lea eax, [ebp - 0x390]
push eax
push 0x100ce7c8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x390]
push eax
lea eax, [ebp - 0x190]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x190]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [ebp - 0x190]
dec ecx
add eax, ecx
jmp 0x10008650
dec eax
cmp byte [eax], 0x5c
jne 0x1000864f
mov byte [eax + 1], bl
push str.ICSDHCP.ini
lea eax, [ebp - 0x190]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp dword [ebp - 0x8e8], 0xd
jne 0x100086b1
lea eax, [ebp - 0x190]
push eax
push esi
lea eax, [ebp - 0x290]
push eax
push str.192.168.123.1
push str.DHCPServerIP1
push 0x100cfbb0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x290]
push eax
xor esi, esi
push str._RAWLAPI__ICS_ERROR_DHCP_IP1_NOT_FOUND__fnICSDHCP_EnableDhcpServerEx_1st______get_DHCPServerIP___s_n
inc esi
push esi
call fcn.1000926a
add esp, 0xc
jmp 0x100086f7
cmp dword [ebp - 0x8e8], 0xe
jne 0x100086f4
lea eax, [ebp - 0x190]
push eax
push esi
lea eax, [ebp - 0x290]
push eax
push str.172.16.0.1
push str.DHCPServerIP2
push 0x100cfbb0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x290]
push eax
push str._RAWLAPI__ICS_ERROR_DHCP_IP2_NOT_FOUND__fnICSDHCP_EnableDhcpServerEx_1st______get_DHCPServerIP___s_n
push 1
call fcn.1000926a
add esp, 0xc
xor esi, esi
inc esi
lea eax, [ebp - 0x3cc]
push eax
lea eax, [ebp - 0x290]
push eax
call fcn.10008dbc
push 0x40
lea eax, [ebp - 0x90]
push ebx
push eax
call fcn.1008ef90
lea eax, [ebp - 0x90]
push str.255.255.255.0
push eax
call fcn.1008e4f0
lea eax, [ebp - 0x3c8]
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.10008dbc
add esp, 0x24
cmp dword [0x1011cc18], 0x1f
lea eax, [ebp - 0x3d0]
push eax
lea eax, [ebp + 0x30]
push eax
jl 0x10008785
call fcn.1000246d
movzx ecx, byte [ebp - 0x3c9]
push ecx
movzx ecx, byte [ebp - 0x3ca]
push ecx
movzx ecx, byte [ebp - 0x3cb]
push ecx
movzx ecx, byte [ebp - 0x3cc]
push ecx
lea ecx, [ebp + 0x30]
push ecx
push eax
push str._RAWLAPI________d__SetNetConfigSrv__s__NetInfo.IpAddrs___d._d._d._d_____n
jmp 0x100087b4
call fcn.10007f51
movzx ecx, byte [ebp - 0x3c9]
push ecx
movzx ecx, byte [ebp - 0x3ca]
push ecx
movzx ecx, byte [ebp - 0x3cb]
push ecx
movzx ecx, byte [ebp - 0x3cc]
push ecx
lea ecx, [ebp + 0x30]
push ecx
push eax
push str._RAWLAPI________d__SetNetConfigbyNetsh__s__NetInfo.IpAddrs___d._d._d._d_____n
push edi
call fcn.1000926a
lea eax, [ebp + 0x30]
add esp, 0x28
push eax
call fcn.10006269
lea eax, [ebp + 0x30]
push eax
push str._RAWLAPI_______WriteDHCPNetCfgInstanceIDToReg__s__n
push edi
call fcn.1000926a
lea eax, [ebp + 0x30]
push eax
call dword [ebp - 0x8f0]
push eax
push dword [0x1011cc30]
push str._RAWLAPI__gVar.nEnableDhcpServer___d______fnICSDHCP_EnableDhcpServerEx___d_n
push edi
call fcn.1000926a
push 0x20
lea eax, [ebp - 0x3b0]
push ebx
push eax
mov dword [ebp - 0x8e8], 0x5a
call fcn.1008ef90
add esp, 0x30
lea eax, [ebp + 0x30]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x8e8]
push str._RAWLAPI________d_sec_::_check_NetConfig__s___s___n
push edi
call fcn.1000926a
lea eax, [ebp - 0x3b0]
push eax
lea eax, [ebp + 0x30]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.10001f0a
add esp, 0x20
push 0x3e8
mov dword [ebp - 0x8ec], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
dec dword [ebp - 0x8e8]
cmp dword [ebp - 0x8e8], ebx
jle 0x10008888
cmp dword [ebp - 0x8ec], esi
jne 0x10008888
push 4
lea eax, [ebp - 0x3cc]
push eax
lea eax, [ebp - 0x3ac]
push eax
call fcn.1009060d
add esp, 0xc
test eax, eax
je 0x10008888
cmp dword [0x1011cc30], ebx
jg 0x1000880d
movzx eax, byte [ebp - 0x3a9]
push eax
movzx eax, byte [ebp - 0x3aa]
push eax
movzx eax, byte [ebp - 0x3ab]
push eax
movzx eax, byte [ebp - 0x3ac]
push eax
push dword [0x1011cc30]
push dword [ebp - 0x8ec]
push dword [ebp - 0x8e8]
push str._RAWLAPI_______check_NetConfig_in_nTimeOut___d_sec___GetNetConfig___d__gVar.nEnableDhcpServer__d__GetNetInfo.IpAddrs___d._d._d._d_n
push edi
call fcn.1000926a
mov eax, dword [0x1011cc30]
add esp, 0x24
cmp eax, ebx
jle 0x10008a1e
dec eax
push eax
push str._RAWLAPI__gVar.nEnableDhcpServer___d______fnICSDHCP_EnableDhcpServerEx_n
push edi
mov dword [0x1011cc30], eax
call fcn.1000926a
lea eax, [ebp + 0x30]
push eax
call dword [ebp - 0x8f0]
add esp, 0x10
cmp eax, ebx
jne 0x10008925
push str._RAWLAPI_______Success____fnICSDHCP_EnableDhcpServerEx_2nd_n
push edi
call fcn.1000926a
lea eax, [ebp + 0x30]
push eax
call fcn.10006269
lea eax, [ebp + 0x30]
push eax
push str._RAWLAPI_______WriteDHCPNetCfgInstanceIDToReg__s__n
push edi
call fcn.1000926a
add esp, 0x18
mov eax, esi
jmp 0x10008a8b
push eax
push str._RAWLAPI_______d__fnICSDHCP_EnableDhcpServerEx_2nd_n
push esi
call fcn.1000926a
push 0x20
lea eax, [ebp - 0x3b0]
push ebx
push eax
call fcn.1008ef90
add esp, 0x18
cmp dword [0x1011cc18], 0x1f
mov dword [ebp - 0x3b0], esi
jl 0x100089f3
movzx eax, byte [ebp - 0x3a1]
push esi
push eax
movzx eax, byte [ebp - 0x3a2]
push eax
movzx eax, byte [ebp - 0x3a3]
push eax
movzx eax, byte [ebp - 0x3a4]
push eax
movzx eax, byte [ebp - 0x3a5]
push eax
movzx eax, byte [ebp - 0x3a6]
push eax
movzx eax, byte [ebp - 0x3a7]
push eax
movzx eax, byte [ebp - 0x3a8]
push eax
movzx eax, byte [ebp - 0x3a9]
push eax
movzx eax, byte [ebp - 0x3aa]
push eax
movzx eax, byte [ebp - 0x3ab]
push eax
movzx eax, byte [ebp - 0x3ac]
push eax
push str._RAWLAPI_______GetNetInfo.IpAddrs___d._d._d._d__Mask___d._d._d._d__Gateway___d._d._d._d__DHCPServer___d_n
push edi
call fcn.1000926a
lea eax, [ebp - 0x3b0]
push eax
lea eax, [ebp + 0x30]
push eax
call fcn.1000246d
add esp, 0x44
push dword [ebp - 0x3b0]
lea ecx, [ebp + 0x30]
push ecx
push eax
push str._RAWLAPI_______d__SetNetConfigSrv__s__GetNetInfo.bDHCPEnable___d__n
push esi
call fcn.1000926a
add esp, 0x14
jmp 0x10008a89
lea eax, [ebp - 0x3b0]
push eax
lea eax, [ebp + 0x30]
push eax
call fcn.10007f51
push dword [ebp - 0x3b0]
lea ecx, [ebp + 0x30]
push ecx
push eax
push str._RAWLAPI_______d__SetNetConfigbyNetsh__s__GetNetInfo.bDHCPEnable___d__n
push esi
call fcn.1000926a
add esp, 0x1c
jmp 0x10008a89
push eax
push str._RAWLAPI_______gVar.nEnableDhcpServer___d__Dont_call_fnICSDHCP_EnableDhcpServerEx_2nd_n
push esi
call fcn.1000926a
add esp, 0xc
cmp dword [ebp - 0x8ec], esi
jne 0x10008a75
push 0x20
lea eax, [ebp - 0x3b0]
push ebx
push eax
call fcn.1008ef90
lea eax, [ebp - 0x3b0]
push eax
lea eax, [ebp + 0x30]
push eax
mov dword [ebp - 0x3b0], esi
call fcn.1000246d
push dword [ebp - 0x3b0]
lea ecx, [ebp + 0x30]
push ecx
push eax
push str._RAWLAPI_______d__SetNetConfigSrv__s__GetNetInfo.bDHCPEnable___d__n
push esi
call fcn.1000926a
add esp, 0x28
jmp 0x10008a89
push dword [ebp - 0x8ec]
push str._RAWLAPI__GetNetConfig___d_n
push esi
call fcn.1000926a
add esp, 0xc
xor eax, eax
pop esi
mov ecx, dword [ebp + 0x70]
pop edi
xor ecx, ebp
pop ebx
call fcn.1008e5e8
add ebp, 0x74
leave
ret