Function at 0x465570
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4bc9c0
push 0x476e90
mov eax, dword fs:[0]
push eax
sub esp, 0x2d8
mov eax, dword [0x4c36a0]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x2d8], edi
call fcn.00460e10
test al, al
jne 0x4655c2
xor eax, eax
jmp 0x465878
call fcn.00460cb0
mov byte [ebp - 0x144], 0
push 0xff
push 0
lea eax, [ebp - 0x143]
push eax
call fcn.00475820
add esp, 0xc
push 0x100
lea ecx, [ebp - 0x144]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
lea edx, [ebp - 0x144]
push edx
call fcn.004778f0
add esp, 8
mov byte [eax], 0
lea eax, [ebp - 0x144]
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x465615
mov ecx, dword [str.XYDump.dll]
mov dword [eax], ecx
mov edx, dword [0x4ab9a4]
mov dword [eax + 4], edx
mov ecx, dword [0x4ab9a8]
mov dword [eax + 8], ecx
lea edx, [ebp - 0x144]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
mov dword [ebp - 0x2e0], esi
test esi, esi
je 0x465790
push str.InitXYDumpEx
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x2e8], eax
test eax, eax
je 0x465790
mov eax, dword [str.yxqlog]
mov dword [ebp - 0x44], eax
mov ecx, dword [0x4ab984]
mov dword [ebp - 0x40], ecx
mov edx, dword [0x4ab988]
mov dword [ebp - 0x3c], edx
mov ax, word [0x4ab98c]
mov word [ebp - 0x38], ax
xor eax, eax
mov dword [ebp - 0x36], eax
mov dword [ebp - 0x32], eax
mov dword [ebp - 0x2e], eax
mov dword [ebp - 0x2a], eax
mov dword [ebp - 0x26], eax
mov dword [ebp - 0x22], eax
mov word [ebp - 0x1e], ax
xor edi, edi
cmp dword [0x4c4c58], eax
je 0x4656ce
cmp dword [0x4c4c5c], 0x10
jb 0x4656c7
mov edi, dword [0x4c4c48]
jmp 0x465712
mov edi, 0x4c4c48
jmp 0x465712
call fcn.00464330
cmp dword [0x4c518c], edi
je 0x465712
mov ebx, 0x10
cmp dword [0x4c5190], ebx
mov eax, dword [0x4c517c]
jae 0x4656f2
mov eax, 0x4c517c
push eax
call fcn.004771ef
add esp, 4
test eax, eax
jle 0x465712
cmp dword [0x4c5190], ebx
mov edi, dword [0x4c517c]
jae 0x465712
mov edi, 0x4c517c
test edi, edi
je 0x465764
call dword [0x4c3558]
mov ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
add esi, 1
cmp esi, 0x3fffffff
jg 0x46575e
lea eax, [esi + esi]
call fcn.00477030
mov dword [ebp - 0x18], esp
mov eax, esp
push ebx
push esi
push edi
push eax
call fcn.004010b0
test eax, eax
je 0x46575e
push eax
push str.yxqlog__s
lea ecx, [ebp - 0x44]
push ecx
call fcn.0045aab0
add esp, 0xc
mov esi, dword [ebp - 0x2e0]
lea eax, [ebp - 0x44]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x465770
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x44]
push edx
call dword [ebp - 0x2e8]
mov edi, dword [ebp - 0x2d8]
lea eax, [ebp - 0x2d4]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_DefWindowProcA]
mov dword [ebp - 0x2dc], 8
mov dword [ebp - 0x2d8], 4
lea ecx, [ebp - 0x2dc]
push ecx
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push 0x4ab95c
mov edx, dword [ebp + 8]
push edx
push 0
mov ecx, 0x4c528c
call fcn.0045b170
call fcn.00428cd0
test esi, esi
je 0x465851
push str.RecordExceptionInfo
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x2d8], eax
test eax, eax
je 0x465851
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x14]
push eax
push edi
call fcn.00464c60
add esp, 8
mov esi, eax
mov dword [ebp - 0x2e4], esi
mov dword [ebp - 4], 0xfffffffe
jmp 0x465860
mov edx, dword [ebp + 0x14]
push edx
push edi
call fcn.00464c60
add esp, 8
mov esi, eax
mov ecx, 0x4c528c
call fcn.0045ead0
call dword [sym.imp.ole32.dll_CoUninitialize]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, esi
lea esp, [ebp - 0x2f8]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00476554
mov esp, ebp
pop ebp
ret 0x10