Function at 0x4069e0
Capabilities:
Read .ini file

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push esi
push edi
push 0x47c780
push 0
push 0x47c790
push 0x47c79c
mov esi, ecx
call ebx
push esi
mov edi, eax
call dword [sym.imp.USER32.dll_GetMenu]
mov edx, 0x47c7c0
test edi, edi
mov ecx, 0x47c7b0
cmovne ecx, edx
push ecx
push 0x801e
push 0
push 0x801e
push eax
call dword [sym.imp.USER32.dll_ModifyMenuA]
push 0x24
test edi, edi
jne 0x406b61
push 0x47c7d4
push str.Install_SQL_AntiHack_Data_
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x406ca9
push 0x47cb44
push edi
push 0x47cb54
push 0x47cb60
call ebx
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
mov edi, eax
push 0x56744c
push 0x20
push 0x498818
call esi
add esp, 0xc
push 0x56742c
push 0x20
push 0x498838
call esi
add esp, 0xc
push 0x56740c
push 0x20
push 0x498858
call esi
mov esi, dword [sym.imp.ODBC32.dll_SQLAllocHandle]
add esp, 0xc
push 0x498810
push dword [0x49880c]
push 2
call esi
test ax, 0xfffe
jne 0x406af2
push 0xfffffffffffffffd
push 0x498858
push 0xfffffffffffffffd
push 0x498838
push 0xfffffffffffffffd
push 0x498818
push dword [0x498810]
call dword [sym.imp.ODBC32.dll_SQLConnect]
test ax, 0xfffe
jne 0x406af2
push 0x498814
push dword [0x498810]
push 3
call esi
test ax, 0xfffe
je 0x406b12
push 0x47cb74
push 1
call fcn.00418b60
push 0x47cba8
push 0
push 0x48b3b8
call fcn.0040d610
add esp, 0x14
test edi, edi
jne 0x406ca9
push str.CREATE_TABLE_dbo_._SGG_HISTORY_DETECTIONS___id__int__IDENTITY_1__1__NOT_NULL___Account__varchar__500__NULL___Player__varchar__500__NULL___IpAddress__varchar__500__NULL___HardwareId__varchar__500__NULL___DetectionType__varchar__500__NULL___CaptionName__varchar__500__NULL___Date__smalldatetime__NULL_
push 0x498808
call fcn.0040fe90
push str.ALTER_TABLE_dbo.Character_ADD__UnBanDate__smalldatetime__NULL
push 0x498808
call fcn.0040fe90
add esp, 0x10
push 0x47cbdc
push 0x47cbec
push 0x47cd5c
push 0x47cd68
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push str._Silent_GameGuard_____DataBase__:__SGG_HISTORY_DETECTIONS____UnBanDate__TABLE_Created_successfully
push 2
jmp 0x406c87
push str.Silent_GameGuard_::_SQL_DATA
push str.REMOVE_SQL_AntiHack_Data_
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x406ca9
push 0x47cdec
push 0
push 0x47cd7c
push 0x47cdfc
call ebx
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
mov edi, eax
push 0x56744c
push 0x20
push 0x498818
call esi
add esp, 0xc
push 0x56742c
push 0x20
push 0x498838
call esi
add esp, 0xc
push 0x56740c
push 0x20
push 0x498858
call esi
mov esi, dword [sym.imp.ODBC32.dll_SQLAllocHandle]
add esp, 0xc
push 0x498810
push dword [0x49880c]
push 2
call esi
test ax, 0xfffe
jne 0x406c21
push 0xfffffffffffffffd
push 0x498858
push 0xfffffffffffffffd
push 0x498838
push 0xfffffffffffffffd
push 0x498818
push dword [0x498810]
call dword [sym.imp.ODBC32.dll_SQLConnect]
test ax, 0xfffe
jne 0x406c21
push 0x498814
push dword [0x498810]
push 3
call esi
test ax, 0xfffe
je 0x406c41
push 0x47ce10
push 1
call fcn.00418b60
push 0x47ce44
push 0
push 0x48b3b8
call fcn.0040d610
add esp, 0x14
cmp edi, 1
jne 0x406ca9
push str.DROP_TABLE__dbo_._SGG_HISTORY_DETECTIONS_
push 0x498808
call fcn.0040fe90
push str.ALTER_TABLE_dbo.Character_DROP_COLUMN_UnBanDate
push 0x498808
call fcn.0040fe90
add esp, 0x10
push 0x47ced4
push 0x47cee4
push str.InstallDB
push 0x47cef4
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push str._Silent_GameGuard_____DataBase__:__SGG_HISTORY_DETECTIONS____UnBanDate__TABLE_Deleted_successfully
push edi
call fcn.00418b60
add esp, 8
push dword [0x498814]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x498814]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
pop edi
pop esi
pop ebx
ret