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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x314
mov eax, dword [0x40e018]
xor eax, esp
mov dword [esp + 0x310], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
push edi
push 0x64
push 0x410678
push 0x65
push ebx
call esi
push 0x64
push 0x410610
push 0x71
push ebx
call esi
mov eax, ebx
call fcn.004021b0
mov eax, dword [ebp + 0x14]
push eax
mov eax, ebx
call fcn.00402230
add esp, 4
test eax, eax
jne 0x401e9e
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x310]
xor ecx, esp
call fcn.0040a125
mov esp, ebp
pop ebp
ret 0x10
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push str..DupeTool.ini
push 0
push str.CustomerLicenseId
push str.DupeToolInfo
call esi
push 1
mov ecx, 0x410730
mov word [0x410604], ax
call fcn.00408940
push str.Season_1__Season_4
lea ecx, [esp + 0x21c]
push str._ItemTool__SSeMU_Emulator___s___Ver:_1.0.3_
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [0x410608]
add esp, 0xc
lea edx, [esp + 0x218]
push edx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [0x410608]
push ecx
mov ecx, 0x40eb00
call fcn.00409b50
lea edx, [esp + 0x28]
push edx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4020f8
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push str..DupeTool.ini
push 0x20
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 + 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 + 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 + 0x1c0]
push eax
push 0x40b6fb
push str.DupeToolODBC
push str.DupeToolInfo
call edi
push str..DupeTool.ini
push 0x20
lea ecx, [esp + 0x200]
push ecx
push 0x40b6fb
push str.DupeToolUSER
push str.DupeToolInfo
call edi
push str..DupeTool.ini
push 0x20
lea edx, [esp + 0x1e0]
push edx
push 0x40b6fb
push str.DupeToolPASS
push str.DupeToolInfo
call edi
push str..DupeTool.ini
push 0
push str.CheckSerial0
push str.DupeToolInfo
call esi
push str..DupeTool.ini
push 0
push str.DuplicateItemLog
push str.DupeToolInfo
mov dword [0x410600], eax
call esi
push str..DupeTool.ini
push 0
push str.DuplicateSerialLog
push str.DupeToolInfo
mov dword [0x4105fc], eax
call esi
mov dword [0x4105f8], eax
lea eax, [esp + 0x1d8]
push eax
lea ecx, [esp + 0x1fc]
push ecx
lea eax, [esp + 0x1c0]
mov ecx, 0x410778
call fcn.00409460
test al, al
jne 0x4020da
push str.Could_not_connect_to_database__ODBC_Error_
push 1
call fcn.00409e70
add esp, 8
jmp 0x40210e
lea edx, [esp + 0x1b8]
push edx
push str.Connected_to___s__ODBC
push 0
call fcn.00409e70
add esp, 0xc
call fcn.004028f0
jmp 0x40210e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.WSAStartup___failed_with_error:__d
push 1
call fcn.00409e70
add esp, 0xc
mov eax, dword [0x410608]
push 0
push 0x7d0
push 0x64
push eax
call dword [sym.imp.USER32.dll_SetTimer]
push 0x71
push ebx
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 0x402188
mov ebx, dword [sym.imp.USER32.dll_TranslateAcceleratorA]
jmp 0x402150
mov eax, dword [esp + 0xc]
lea edx, [esp + 0xc]
push edx
push esi
push eax
call ebx
test eax, eax
jne 0x402177
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 0x402150
mov ecx, dword [esp + 0x31c]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040a125
mov esp, ebp
pop ebp
ret 0x10