Function at 0x407110
Capabilities:
Read .ini file

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push esi
push edi
push str.._Settings.ini
push 0
push str.InstallDB
push str.SilentGameGuardInfo
mov esi, ecx
call ebx
push esi
mov edi, eax
call dword [sym.imp.USER32.dll_GetMenu]
mov edx, str.Install_SQL_Data
test edi, edi
mov ecx, str.Remove_SQL_Data
cmovne ecx, edx
push ecx
push 0x801e
push 0
push 0x801e
push eax
call dword [sym.imp.USER32.dll_ModifyMenuA]
push 0x24
push str.Silent_GameGuard_::_SQL_DATA
test edi, edi
jne 0x407291
push str.Install_SQL_AntiHack_Data_
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x4073d4
push str.._Settings.ini
push edi
push str.InstallDB
push str.SilentGameGuardInfo
call ebx
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
mov edi, eax
push 0x50f25c
push 0x20
push 0x4407f0
call esi
add esp, 0xc
push 0x50f23c
push 0x20
push 0x440810
call esi
add esp, 0xc
push 0x50f21c
push 0x20
push 0x440830
call esi
mov esi, dword [sym.imp.ODBC32.dll_SQLAllocHandle]
add esp, 0xc
push 0x4407e8
push dword [0x4407e4]
push 2
call esi
test ax, 0xfffe
jne 0x407222
push 0xfffffffffffffffd
push 0x440830
push 0xfffffffffffffffd
push 0x440810
push 0xfffffffffffffffd
push 0x4407f0
push dword [0x4407e8]
call dword [sym.imp.ODBC32.dll_SQLConnect]
test ax, 0xfffe
jne 0x407222
push 0x4407ec
push dword [0x4407e8]
push 3
call esi
test ax, 0xfffe
je 0x407242
push str._Silent_GameGuard_____DataBase__:_Cannot_connect_
push 1
call fcn.00419440
push str._Silent_GameGuard_____DataBase__:_Cannot_connect_
push 0
push 0x433390
call fcn.0040df10
add esp, 0x14
test edi, edi
jne 0x4073d4
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 0x4407e0
call fcn.00410790
push str.ALTER_TABLE_dbo.Character_ADD__UnBanDate__smalldatetime__NULL
push 0x4407e0
call fcn.00410790
add esp, 0x10
push str..Settings.ini
push 0x428944
push str.InstallDB
push str.SilentGameGuardInfo
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push str._Silent_GameGuard_____DataBase__:__SGG_HISTORY_DETECTIONS____UnBanDate__TABLE_Created_successfully
push 2
jmp 0x4073b2
push str.REMOVE_SQL_AntiHack_Data_
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x4073d4
push str.._Settings.ini
push 0
push str.InstallDB
push str.SilentGameGuardInfo
call ebx
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
mov edi, eax
push 0x50f25c
push 0x20
push 0x4407f0
call esi
add esp, 0xc
push 0x50f23c
push 0x20
push 0x440810
call esi
add esp, 0xc
push 0x50f21c
push 0x20
push 0x440830
call esi
mov esi, dword [sym.imp.ODBC32.dll_SQLAllocHandle]
add esp, 0xc
push 0x4407e8
push dword [0x4407e4]
push 2
call esi
test ax, 0xfffe
jne 0x40734c
push 0xfffffffffffffffd
push 0x440830
push 0xfffffffffffffffd
push 0x440810
push 0xfffffffffffffffd
push 0x4407f0
push dword [0x4407e8]
call dword [sym.imp.ODBC32.dll_SQLConnect]
test ax, 0xfffe
jne 0x40734c
push 0x4407ec
push dword [0x4407e8]
push 3
call esi
test ax, 0xfffe
je 0x40736c
push str._Silent_GameGuard_____DataBase__:_Cannot_connect_
push 1
call fcn.00419440
push str._Silent_GameGuard_____DataBase__:_Cannot_connect_
push 0
push 0x433390
call fcn.0040df10
add esp, 0x14
cmp edi, 1
jne 0x4073d4
push str.DROP_TABLE__dbo_._SGG_HISTORY_DETECTIONS_
push 0x4407e0
call fcn.00410790
push str.ALTER_TABLE_dbo.Character_DROP_COLUMN_UnBanDate
push 0x4407e0
call fcn.00410790
add esp, 0x10
push str..Settings.ini
push 0x428a08
push str.InstallDB
push str.SilentGameGuardInfo
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push str._Silent_GameGuard_____DataBase__:__SGG_HISTORY_DETECTIONS____UnBanDate__TABLE_Deleted_successfully
push edi
call fcn.00419440
add esp, 8
push dword [0x4407ec]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x4407ec]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
pop edi
pop esi
pop ebx
ret