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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x314
mov eax, dword [0x424018]
xor eax, esp
mov dword [esp + 0x310], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
jmp 0x40a152
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x4161e0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
push 0x64
push 0x424db0
push 0x67
push edi
mov dword [0x424e14], eax
call esi
push 0x64
push 0x424d48
push 0x6d
push edi
call esi
mov eax, edi
call fcn.0040a520
mov eax, dword [ebp + 0x14]
push eax
mov eax, edi
call fcn.0040a5a0
add esp, 4
test eax, eax
jne 0x40a1b8
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x310]
xor ecx, esp
call fcn.0041ae5c
mov esp, ebp
pop ebp
ret 0x10
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push str..DataServer.ini
push 0x20
push 0x424d20
push 0x41ea56
push str.CustomerName
push str.DataServerInfo
call esi
push str..DataServer.ini
push 0x24
push 0x424cfc
push 0x41ea56
push str.CustomerHardwareId
push str.DataServerInfo
call esi
push 0
push str.ZEUS_REVOLUTIONS
push 0x41e91c
lea ecx, [esp + 0x224]
push str.__s___s_DataServer__QueueSize_:__d_
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [0x424d40]
add esp, 0x14
lea edx, [esp + 0x218]
push edx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [0x424d40]
push ecx
mov ecx, 0x4ede30
call fcn.004188f0
lea edx, [esp + 0x28]
push edx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x40a43b
push str..DataServer.ini
push 0x20
mov byte [esp + 0x200], al
mov dword [esp + 0x201], eax
mov dword [esp + 0x205], eax
mov dword [esp + 0x209], eax
mov dword [esp + 0x20d], eax
mov dword [esp + 0x211], eax
mov dword [esp + 0x215], eax
mov dword [esp + 0x219], eax
mov word [esp + 0x21d], ax
mov byte [esp + 0x21f], al
mov byte [esp + 0x1c0], al
mov dword [esp + 0x1c1], eax
mov dword [esp + 0x1c5], eax
mov dword [esp + 0x1c9], eax
mov dword [esp + 0x1cd], eax
mov dword [esp + 0x1d1], eax
mov dword [esp + 0x1d5], eax
mov dword [esp + 0x1d9], eax
mov word [esp + 0x1dd], ax
mov byte [esp + 0x1df], al
mov byte [esp + 0x1e0], al
mov dword [esp + 0x1e1], eax
mov dword [esp + 0x1e5], eax
mov dword [esp + 0x1e9], eax
mov dword [esp + 0x1ed], eax
mov dword [esp + 0x1f1], eax
mov dword [esp + 0x1f5], eax
mov dword [esp + 0x1f9], eax
mov word [esp + 0x1fd], ax
mov byte [esp + 0x1ff], al
lea eax, [esp + 0x200]
push eax
push 0x41ea56
push str.DataServerODBC
push str.DataServerInfo
call esi
push str..DataServer.ini
push 0x20
lea ecx, [esp + 0x1c0]
push ecx
push 0x41ea56
push str.DataServerUSER
push str.DataServerInfo
call esi
push str..DataServer.ini
push 0x20
lea edx, [esp + 0x1e0]
push edx
push 0x41ea56
push str.DataServerPASS
push str.DataServerInfo
call esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push str..DataServer.ini
push 0xda98
push str.DataServerPort
push str.DataServerInfo
call esi
push str..DataServer.ini
push 0
push str.AdvancedLog
push str.DataServerInfo
movzx ebx, ax
call esi
mov dword [0x424cf8], eax
lea eax, [esp + 0x1d8]
push eax
lea ecx, [esp + 0x1bc]
push ecx
lea eax, [esp + 0x200]
mov ecx, 0x424ee0
call fcn.004175b0
test al, al
jne 0x40a3f9
push str.Could_not_connect_to_database
push 1
call fcn.0041a270
add esp, 8
jmp 0x40a451
push ebx
mov ecx, 0x4ef028
call fcn.00419240
test al, al
jne 0x40a414
mov esi, 0x424ee0
call fcn.00417640
jmp 0x40a451
call fcn.004011d0
call fcn.00402460
mov edx, dword [0x424d40]
push 0
push 0x3e8
push 0x64
push edx
call dword [sym.imp.USER32.dll_SetTimer]
call fcn.00412740
jmp 0x40a451
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.WSAStartup___failed_with_error:__d
push 1
call fcn.0041a270
add esp, 0xc
call fcn.004189c0
call fcn.00418b20
mov eax, dword [0x424d40]
push 0
push 0x7d0
push 0x65
push eax
call dword [sym.imp.USER32.dll_SetTimer]
push 0x6d
push edi
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
push 0
lea ecx, [esp + 0x18]
push ecx
mov esi, eax
call edi
test eax, eax
je 0x40a4d8
mov ebx, dword [sym.imp.USER32.dll_TranslateAcceleratorA]
jmp 0x40a4a0
mov eax, dword [esp + 0xc]
lea edx, [esp + 0xc]
push edx
push esi
push eax
call ebx
test eax, eax
jne 0x40a4c7
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0
push 0
push 0
lea eax, [esp + 0x18]
push eax
call edi
test eax, eax
jne 0x40a4a0
mov ecx, dword [0x424e14]
push ecx
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
jmp 0x40a4f7
mov ecx, dword [esp + 0x31c]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041ae5c
mov esp, ebp
pop ebp
ret 0x10