Function at 0x406f50
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 0x4141c0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
push 0x64
push 0x5d1808
push 0x67
push edi
mov dword [0x5d186c], eax
call esi
push 0x64
push 0x5d17a0
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], 0x4074d0
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], 0x5d17a0
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 0x5d1808
push 0x5d17a0
push 0
mov dword [0x5d1804], edi
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x5d179c], eax
test eax, eax
jne 0x4070a2
pop edi
pop esi
mov ecx, dword [esp + 0x334]
xor ecx, esp
call fcn.00417427
mov esp, ebp
pop ebp
ret 0x10
push dword [ebp + 0x14]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x5d179c]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push str..DataServer.ini
push 0x64
push 0x5d1738
push str.ogocx.com.br
push str.UserEmail
push str.DataServerInfo
call esi
push str..DataServer.ini
push 0x32
push 0x5d1704
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 [0x5d179c]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [0x5d179c]
mov dword [0x5cfc0c], eax
mov eax, dword [0x43dd80]
test eax, eax
jne 0x40722e
imul edi, eax, 0x214
inc eax
push 0x43991c
push 0x100
mov dword [0x43dd80], eax
add edi, 0x43db6c
lea esi, [edi + 4]
mov dword [edi], 1
push esi
call fcn.0041ab3d
add esp, 0xc
cmp dword [edi], 0
je 0x407224
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 0x407200
mov dword [edi], 0
jmp 0x407224
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x407224
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 0x407405
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 [0x5d1700], eax
call esi
push str..DataServer.ini
push 0
push str.RecycleSerial
push str.DataServerInfo
mov dword [0x5d16fc], eax
call esi
mov dword [0x5d16f8], eax
mov ecx, 0x43ddd8
lea eax, [esp + 0x1f0]
push eax
lea eax, [esp + 0x214]
push eax
lea eax, [esp + 0x1c8]
push eax
call fcn.004144d0
test al, al
jne 0x40737e
push str.Could_not_connect_to_database
push 1
call fcn.00416c80
add esp, 8
jmp 0x40741b
push dword [esp + 0x10]
call fcn.00415890
test al, al
jne 0x4073db
mov eax, dword [0x43dde4]
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeHandle]
test eax, eax
je 0x4073a9
push eax
push 3
call esi
mov dword [0x43dde4], 0
mov eax, dword [0x43dde0]
test eax, eax
je 0x4073c1
push eax
push 2
call esi
mov dword [0x43dde0], 0
mov eax, dword [0x43dddc]
test eax, eax
je 0x40741b
push eax
push 1
call esi
mov dword [0x43dddc], 0
jmp 0x40741b
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 [0x5d179c]
call esi
call fcn.004123b0
jmp 0x407421
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.WSAStartup___failed_with_error:__d
push 1
call fcn.00416c80
add esp, 0xc
mov esi, dword [sym.imp.USER32.dll_SetTimer]
call fcn.00415600
push 0
push 0x7d0
push 0x65
push dword [0x5d179c]
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 0x40749b
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 0x40748a
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 0x407461
push dword [0x5d186c]
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.00417427
mov esp, ebp
pop ebp
ret 0x10