Function at 0x58f0a0
Capabilities:
Check http status code
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov dword [ebp - 0x1c], ecx
push 0x5d4918
push 0x5d491c
call fcn.00535161
add esp, 8
mov dword [0x7db644], eax
cmp dword [0x7db644], 0
jne 0x58f0e2
push str..Data_serverlist.dat
push str._ERROR___S_not_found_
push 0
call fcn.0059bdc0
add esp, 0xc
jmp 0x5900b3
movzx eax, byte [ebp + 8]
test eax, eax
je 0x58f0f7
movzx ecx, byte [ebp + 8]
cmp ecx, 1
jne 0x58f2ac
movzx edx, byte [ebp + 8]
cmp edx, 1
jne 0x58f18a
mov dword [ebp - 8], 0
jmp 0x58f116
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xc8
jge 0x58f18a
mov ecx, dword [ebp - 8]
shl ecx, 6
movzx edx, byte [ecx + 0x646c94]
test edx, edx
jne 0x58f132
jmp 0x58f10d
mov eax, dword [ebp - 8]
shl eax, 6
mov byte [eax + 0x646c94], 0
mov ecx, dword [ebp - 8]
shl ecx, 6
mov dword [ecx + 0x646c90], 0
mov edx, dword [ebp - 8]
shl edx, 6
mov byte [edx + 0x646c9c], 0
mov eax, dword [ebp - 8]
shl eax, 6
mov dword [eax + 0x646c98], 0xffffffff
mov ecx, dword [ebp - 8]
shl ecx, 6
add ecx, 0x646c62
push ecx
push str._s_Server_Delete
push 5
call fcn.0059bdc0
add esp, 0xc
jmp 0x58f10d
mov edx, 1
test edx, edx
je 0x58f294
call fcn.00590100
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 2
jne 0x58f1aa
jmp 0x58f294
cvttss2si eax, dword [0x7db640]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jl 0x58f1c4
cmp dword [ebp - 0xc], 0xc8
jl 0x58f1c6
jmp 0x58f18a
cvttss2si ecx, dword [0x7db640]
mov edx, dword [ebp - 0xc]
shl edx, 6
mov word [edx + 0x646c60], cx
call fcn.00590100
mov dword [ebp - 4], eax
push 0x14
push 0x7db648
mov eax, dword [ebp - 0xc]
shl eax, 6
add eax, 0x646c62
push eax
call fcn.00528790
add esp, 0xc
call fcn.00590100
mov dword [ebp - 4], eax
push 0x10
push 0x7db648
mov ecx, dword [ebp - 0xc]
shl ecx, 6
add ecx, 0x646c76
push ecx
call fcn.00528790
add esp, 0xc
call fcn.00590100
mov dword [ebp - 4], eax
cvttss2si edx, dword [0x7db640]
mov eax, dword [ebp - 0xc]
shl eax, 6
mov word [eax + 0x646c86], dx
call fcn.00590100
mov dword [ebp - 4], eax
push 5
push 0x7db648
mov ecx, dword [ebp - 0xc]
shl ecx, 6
add ecx, 0x646c88
push ecx
call fcn.00528790
add esp, 0xc
mov edx, dword [ebp - 0xc]
shl edx, 6
mov dword [edx + 0x646c98], 0xffffffff
call fcn.00590100
mov dword [ebp - 4], eax
cvttss2si eax, dword [0x7db640]
mov ecx, dword [ebp - 0xc]
shl ecx, 6
mov byte [ecx + 0x646c9d], al
jmp 0x58f18a
cmp dword [0x7db644], 0
je 0x58f2ac
mov edx, dword [0x7db644]
push edx
call fcn.00535320
add esp, 4
movzx eax, byte [ebp + 8]
test eax, eax
je 0x58f2c1
movzx ecx, byte [ebp + 8]
cmp ecx, 4
jne 0x58f8ef
xor edx, edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], edx
mov word [ebp - 0x20], dx
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov word [ebp - 0x2c], ax
xor ecx, ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], ecx
mov word [ebp - 0x38], cx
push 0x5d4978
push 0
push str.DownLoadType
push 0x5d49a0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov byte [0x646ac5], al
push 0x5d49b0
push 0
push str.DownLoadType2
push 0x5d49d8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov byte [0x646b75], al
push 0x5d49e8
push 0
push str.DownLoadType3
push 0x5d4a10
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov byte [0x646c25], al
push 0x5d4a20
push 0x63
push 0x646a16
push 0x5d2bd7
push 0x5d4a38
push 0x5d4a40
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x5d4a50
push 0x15
push 0x5d4a68
push 0x5d4a70
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov word [0x646a7a], ax
push 0x5d4a80
push 0x13
push 0x646a7c
push 0x5d2bea
push 0x5d4a98
push 0x5d4a9c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x5d4aac
push 0x13
push 0x646a90
push 0x5d2beb
push 0x5d4ac4
push str.FtpServerInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x5d4adc
push 0x63
push 0x646ac6
push 0x5d2bfd
push 0x5d4af4
push 0x5d4afc
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x5d4b0c
push 0
push 0x5d4b24
push 0x5d4b2c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov word [0x646b2a], ax
push 0x5d4b3c
push 0x13
push 0x646b2c
push 0x5d2bfe
push 0x5d4b54
push 0x5d4b58
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x5d4b68
push 0x13
push 0x646b40
push 0x5d2bff
push 0x5d4b80
push str.FtpServerInfo2
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x5d4b98
push 0x63
push 0x646b76
push 0x5d2c12
push str.Address
push 0x5d4bb8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x5d4bc8
push 0
push 0x5d4be0
push 0x5d4be8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov word [0x646bda], ax
push 0x5d4bf8
push 0x13
push 0x646bdc
push 0x5d2c13
push 0x5d4c10
push 0x5d4c14
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x5d4c24
push 0x13
push 0x646bf0
push 0x5d2c25
push str.PASS
push str.FtpServerInfo3
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x5d4c54
push 0x63
push 0x6469b0
push 0x5d2c26
push str.HTTPAddress
push 0x5d4c78
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x5d4c88
push 0x50
push str.Port
push str.HttpServerInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov word [0x646a14], ax
push 0x5d4cb8
push 9
lea edx, [ebp - 0x28]
push edx
push 0x5d2c27
push str.ClientVersion
push 0x5d4ce0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x5d4cf0
push 0x13
push 0x646aae
push str.version.wvd
push str.VersionFileName
push 0x5d4d24
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x5d4d34
push 9
lea eax, [ebp - 0x34]
push eax
push 0x5d2c49
push str.ClientVersion2
push 0x5d4d5c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x5d4d6c
push 0x13
push 0x646b5e
push str.version2.wvd
push str.VersionFileName2
push 0x5d4da8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x5d4db8
push 9
lea ecx, [ebp - 0x40]
push ecx
push 0x5d2c4a
push str.ClientVersion3
push 0x5d4de0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push str..Data_serverinfo.dat
push 0x13
push 0x646c0e
push str.version3.wvd
push str.VersionFileName3
push str.GameServerInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
movzx edx, byte [0x646ac5]
test edx, edx
jne 0x58f671
push str.Auto_Update_Download_Type___FTP__
push 2
call fcn.0059bdc0
add esp, 8
push 0x646a16
push str.FTP_Auto_Update_Host____s__
push 2
call fcn.0059bdc0
add esp, 0xc
movzx eax, word [0x646a7a]
push eax
push str.FTP_Auto_Update_Port____d__
push 2
call fcn.0059bdc0
add esp, 0xc
movzx ecx, word [0x646b2a]
test ecx, ecx
jle 0x58f639
push 0x646ac6
push str.FTP_Auto_Update_Host_2____s__
push 2
call fcn.0059bdc0
add esp, 0xc
movzx edx, word [0x646b2a]
push edx
push str.FTP_Auto_Update_Port_2____d__
push 2
call fcn.0059bdc0
add esp, 0xc
movzx eax, word [0x646bda]
test eax, eax
jle 0x58f66f
push 0x646b76
push str.FTP_Auto_Update_Host_3____s__
push 2
call fcn.0059bdc0
add esp, 0xc
movzx ecx, word [0x646bda]
push ecx
push str.FTP_Auto_Update_Port_3____d__
push 2
call fcn.0059bdc0
add esp, 0xc
jmp 0x58f6b7
movzx edx, byte [0x646ac5]
cmp edx, 1
jne 0x58f6b7
push str.Auto_Update_Download_Type___HTTP__
push 2
call fcn.0059bdc0
add esp, 8
push 0x6469b0
push str.HTTP_Auto_Update_Host____s__
push 2
call fcn.0059bdc0
add esp, 0xc
movzx eax, word [0x646a14]
push eax
push str.HTTP_Auto_Update_Port____d__
push 2
call fcn.0059bdc0
add esp, 0xc
lea ecx, [ebp - 0x28]
push ecx
push str.Client_Version____s__
push 2
call fcn.0059bdc0
add esp, 0xc
push 0x646aae
push str.Version_File____s__
push 2
call fcn.0059bdc0
add esp, 0xc
movzx edx, word [0x646b2a]
test edx, edx
jle 0x58f710
lea eax, [ebp - 0x34]
push eax
push str.Client_Version_2____s__
push 2
call fcn.0059bdc0
add esp, 0xc
push 0x646b5e
push str.Version_File_2____s__
push 2
call fcn.0059bdc0
add esp, 0xc
movzx ecx, word [0x646bda]
test ecx, ecx
jle 0x58f742
lea edx, [ebp - 0x40]
push edx
push str.Client_Version_3____s__
push 2
call fcn.0059bdc0
add esp, 0xc
push 0x646c0e
push str.Version_File_3____s__
push 2
call fcn.0059bdc0
add esp, 0xc
push str..........
lea eax, [ebp - 0x28]
push eax
call fcn.00534ab3
add esp, 8
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.005523cb
add esp, 4
mov edx, 1
imul ecx, edx, 0
mov byte [ecx + 0x646ac2], al
push 0x5d500c
push 0
call fcn.00534ab3
add esp, 8
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
push edx
call fcn.005523cb
add esp, 4
mov ecx, 1
shl ecx, 0
mov byte [ecx + 0x646ac2], al
push 0x5d5010
push 0
call fcn.00534ab3
add esp, 8
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
push edx
call fcn.005523cb
add esp, 4
mov ecx, 1
shl ecx, 1
mov byte [ecx + 0x646ac2], al
movzx edx, word [0x646b2a]
test edx, edx
jle 0x58f85b
push 0x5d5014
lea eax, [ebp - 0x34]
push eax
call fcn.00534ab3
add esp, 8
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.005523cb
add esp, 4
mov edx, 1
imul ecx, edx, 0
mov byte [ecx + 0x646b72], al
push 0x5d5018
push 0
call fcn.00534ab3
add esp, 8
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
push edx
call fcn.005523cb
add esp, 4
mov ecx, 1
shl ecx, 0
mov byte [ecx + 0x646b72], al
push 0x5d501c
push 0
call fcn.00534ab3
add esp, 8
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
push edx
call fcn.005523cb
add esp, 4
mov ecx, 1
shl ecx, 1
mov byte [ecx + 0x646b72], al
movzx edx, word [0x646bda]
test edx, edx
jle 0x58f8ef
push 0x5d5020
lea eax, [ebp - 0x40]
push eax
call fcn.00534ab3
add esp, 8
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.005523cb
add esp, 4
mov edx, 1
imul ecx, edx, 0
mov byte [ecx + 0x646c22], al
push 0x5d5024
push 0
call fcn.00534ab3
add esp, 8
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
push edx
call fcn.005523cb
add esp, 4
mov ecx, 1
shl ecx, 0
mov byte [ecx + 0x646c22], al
push 0x5d5028
push 0
call fcn.00534ab3
add esp, 8
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
push edx
call fcn.005523cb
add esp, 4
mov ecx, 1
shl ecx, 1
mov byte [ecx + 0x646c22], al
movzx edx, byte [ebp + 8]
test edx, edx
je 0x58f904
movzx eax, byte [ebp + 8]
cmp eax, 6
jne 0x58fa69
push 0x5d502c
push 0
push 0x5d5038
push 0x5d5040
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov byte [0x646c26], al
push 0x5d504c
push 0
push str.Type
push 0x5d5060
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov byte [0x646c27], al
push 0x5d506c
push 0
push str.Position
push 0x5d5084
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov byte [0x646c28], al
push 0x5d5090
push 0
push str.Host_Port
push 0x5d50a8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov word [0x646c2a], ax
push 0x5d50b4
push 0xf
push 0x646c2c
push 0x5d50c0
push str.Host_IP
push 0x5d50d4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x5d50e0
push 0
push str.Host_Port2
push 0x5d50f8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov word [0x646c3c], ax
push 0x5d5104
push 0xf
push 0x646c3e
push str.10.0.0.1
push str.Host_IP2
push str.LINKSERVER
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
movzx ecx, byte [0x646c26]
cmp ecx, 1
jne 0x58fa69
movzx edx, byte [0x646c27]
test edx, edx
jne 0x58fa00
push str.eCS_Link_Server_enabled_as_Host_type.
push 2
call fcn.0059bdc0
add esp, 8
jmp 0x58fa69
movzx eax, byte [0x646c27]
cmp eax, 1
jne 0x58fa69
push str.eCS_Link_Server_enabled_as_Guest_type.
push 2
call fcn.0059bdc0
add esp, 8
movzx ecx, word [0x646c2a]
test ecx, ecx
je 0x58fa42
movzx edx, word [0x646c2a]
push edx
push 0x646c2c
push str.eCS_Link_Server_set_Host_IP:_s_and_Host_Port:_d
push 2
call fcn.0059bdc0
add esp, 0x10
movzx eax, word [0x646c3c]
test eax, eax
je 0x58fa69
movzx ecx, word [0x646c3c]
push ecx
push 0x646c3e
push str.eCS_Link_Server_set_Host_IP2:_s_and_Host_Port2:_d
push 2
call fcn.0059bdc0
add esp, 0x10
movzx edx, byte [ebp + 8]
test edx, edx
jne 0x58fea4
mov byte [0x646984], 1
mov dword [0x646970], 0
mov dword [0x646974], 0
mov dword [0x646978], 0
mov dword [0x646980], 0
mov byte [0x646986], 0
push 0x5d51e8
push 0
push 0x5d51f4
push 0x5d5200
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [0x646980], eax
push 0x5d5208
push 1
push str.IdleCleanUp
push 0x5d5220
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [0x6469a4], eax
imul eax, dword [0x6469a4], 0x3e8
mov dword [0x6469a4], eax
push 0x5d5228
push 0
push 0x5d5234
push 0x5d523c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov byte [0x646988], al
push 0x5d5248
push 0
push 0x5d5254
push 0x5d5264
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [0x646998], eax
push 0x5d5270
push 0
push 0x5d527c
push 0x5d528c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [0x64699c], eax
push 0x5d5298
push 0
push str.TCP_Port
push 0x5d52b0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [0x646970], eax
push 0x5d52b8
push 0
push str.TCP_Port2
push 0x5d52d0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [0x646974], eax
push 0x5d52d8
push 0
push str.TCP_Port3
push 0x5d52f0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [0x646978], eax
push 0x5d52f8
push 0
push 0x5d5304
push 0x5d5310
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [0x646980], eax
mov ecx, 0xc
shl ecx, 0
mov dx, word [0x646980]
mov word [ecx + 0x64a4ba], dx
mov eax, 0xc
imul ecx, eax, 0
mov dx, word [0x646970]
mov word [ecx + 0x64a4ba], dx
mov eax, 0xc
shl eax, 1
mov cx, word [0x646974]
mov word [eax + 0x64a4ba], cx
mov edx, 0xc
imul eax, edx, 3
mov cx, word [0x646978]
mov word [eax + 0x64a4ba], cx
push str.Server
mov edx, 0xc
shl edx, 0
add edx, 0x64a4b0
push edx
call fcn.00401770
add esp, 8
push str.Client1
mov eax, 0xc
imul ecx, eax, 0
add ecx, 0x64a4b0
push ecx
call fcn.00401770
add esp, 8
push str.Client2
mov edx, 0xc
shl edx, 1
add edx, 0x64a4b0
push edx
call fcn.00401770
add esp, 8
push str.Client3
mov eax, 0xc
imul ecx, eax, 3
add ecx, 0x64a4b0
push ecx
call fcn.00401770
add esp, 8
push 0x5d5338
push 0
push str.AllowOnlyWhiteList
push 0x5d5358
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov byte [0x646984], al
push 0x5d5360
push 0
push str.MaintenanceMode
push 0x5d537c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov byte [0x646985], al
push 0x5d5384
push 0
push str.BlackListEnable
push 0x5d53a0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov byte [0x646986], al
push 0x5d53a8
push 0
push str.Season6EP3ClientJapan
push 0x5d53cc
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov byte [0x6469a0], al
push 0x5d53d4
push 0
push str.CSPluginEnable
push 0x5d53f0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov byte [0x6469a8], al
push 0x5d53f8
push 0
push str.CSPluginDebug
push 0x5d5414
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov byte [0x6469a9], al
push 0x5d541c
push 0
push str.CSPluginKey
push str.MUGUARD
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [0x6469ac], eax
push 0x5d543c
push 0
push 0x5d5448
push 0x5d5450
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov byte [0x646987], al
push 0x5d5454
push 0
push str.MaxPacketBlock
push 0x5d5470
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [0x64698c], eax
push 0x5d5474
push 0
push str.MaxBadHeaderBlock
push 0x5d5494
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [0x646990], eax
push 0x5d5498
push 0
push 0x5d54a4
push 0x5d54b4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [0x646994], eax
push 0x5d54b8
push 0
push str.Enable
push 0x5d54cc
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov byte [0x646988], al
push 0x5d54d8
push 0
push str.MaxConnectPerIP
push 0x5d54f4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [0x646998], eax
push 0x5d5500
push 0
push str.BlockSeconds
push str.AntiFlood
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [0x64699c], eax
push 0x5d5528
push str.iplist.dat
call fcn.00535161
add esp, 8
mov dword [0x7db644], eax
cmp dword [0x7db644], 0
je 0x58fe8c
mov edx, 1
test edx, edx
je 0x58fe8c
call fcn.00590100
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 2
jne 0x58fe3d
jmp 0x58fe8c
push 0xf
push 0x7db648
mov eax, dword [ebp - 0x1c]
imul ecx, dword [eax + 0x2b4], 0x11
mov edx, dword [ebp - 0x1c]
lea eax, [edx + ecx + 0x15c]
push eax
call fcn.005505f0
add esp, 0xc
push 0x7db648
push str.Added__s_in_Server_IP_List.
push 5
call fcn.0059bdc0
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x2b4]
add edx, 1
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x2b4], edx
jmp 0x58fe24
cmp dword [0x7db644], 0
je 0x58fea4
mov ecx, dword [0x7db644]
push ecx
call fcn.00535320
add esp, 4
movzx edx, byte [ebp + 8]
test edx, edx
je 0x58feb9
movzx eax, byte [ebp + 8]
cmp eax, 2
jne 0x58ffb3
push str..mecs.ini
push 0
push str.Debug
push str.COMMON
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [0x646c50], eax
mov dword [0x64a4f0], 0
push 0x5d5570
push str..Datawhitelist.txt
call fcn.00535161
add esp, 8
mov dword [0x7db644], eax
cmp dword [0x7db644], 0
je 0x58ff7d
mov ecx, 1
test ecx, ecx
je 0x58ff7d
call fcn.00590100
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 2
jne 0x58ff18
jmp 0x58ff7d
push 0xf
push 0x7db648
mov edx, dword [0x64a4f0]
shl edx, 4
add edx, dword [0x64a4e4]
push edx
call fcn.005505f0
add esp, 0xc
push 0x7db648
push str.Added__s_in_IP_WhiteList.
push 5
call fcn.0059bdc0
add esp, 0xc
mov eax, dword [0x64a4f0]
add eax, 1
mov dword [0x64a4f0], eax
cmp dword [0x64a4f0], 0x64
jl 0x58ff7b
push 0x64
mov ecx, dword [0x64a4f0]
push ecx
push str.Max_whitelist_count_reached__d__d
push 0
call fcn.0059bdc0
add esp, 0x10
jmp 0x58ff7d
jmp 0x58feff
movzx edx, byte [ebp + 8]
cmp edx, 2
jne 0x58ff9b
mov eax, dword [0x64a4f0]
push eax
push 0x5d55cc
push 2
call fcn.0059bdc0
add esp, 0xc
cmp dword [0x7db644], 0
je 0x58ffb3
mov ecx, dword [0x7db644]
push ecx
call fcn.00535320
add esp, 4
movzx edx, byte [ebp + 8]
test edx, edx
je 0x58ffc8
movzx eax, byte [ebp + 8]
cmp eax, 3
jne 0x5900b3
mov dword [0x64a4f4], 0
push 0x5d55e4
push str..Data_blacklist.txt
call fcn.00535161
add esp, 8
mov dword [0x7db644], eax
cmp dword [0x7db644], 0
je 0x59007d
mov ecx, 1
test ecx, ecx
je 0x59007d
call fcn.00590100
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 2
jne 0x59000f
jmp 0x59007d
push 0xf
push 0x7db648
mov edx, dword [0x64a4f4]
shl edx, 4
add edx, dword [0x64a4e8]
push edx
call fcn.005505f0
add esp, 0xc
push 0x7db648
push str.Added__s_in_IP_BlackList.
push 5
call fcn.0059bdc0
add esp, 0xc
mov eax, dword [0x64a4f4]
add eax, 1
mov dword [0x64a4f4], eax
cmp dword [0x64a4f4], 0x1b58
jl 0x590078
push 0x1b58
mov ecx, dword [0x64a4f4]
push ecx
push str.Max_blacklist_count_reached__d__d
push 0
call fcn.0059bdc0
add esp, 0x10
jmp 0x59007d
jmp 0x58fff6
movzx edx, byte [ebp + 8]
cmp edx, 3
jne 0x59009b
mov eax, dword [0x64a4f4]
push eax
push 0x5d5640
push 2
call fcn.0059bdc0
add esp, 0xc
cmp dword [0x7db644], 0
je 0x5900b3
mov ecx, dword [0x7db644]
push ecx
call fcn.00535320
add esp, 4
mov esp, ebp
pop ebp
ret 4