Function at 0x46c860
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4c5620
push 0x47cdc0
mov eax, dword fs:[0]
push eax
sub esp, 0x2d8
mov eax, dword [0x4cc748]
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.00468300
test al, al
jne 0x46c8b2
xor eax, eax
jmp 0x46cb68
call fcn.004681a0
mov byte [ebp - 0x144], 0
push 0xff
push 0
lea eax, [ebp - 0x143]
push eax
call fcn.0047c770
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.0047e0e0
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 0x46c905
mov ecx, dword [str.XYDump.dll]
mov dword [eax], ecx
mov edx, dword [0x4b3d64]
mov dword [eax + 4], edx
mov ecx, dword [0x4b3d68]
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 0x46ca80
push str.InitXYDumpEx
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x2e8], eax
test eax, eax
je 0x46ca80
mov eax, dword [str.yxqlog]
mov dword [ebp - 0x44], eax
mov ecx, dword [0x4b3d44]
mov dword [ebp - 0x40], ecx
mov edx, dword [0x4b3d48]
mov dword [ebp - 0x3c], edx
mov ax, word [0x4b3d4c]
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 [0x4cde70], eax
je 0x46c9be
cmp dword [0x4cde74], 0x10
jb 0x46c9b7
mov edi, dword [0x4cde60]
jmp 0x46ca02
mov edi, 0x4cde60
jmp 0x46ca02
call fcn.0046b510
cmp dword [0x4ce3dc], edi
je 0x46ca02
mov ebx, 0x10
cmp dword [0x4ce3e0], ebx
mov eax, dword [0x4ce3cc]
jae 0x46c9e2
mov eax, 0x4ce3cc
push eax
call fcn.0047c73b
add esp, 4
test eax, eax
jle 0x46ca02
cmp dword [0x4ce3e0], ebx
mov edi, dword [0x4ce3cc]
jae 0x46ca02
mov edi, 0x4ce3cc
test edi, edi
je 0x46ca54
call dword [0x4cdbfc]
mov ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
add esi, 1
cmp esi, 0x3fffffff
jg 0x46ca4e
lea eax, [esi + esi]
call fcn.0047cf60
mov dword [ebp - 0x18], esp
mov eax, esp
push ebx
push esi
push edi
push eax
call fcn.00401a50
test eax, eax
je 0x46ca4e
push eax
push str.yxqlog__s
lea ecx, [ebp - 0x44]
push ecx
call fcn.00462750
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 0x46ca60
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 0x4b3d1c
mov edx, dword [ebp + 8]
push edx
push 0
mov ecx, 0x4ce4e4
call fcn.00462c50
call fcn.004134b0
test esi, esi
je 0x46cb41
push str.RecordExceptionInfo
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x2d8], eax
test eax, eax
je 0x46cb41
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x14]
push eax
push edi
call fcn.0046be40
add esp, 8
mov esi, eax
mov dword [ebp - 0x2e4], esi
mov dword [ebp - 4], 0xfffffffe
jmp 0x46cb50
mov edx, dword [ebp + 0x14]
push edx
push edi
call fcn.0046be40
add esp, 8
mov esi, eax
mov ecx, 0x4ce4e4
call fcn.00466130
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.0047b86d
mov esp, ebp
pop ebp
ret 0x10