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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4afecb
mov eax, dword fs:[0]
push eax
sub esp, 0x41c
mov eax, dword [0x4dc1bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x3ac]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x41de19
push 0x5c
push 0x4c4c34
call fcn.0048f6b0
add esp, 8
test eax, eax
je 0x41ddef
push 0x5c
push 0x4c4c48
call fcn.0048f6b0
add esp, 8
add eax, 1
mov dword [ebp - 0x3c0], eax
jmp 0x41ddf9
mov dword [ebp - 0x3c0], str.TSCardDriveSvr.cpp
push str.WSAStartup_error
push 0x105
mov ecx, dword [ebp - 0x3c0]
push ecx
push 1
call fcn.00471440
add esp, 0x10
jmp 0x41e1b0
lea edx, [ebp - 0x428]
push edx
call fcn.004101e0
add esp, 4
lea ecx, [ebp - 0x428]
call fcn.0040b970
mov byte [ebp - 0x214], 0
push 0x103
push 0
lea eax, [ebp - 0x213]
push eax
call fcn.004917a0
add esp, 0xc
mov byte [ebp - 0x110], 0
push 0xff
push 0
lea ecx, [ebp - 0x10f]
push ecx
call fcn.004917a0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x214]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 1
push str.LogFile
push 0x4c4c78
call fcn.00403270
add esp, 0x10
mov dword [ebp - 0x3c4], eax
push 0x4e3490
call fcn.00402c70
add esp, 4
cmp dword [ebp - 0x3c4], 0
jle 0x41dfc3
push 0
push 0x100
lea eax, [ebp - 0x110]
push eax
push 0x4c24da
push str.LogDir
push 0x4c4c84
call fcn.004030d0
add esp, 0x18
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x3b4], ecx
mov edx, dword [ebp - 0x3b4]
add edx, 1
mov dword [ebp - 0x3c8], edx
mov eax, dword [ebp - 0x3b4]
mov cl, byte [eax]
mov byte [ebp - 0x3ae], cl
add dword [ebp - 0x3b4], 1
cmp byte [ebp - 0x3ae], 0
jne 0x41def7
mov edx, dword [ebp - 0x3b4]
sub edx, dword [ebp - 0x3c8]
mov dword [ebp - 0x3cc], edx
jne 0x41dfa4
push 0x100
push 0
lea eax, [ebp - 0x110]
push eax
call fcn.004917a0
add esp, 0xc
mov dword [ebp - 0x3bc], 0x4e3490
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x3b8], ecx
mov edx, dword [ebp - 0x3b8]
mov dword [ebp - 0x3e8], edx
mov eax, dword [ebp - 0x3bc]
mov cl, byte [eax]
mov byte [ebp - 0x3ad], cl
mov edx, dword [ebp - 0x3b8]
mov al, byte [ebp - 0x3ad]
mov byte [edx], al
mov ecx, dword [ebp - 0x3bc]
add ecx, 1
mov dword [ebp - 0x3bc], ecx
mov edx, dword [ebp - 0x3b8]
add edx, 1
mov dword [ebp - 0x3b8], edx
cmp byte [ebp - 0x3ad], 0
jne 0x41df61
push 0
mov eax, dword [ebp - 0x3c4]
push eax
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x110]
push edx
call fcn.004712f0
add esp, 0x10
push 0x4e3490
push str._sHSM.ini
push 0x4e3598
call fcn.00402bf0
add esp, 0xc
push 0x4e3490
push str._sPrinterConfig.ini
push 0x4e3290
call fcn.00402bf0
add esp, 0xc
push 0x4e3598
push 0x100
push 0x4e3390
push 0x4c24db
push 0x4c4cac
push 0x4c4cb0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0
mov ecx, 0x4e3728
call fcn.0041e5a0
push 0
mov ecx, 0x4e3728
call fcn.0041e580
mov ecx, 0x4e3728
call fcn.0041e700
mov dword [ebp - 0x3d0], 0x4e3728
mov dword [ebp - 0x3d4], 0x41c460
sub esp, 0x28
mov esi, esp
mov dword [ebp - 0x3ec], esp
sub esp, 0xc
mov eax, esp
mov dword [ebp - 0x3f0], esp
push 0x4c249b
lea ecx, [ebp - 0x3d0]
push ecx
lea edx, [ebp - 0x3d4]
push edx
push eax
call fcn.00420b00
add esp, 0x10
mov ecx, esi
call fcn.00420b40
mov dword [ebp - 0x3f4], eax
mov ecx, 0x4e3728
call fcn.0041e4d0
mov dword [ebp - 0x3d8], 0x4e3728
mov dword [ebp - 0x3dc], 0x41c4f0
sub esp, 0x28
mov esi, esp
mov dword [ebp - 0x3f8], esp
sub esp, 0xc
mov eax, esp
mov dword [ebp - 0x3fc], esp
push 0x4c249b
lea ecx, [ebp - 0x3d8]
push ecx
lea edx, [ebp - 0x3dc]
push edx
push eax
call fcn.00420b00
add esp, 0x10
mov ecx, esi
call fcn.00420b40
mov dword [ebp - 0x400], eax
mov ecx, 0x4e3728
call fcn.0041e420
mov dword [ebp - 0x3e0], 0x4e3728
mov dword [ebp - 0x3e4], 0x41c580
sub esp, 0x28
mov esi, esp
mov dword [ebp - 0x404], esp
sub esp, 0xc
mov eax, esp
mov dword [ebp - 0x408], esp
push 0x4c249a
push 0x4c249b
lea ecx, [ebp - 0x3e0]
push ecx
lea edx, [ebp - 0x3e4]
push edx
push eax
call fcn.00420bb0
add esp, 0x14
mov ecx, esi
call fcn.00420c00
mov dword [ebp - 0x40c], eax
mov ecx, 0x4e3728
call fcn.0041e370
push 0x411e
lea eax, [ebp - 0x410]
push eax
call fcn.004711e0
add esp, 4
push eax
mov ecx, 0x4e3728
call fcn.00420c70
mov ecx, 0x4e3728
call fcn.0041e5c0
push 0x41dcc0
lea ecx, [ebp - 0x21c]
call fcn.00420cb0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x21c]
call fcn.004710e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.004711c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00478787
mov esp, ebp
pop ebp
ret