Function at 0x406df0
Capabilities:
Initialize winsock library
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x318
mov eax, dword [0x41d018]
xor eax, esp
mov dword [esp + 0x314], eax
push esi
push edi
mov edi, dword [ebp + 8]
jmp 0x406e21
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x411450
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
push 0x64
push 0x41ed08
push 0x65
push edi
mov dword [0x41ed6c], eax
call esi
push 0x64
push 0x41eca0
push 0x69
push edi
call esi
mov eax, edi
call fcn.004071a0
mov eax, dword [ebp + 0x14]
push eax
mov eax, edi
call fcn.00407220
add esp, 4
test eax, eax
jne 0x406e86
pop edi
pop esi
mov ecx, dword [esp + 0x314]
xor ecx, esp
call fcn.00415636
mov esp, ebp
pop ebp
ret 0x10
push str.STANDBY
push 0x417fc4
push 0x65
lea ecx, [esp + 0x224]
push str.__2.0.7___DataServer__EX_03d__s____s_
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [0x41ec98]
add esp, 0x14
lea edx, [esp + 0x218]
push edx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [0x41ec98]
push ecx
mov ecx, 0x41d768
call fcn.00412f20
mov edx, dword [0x41ec98]
push 0x40
push str.MU_Server
push str.Brindado_por_SudamericaHost
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
lea eax, [esp + 0x28]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4070cd
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push str..DataServer.ini
push 0x20
lea ecx, [esp + 0x200]
push ecx
push 0x418206
push str.DataServerODBC
push str.DataServerInfo
mov byte [esp + 0x210], al
mov dword [esp + 0x211], eax
mov dword [esp + 0x215], eax
mov dword [esp + 0x219], eax
mov dword [esp + 0x21d], eax
mov dword [esp + 0x221], eax
mov dword [esp + 0x225], eax
mov dword [esp + 0x229], eax
mov word [esp + 0x22d], ax
mov byte [esp + 0x22f], al
mov byte [esp + 0x1d0], al
mov dword [esp + 0x1d1], eax
mov dword [esp + 0x1d5], eax
mov dword [esp + 0x1d9], eax
mov dword [esp + 0x1dd], eax
mov dword [esp + 0x1e1], eax
mov dword [esp + 0x1e5], eax
mov dword [esp + 0x1e9], eax
mov word [esp + 0x1ed], ax
mov byte [esp + 0x1ef], al
mov byte [esp + 0x1f0], al
mov dword [esp + 0x1f1], eax
mov dword [esp + 0x1f5], eax
mov dword [esp + 0x1f9], eax
mov dword [esp + 0x1fd], eax
mov dword [esp + 0x201], eax
mov dword [esp + 0x205], eax
mov dword [esp + 0x209], eax
mov word [esp + 0x20d], ax
mov byte [esp + 0x20f], al
call esi
push str..DataServer.ini
push 0x20
lea edx, [esp + 0x1c0]
push edx
push 0x418206
push str.DataServerUSER
push str.DataServerInfo
call esi
push str..DataServer.ini
push 0x20
lea eax, [esp + 0x1e0]
push eax
push 0x418206
push str.DataServerPASS
push str.DataServerInfo
call esi
push str..DataServer.ini
push 0xda98
push str.DataServerPort
push str.DataServerInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea ecx, [esp + 0x1d8]
push ecx
lea edx, [esp + 0x1bc]
movzx esi, ax
push edx
lea eax, [esp + 0x200]
mov ecx, 0x41ee38
call fcn.00412130
test al, al
jne 0x40708c
push str.Could_not_connect_to_database
push 1
call fcn.00414770
add esp, 8
jmp 0x4070e3
push esi
mov ecx, 0x4e85a8
call fcn.00413740
test al, al
jne 0x4070a7
mov esi, 0x41ee38
call fcn.004121c0
jmp 0x4070e3
call fcn.00401660
call fcn.00402570
mov eax, dword [0x41ec98]
push 0
push 0x3e8
push 0x64
push eax
call dword [sym.imp.USER32.dll_SetTimer]
call fcn.0040ea20
jmp 0x4070e3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.WSAStartup___failed_with_error:__d
push 1
call fcn.00414770
add esp, 0xc
mov ecx, dword [0x41ec98]
push 0
push 0x7d0
push 0x65
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
push 0x69
push edi
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
push 0
lea edx, [esp + 0x18]
push edx
mov esi, eax
call edi
test eax, eax
je 0x40715c
jmp 0x407120
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0xc]
push eax
push esi
push ecx
call dword [sym.imp.USER32.dll_TranslateAcceleratorA]
test eax, eax
jne 0x40714b
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0
push 0
push 0
lea ecx, [esp + 0x18]
push ecx
call edi
test eax, eax
jne 0x407120
mov edx, dword [0x41ed6c]
push edx
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
jmp 0x40717b
mov ecx, dword [esp + 0x31c]
mov eax, dword [esp + 0x14]
pop edi
pop esi
xor ecx, esp
call fcn.00415636
mov esp, ebp
pop ebp
ret 0x10