Function at 0x406db0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5819e7
mov eax, dword fs:[0]
push eax
sub esp, 0x338
mov eax, dword [0x5e3efc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x314], ecx
mov eax, dword [str.RINGSTATE]
mov dword [ebp - 0x210], eax
mov ecx, dword [0x593a14]
mov dword [ebp - 0x20c], ecx
mov dx, word [0x593a18]
mov word [ebp - 0x208], dx
push 0xf5
push 0
lea eax, [ebp - 0x206]
push eax
call fcn.0055f580
add esp, 0xc
mov ecx, dword [str.SCANOPTION]
mov dword [ebp - 0x110], ecx
mov edx, dword [0x593a20]
mov dword [ebp - 0x10c], edx
mov ax, word [0x593a24]
mov word [ebp - 0x108], ax
mov cl, byte [0x593a26]
mov byte [ebp - 0x106], cl
push 0xf4
push 0
lea edx, [ebp - 0x105]
push edx
call fcn.0055f580
add esp, 0xc
mov byte [ebp - 0x310], 0
push 0xff
push 0
lea eax, [ebp - 0x30f]
push eax
call fcn.0055f580
add esp, 0xc
push 0x591fe3
lea ecx, [ebp - 0x324]
call fcn.00402050
mov dword [ebp - 4], 0
push str._scanconfig.ini
lea ecx, [ebp - 0x328]
call fcn.00402050
mov byte [ebp - 4], 1
push 0x591fe3
lea ecx, [ebp - 0x318]
call fcn.00402050
mov byte [ebp - 4], 2
push 0x100
lea ecx, [ebp - 0x310]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [ebp - 0x310]
push edx
lea ecx, [ebp - 0x324]
call fcn.00402710
push 0x5c
lea ecx, [ebp - 0x324]
call fcn.00404860
mov dword [ebp - 0x32c], eax
mov eax, dword [ebp - 0x32c]
push eax
lea ecx, [ebp - 0x338]
push ecx
lea ecx, [ebp - 0x324]
call fcn.00403740
mov dword [ebp - 0x330], eax
mov edx, dword [ebp - 0x330]
mov dword [ebp - 0x334], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x334]
push eax
lea ecx, [ebp - 0x324]
call fcn.004026f0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x338]
call fcn.00402340
lea ecx, [ebp - 0x328]
push ecx
lea edx, [ebp - 0x324]
push edx
lea eax, [ebp - 0x344]
push eax
call fcn.00402740
add esp, 0xc
mov dword [ebp - 0x33c], eax
mov ecx, dword [ebp - 0x33c]
mov dword [ebp - 0x340], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x340]
push edx
lea ecx, [ebp - 0x318]
call fcn.004026f0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x344]
call fcn.00402340
lea ecx, [ebp - 0x318]
call fcn.00402730
push eax
push 0
push str.ordering
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
je 0x406fc9
mov byte [ebp - 0x319], 1
jmp 0x406fd0
mov byte [ebp - 0x319], 0
mov ecx, dword [ebp - 0x314]
mov dl, byte [ebp - 0x319]
mov byte [ecx + 0x1dfe], dl
lea ecx, [ebp - 0x318]
call fcn.00402730
push eax
push 0
push str.sring
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
je 0x40700f
mov byte [ebp - 0x31a], 1
jmp 0x407016
mov byte [ebp - 0x31a], 0
mov ecx, dword [ebp - 0x314]
mov dl, byte [ebp - 0x31a]
mov byte [ecx + 0x1dff], dl
lea ecx, [ebp - 0x318]
call fcn.00402730
push eax
push 0
push 0x5927ac
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
je 0x407055
mov byte [ebp - 0x31b], 1
jmp 0x40705c
mov byte [ebp - 0x31b], 0
mov ecx, dword [ebp - 0x314]
mov dl, byte [ebp - 0x31b]
mov byte [ecx + 0x1e00], dl
lea ecx, [ebp - 0x318]
call fcn.00402730
push eax
push 0
push str.erps
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
je 0x40709b
mov byte [ebp - 0x31c], 1
jmp 0x4070a2
mov byte [ebp - 0x31c], 0
mov ecx, dword [ebp - 0x314]
mov dl, byte [ebp - 0x31c]
mov byte [ecx + 0x1e01], dl
lea ecx, [ebp - 0x318]
call fcn.00402730
push eax
push 0
push str.badpacket
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
je 0x4070e1
mov byte [ebp - 0x31d], 1
jmp 0x4070e8
mov byte [ebp - 0x31d], 0
mov ecx, dword [ebp - 0x314]
mov dl, byte [ebp - 0x31d]
mov byte [ecx + 0x25ac], dl
lea ecx, [ebp - 0x318]
call fcn.00402730
push eax
push 0
push str.specifictype
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
je 0x407127
mov byte [ebp - 0x31e], 1
jmp 0x40712e
mov byte [ebp - 0x31e], 0
mov ecx, dword [ebp - 0x314]
mov dl, byte [ebp - 0x31e]
mov byte [ecx + 0x25ad], dl
lea ecx, [ebp - 0x318]
call fcn.00402730
push eax
push 3
push str.packetinterval
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp - 0x314]
mov dword [ecx + 0x25b0], eax
mov edx, dword [ebp - 0x314]
mov eax, dword [ebp - 0x314]
mov ecx, dword [eax + 0x25b0]
mov dword [edx + 0x25b4], ecx
lea ecx, [ebp - 0x318]
call fcn.00402730
push eax
push 6
push str.warningtime
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp - 0x314]
mov dword [ecx + 0x25cc], eax
lea ecx, [ebp - 0x318]
call fcn.00402730
push eax
push 0xa
push str.deletetime
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp - 0x314]
mov dword [ecx + 0x25d0], eax
lea ecx, [ebp - 0x318]
call fcn.00402730
push eax
push 1
push str.autostop
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
je 0x407209
mov byte [ebp - 0x31f], 1
jmp 0x407210
mov byte [ebp - 0x31f], 0
mov eax, dword [ebp - 0x314]
mov cl, byte [ebp - 0x31f]
mov byte [eax + 0x25d4], cl
lea ecx, [ebp - 0x318]
call fcn.00402730
push eax
push 0x14
push str.stoptime
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp - 0x314]
mov dword [ecx + 0x25d8], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x318]
call fcn.00402340
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x328]
call fcn.00402340
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x324]
call fcn.00402340
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055d390
mov esp, ebp
pop ebp
ret