Function at 0x406ee0
Capabilities:
Create directory
Hide graphical window
Initialize winsock library
Read .ini file
Reference cloudflare dns server

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x338
mov eax, dword [0x43d040]
xor eax, esp
mov dword [esp + 0x334], eax
push esi
push edi
mov edi, dword [ebp + 8]
push 1
mov dword [esp + 0x14], edi
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x414160
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
push 0x64
push 0x5d1820
push 0x67
push edi
mov dword [0x5d1884], eax
call esi
push 0x64
push 0x5d17b8
push 0x6d
push edi
call esi
mov esi, dword [sym.imp.USER32.dll_LoadIconA]
push 0x6b
push edi
mov dword [esp + 0x1c8], 0x30
mov dword [esp + 0x1cc], 3
mov dword [esp + 0x1d0], 0x407460
mov dword [esp + 0x1d4], 0
mov dword [esp + 0x1d8], 0
mov dword [esp + 0x1dc], edi
call esi
push 0x7f00
push 0
mov dword [esp + 0x1e0], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
push 0x6c
push dword [esp + 0x1d8]
mov dword [esp + 0x1e4], eax
mov dword [esp + 0x1e8], 6
mov dword [esp + 0x1ec], 0x6d
mov dword [esp + 0x1f0], 0x5d17b8
call esi
mov dword [esp + 0x1ec], eax
lea eax, [esp + 0x1c0]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExA]
push 0
push edi
push 0
push 0
push 0x258
push 0x258
push 0
push closesocket
push 0xcf0000
push 0x5d1820
push 0x5d17b8
push 0
mov dword [0x5d181c], edi
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x5d17b4], eax
test eax, eax
jne 0x407032
pop edi
pop esi
mov ecx, dword [esp + 0x334]
xor ecx, esp
call fcn.00417457
mov esp, ebp
pop ebp
ret 0x10
push dword [ebp + 0x14]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x5d17b4]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push str..DataServer.ini
push 0x64
push 0x5d1750
push str.ogocx.com.br
push str.UserEmail
push str.DataServerInfo
call esi
push str..DataServer.ini
push 0x32
push 0x5d171c
push str.Resets
push str.ResetTable
push str.DataServerInfo
call esi
push 0
push str.1.0.0.1
lea eax, [esp + 0x240]
push str.__s__DataServer__QueueSize_:__d_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [esp + 0x238]
push eax
push dword [0x5d17b4]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [0x5d17b4]
mov dword [0x5cfc1c], eax
mov eax, dword [0x43dd90]
test eax, eax
jne 0x4071be
imul edi, eax, 0x214
inc eax
push 0x439928
push pe_nt_image_headers32
mov dword [0x43dd90], eax
add edi, 0x43db7c
lea esi, [edi + 4]
mov dword [edi], 1
push esi
call fcn.0041accd
add esp, 0xc
cmp dword [edi], 0
je 0x4071b4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [esp + 0x1f0]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [esp + 0x1f6]
lea esi, [edi + 0x110]
movzx ecx, word [esp + 0x1f2]
movzx eax, word [esp + 0x1f0]
push edx
push ecx
push eax
mov dword [edi + 0x10c], eax
lea eax, [edi + 4]
push eax
push str.._s_04d__02d__02d.txt
push esi
mov dword [edi + 0x104], edx
mov dword [edi + 0x108], ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [edi + 0x210], eax
cmp eax, 0xffffffff
jne 0x407190
mov dword [edi], 0
jmp 0x4071b4
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4071b4
push dword [edi + 0x210]
mov dword [edi], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x30]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x407395
push str..DataServer.ini
push 0x20
lea eax, [esp + 0x1c8]
xorps xmm0, xmm0
push eax
push 0x436e74
push str.DataServerODBC
push str.DataServerInfo
movaps xmmword [esp + 0x1d8], xmm0
movaps xmmword [esp + 0x1e8], xmm0
movaps xmmword [esp + 0x228], xmm0
movaps xmmword [esp + 0x238], xmm0
movaps xmmword [esp + 0x208], xmm0
movaps xmmword [esp + 0x218], xmm0
call esi
push str..DataServer.ini
push 0x20
lea eax, [esp + 0x218]
push eax
push 0x436e74
push str.DataServerUSER
push str.DataServerInfo
call esi
push str..DataServer.ini
push 0x20
lea eax, [esp + 0x1f8]
push eax
push 0x436e74
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 5
push str.MaxCharacters
movzx eax, ax
push str.DataServerInfo
mov dword [esp + 0x20], eax
call esi
push str..DataServer.ini
push 0
push str.DisableCheckName
push str.DataServerInfo
mov dword [0x5d1718], eax
call esi
push str..DataServer.ini
push 0
push str.RecycleSerial
push str.DataServerInfo
mov dword [0x5d1714], eax
call esi
mov dword [0x5d1710], eax
mov ecx, 0x43dde8
lea eax, [esp + 0x1f0]
push eax
lea eax, [esp + 0x214]
push eax
lea eax, [esp + 0x1c8]
push eax
call fcn.00414470
test al, al
jne 0x40730e
push str.Could_not_connect_to_database
push 1
call fcn.00416cb0
add esp, 8
jmp 0x4073ab
push dword [esp + 0x10]
call fcn.00415860
test al, al
jne 0x40736b
mov eax, dword [0x43ddf4]
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeHandle]
test eax, eax
je 0x407339
push eax
push 3
call esi
mov dword [0x43ddf4], 0
mov eax, dword [0x43ddf0]
test eax, eax
je 0x407351
push eax
push 2
call esi
mov dword [0x43ddf0], 0
mov eax, dword [0x43ddec]
test eax, eax
je 0x4073ab
push eax
push 1
call esi
mov dword [0x43ddec], 0
jmp 0x4073ab
push ecx
call fcn.00401660
push ecx
call fcn.00402100
mov esi, dword [sym.imp.USER32.dll_SetTimer]
push 0
push 0x3e8
push 0x64
push dword [0x5d17b4]
call esi
call fcn.00412330
jmp 0x4073b1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.WSAStartup___failed_with_error:__d
push 1
call fcn.00416cb0
add esp, 0xc
mov esi, dword [sym.imp.USER32.dll_SetTimer]
call fcn.004155d0
push 0
push 0x7d0
push 0x65
push dword [0x5d17b4]
call esi
push 0x6d
push edi
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
mov dword [esp + 0x18], eax
lea eax, [esp + 0x1c]
push 0
push eax
call esi
test eax, eax
je 0x40742b
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x14]
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_TranslateAcceleratorA]
test eax, eax
jne 0x40741a
lea eax, [esp + 0x14]
push eax
call edi
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
call esi
test eax, eax
jne 0x4073f1
push dword [0x5d1884]
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov ecx, dword [esp + 0x33c]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
xor ecx, esp
call fcn.00417457
mov esp, ebp
pop ebp
ret 0x10