Function at 0x407570
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x45bf68
push 0x439ec0
mov eax, dword fs:[0]
push eax
sub esp, 0x6b8
mov eax, dword [0x45f478]
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 + 8]
mov dword [ebp - 0x6b8], edi
mov dword [ebp - 4], 0
lea eax, [ebp - 0x520]
push eax
call fcn.0040d3c0
add esp, 4
test edi, edi
jne 0x4075e9
push 0xe000000e
call dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
push edi
push edi
push 0x60000001
mov ebx, dword [sym.imp.KERNEL32.dll_RaiseException]
call ebx
jmp 0x4075ef
mov ebx, dword [sym.imp.KERNEL32.dll_RaiseException]
xor ecx, ecx
mov eax, edi
mov edx, 0x63
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004380a8
add esp, 4
mov dword [0x460ac4], eax
xor edx, edx
mov dword [ebp - 0x6c0], edx
cmp edx, edi
jge 0x40763f
mov edi, edx
imul edi, edi, 0x63
add edi, eax
mov ecx, 0x18
mov esi, 0x44ae20
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
inc edx
mov eax, dword [0x460ac4]
mov edi, dword [ebp - 0x6b8]
jmp 0x407611
push str.CCLOUDMSG01
mov esi, dword [sym.imp.USER32.dll_RegisterWindowMessageA]
call esi
mov dword [0x460ad0], eax
push str.CCLOUDMSG02
call esi
mov dword [0x460ad4], eax
cmp dword [0x460ad0], 0
je 0x407672
test eax, eax
je 0x407672
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x407693
push str.RegisterWindowMessage__
lea eax, [ebp - 0x520]
push eax
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
call esi
push 0
push 0
push 0
push 0x60000001
call ebx
push 0x460ae8
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [ebp - 0x6b0]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 0x6b8], eax
test eax, eax
je 0x407738
push 0xe000003c
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.WSAStartup
lea eax, [ebp - 0x520]
push eax
call esi
mov eax, dword [ebp - 0x6b8]
add eax, 0xffffd8e2
cmp eax, 0x4e
ja case.0x4076ea.10015
movzx eax, byte [eax + 0x4079a0]
jmp dword [eax*4 + 0x407988]
push str.WSASYSNOTREADY_:_Network_subsystem_is_unavailable.
jmp 0x407719
push str.WSAVERNOTSUPPORTED_:_Winsock.dll_version_out_of_range.
jmp 0x407719
push str.WSAEINPROGRESS_:_Operation_now_in_progress.
jmp 0x407719
push str.WSAEPROCLIM_:_Too_many_processes.
jmp 0x407719
push str.WSAEFAULT_:_Bad_address.
jmp 0x407719
push str.unidentified_return_code
lea eax, [ebp - 0x420]
push eax
call esi
mov eax, 1
mov word [ebp - 0x20], ax
push 0
push 0
push 0
push 0x60000001
call ebx
mov eax, dword [ebp - 0x6b0]
cmp al, 2
jne 0x407749
shr eax, 8
cmp al, 2
je 0x40778c
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 0xe000003c
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.WSAStartup__
lea eax, [ebp - 0x520]
push eax
call esi
push str.Could_not_find_a_usable_WinSock_DLL.
lea eax, [ebp - 0x420]
push eax
call esi
mov eax, 1
mov word [ebp - 0x20], ax
push 0
push 0
push 0
push 0x60000001
call ebx
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x460ae0], eax
test eax, eax
jne 0x4077be
push str.CreateEvent__
lea eax, [ebp - 0x520]
push eax
call esi
push 0
push 0
push 0
push 0x60000001
call ebx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
mov dword [0x460ae4], eax
test eax, eax
jne 0x4077f3
push str.CreateWaitableTimer__
lea eax, [ebp - 0x520]
push eax
call esi
push 0
push 0
push 0
push 0x60000001
call ebx
mov eax, dword [0x460ae4]
mov dword [ebp - 0x6c8], 0xfd050f80
mov dword [ebp - 0x6c4], 0xffffffff
push 0
push 0
push 0
push 0x1388
lea ecx, [ebp - 0x6c8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetWaitableTimer]
test eax, eax
jne 0x40783f
push str.SetWaitableTimer__
lea eax, [ebp - 0x520]
push eax
call esi
push 0
push 0
push 0
push 0x60000001
call ebx
push 0x460adc
push 0
push 0
push 0x407d20
push 0
push 0
call fcn.0043a802
add esp, 0x18
mov dword [0x460ad8], eax
test eax, eax
jne 0x407896
push 0xe000000d
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str._beginthreadex__
lea eax, [ebp - 0x520]
push eax
call esi
push str.cloud_guardian_thread_could_not_be_started
lea eax, [ebp - 0x420]
push eax
call esi
push 0
push 0
push 0
push 0x60000001
call ebx
mov dword [0x460ac8], edi
mov al, 1
jmp 0x40795f
mov byte [ebp - 0x6b1], al
mov dword [ebp - 4], 0xfffffffe
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.00439a01
mov esp, ebp
pop ebp
ret