Function at 0x4c2940
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f8e10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c8
push ebx
push esi
push edi
xor edi, edi
push edi
call dword [sym.imp.ole32.dll_CoInitialize]
mov eax, dword [ebp + 0x10]
push eax
call fcn.004debba
mov esi, eax
inc esi
lea ecx, [esi + esi]
push ecx
call fcn.004de48f
add esp, 8
cmp esi, edi
mov ebx, eax
jbe 0x4c2999
mov ecx, esi
xor eax, eax
mov edi, ebx
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
xor edi, edi
mov edx, dword [ebp + 0x10]
push edx
push ebx
call fcn.004df3e0
push str.display
push ebx
call fcn.004df682
add esp, 0x10
cmp eax, edi
je 0x4c29d6
lea esi, [eax - 2]
push esi
call fcn.004debba
add esp, 4
cmp eax, edi
jbe 0x4c29d6
mov ecx, eax
xor eax, eax
mov edi, esi
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
xor edi, edi
lea eax, [ebp - 0x1d4]
push eax
push 0x202
call sub.WS2_32.dll_WSAStartup
push str.u_setup
push ebx
call fcn.004df682
mov esi, eax
add esp, 8
cmp esi, edi
je 0x4c2afd
push esi
call fcn.004debba
add esp, 4
cmp eax, 7
jne 0x4c2a20
push edi
push 0x51a964
call fcn.004c21f0
add esp, 8
jmp 0x4c2dbd
mov ecx, dword [0x50d0e0]
add esi, 0xe
cmp esi, edi
mov dword [ebp + 0x10], ecx
je 0x4c2a80
mov edx, esi
shr edx, 0x10
jne 0x4c2a48
and esi, 0xffff
lea ecx, [ebp + 0x10]
push esi
call fcn.00407b60
jmp 0x4c2a80
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
cmp ebx, edi
je 0x4c2a80
push ebx
lea ecx, [ebp + 0x10]
call fcn.00402190
test eax, eax
je 0x4c2a80
lea ecx, [ebx + ebx]
lea eax, [ebx + ebx + 2]
cmp eax, ecx
jb 0x4c2a80
mov edi, dword [ebp + 0x10]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor edi, edi
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 4], edi
cmp ebx, edi
jne 0x4c2a8e
xor esi, esi
jmp 0x4c2abd
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.004ded50
mov esi, esp
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push ebx
push 0
push 0
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
push 0x51a964
call fcn.004c21f0
mov eax, dword [ebp + 0x10]
mov edx, dword [0x50d0e4]
add esp, 8
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4c2dbd
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4c2dbd
mov edx, dword [ebp + 0x10]
add edx, 0xfffffff4
push edx
jmp 0x4c2db5
push str.u_un
push ebx
call fcn.004df682
mov esi, eax
add esp, 8
cmp esi, edi
je 0x4c2c16
push esi
call fcn.004debba
add esp, 4
cmp eax, 4
jne 0x4c2b36
push edi
push 0x51a950
call fcn.004c21f0
add esp, 8
jmp 0x4c2dbd
mov eax, dword [0x50d0e0]
add esi, 8
cmp esi, edi
mov dword [ebp + 0x10], eax
je 0x4c2b95
mov ecx, esi
shr ecx, 0x10
jne 0x4c2b5d
and esi, 0xffff
lea ecx, [ebp + 0x10]
push esi
call fcn.00407b60
jmp 0x4c2b95
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
cmp ebx, edi
je 0x4c2b95
push ebx
lea ecx, [ebp + 0x10]
call fcn.00402190
test eax, eax
je 0x4c2b95
lea ecx, [ebx + ebx]
lea edx, [ebx + ebx + 2]
cmp edx, ecx
jb 0x4c2b95
mov edi, dword [ebp + 0x10]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor edi, edi
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 4], 1
cmp ebx, edi
jne 0x4c2ba7
xor esi, esi
jmp 0x4c2bd6
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.004ded50
mov esi, esp
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push ebx
push 0
push 0
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
push 0x51a950
call fcn.004c21f0
mov eax, dword [ebp + 0x10]
mov edx, dword [0x50d0e4]
add esp, 8
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4c2dbd
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4c2dbd
mov edx, dword [ebp + 0x10]
add edx, 0xfffffff4
push edx
jmp 0x4c2db5
push ebx
call fcn.004c27c0
add esp, 4
test eax, eax
je 0x4c2c3b
cmp ebx, edi
je 0x4c2c30
push ebx
call fcn.004de3a6
add esp, 4
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x4c2dbd
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 8
push eax
mov dword [ebp - 0x10], 0x6ff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, dword [ebp + 8]
push edi
push ecx
push edi
mov ecx, 0x5256b0
call fcn.004c2de0
test eax, eax
jl 0x4c2ca1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0xc
mov dword [0x525734], eax
mov dword [0x525738], edi
call fcn.004de48f
add esp, 4
cmp eax, edi
je 0x4c2c90
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
jmp 0x4c2c92
xor eax, eax
cmp eax, edi
mov dword [0x525738], eax
je 0x4c2ca1
mov dword [0x52573c], edi
push 0x5256e4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [sym.imp.USER32.dll_RegisterWindowMessageW]
push str.WM_ATLGETHOST
call esi
push str.WM_ATLGETCONTROL
mov dword [0x5209e4], eax
call esi
lea edx, [ebp - 0x44]
mov dword [0x5209e0], eax
mov eax, dword [0x5256b4]
push edx
mov esi, 0x30
push str.AtlAxWin
push eax
mov dword [ebp - 0x44], esi
call dword [sym.imp.USER32.dll_GetClassInfoExW]
test eax, eax
jne 0x4c2d36
mov eax, dword [0x5256b4]
push 0x7f00
push edi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], 0x4c3060
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edi
call dword [sym.imp.USER32.dll_LoadCursorW]
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x28], eax
push ecx
mov dword [ebp - 0x24], 6
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], str.AtlAxWin
mov dword [ebp - 0x18], edi
call dword [sym.imp.USER32.dll_RegisterClassExW]
push 0x5256e4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.004c21d0
test eax, eax
je 0x4c2dbd
push str.firstrun
push ebx
call fcn.004df682
add esp, 8
test eax, eax
jne 0x4c2dbd
mov edx, dword [ebp + 0x14]
push edx
push ebx
call fcn.004c2380
add esp, 8
call fcn.004c21e0
mov eax, dword [0x525e34]
cmp eax, edi
je 0x4c2d84
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x525e34], edi
mov ecx, 0x5256b0
call fcn.004c2f80
mov ecx, dword [0x525738]
cmp ecx, edi
je 0x4c2d9f
push 1
call fcn.004c3010
push 0x5256b0
call fcn.004c2eb0
call sub.WS2_32.dll_WSACleanup
call dword [sym.imp.ole32.dll_CoUninitialize]
push ebx
call fcn.004de3a6
add esp, 4
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x1e0]
xor eax, eax
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10