Function at 0x40be80
Capabilities:
Check for time delay via gettickcount
Delete file
Initialize winsock library

Disassembly:
sub esp, 0x3b8
mov eax, dword [0x41c0f8]
push ebx
mov dword [esp + 0x3b8], eax
push esi
lea eax, [esp + 0x22c]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ebx, dword [esp + 0x3c4]
push ebx
call fcn.0040bbe0
mov ecx, dword [esp + 0x3d4]
push ecx
push ebx
call fcn.0040bc60
add esp, 0xc
test eax, eax
jne 0x40bf0c
mov ecx, dword [0x41cc14]
test ecx, ecx
je 0x40beed
mov esi, ecx
call fcn.004017d0
push esi
call fcn.0040f50b
add esp, 4
mov dword [0x41cc14], 0
call dword [sym.imp.WS2_32.dll_WSACleanup]
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x3b4]
call fcn.0040f5ac
add esp, 0x3b8
ret 0x10
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call ebp
xor edx, edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], edx
push edx
push edx
mov dword [0x41cc04], eax
push edx
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x38], edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x40c049
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
mov eax, dword [0x41cc10]
test eax, eax
jne 0x40c01a
call ebp
sub eax, dword [0x41cc04]
cmp eax, 0x1f40
jb 0x40c01a
push 0
call ebx
push 1
mov edi, eax
call ebx
mov edx, dword [0x41cc14]
test edx, edx
push 0
push 0
je 0x40bfd0
mov ecx, dword [edx + 0x34]
mov esi, dword [edx + 0x30]
mov edx, dword [0x41cc0c]
sub eax, ecx
push edx
cdq
sub eax, edx
sar eax, 1
lea eax, [eax + ecx - 0x15]
push 0x14
push 0x14
push eax
mov eax, edi
sub eax, esi
cdq
sub eax, edx
sar eax, 1
lea ecx, [eax + esi - 0x15]
push ecx
jmp 0x40bffc
mov edx, dword [0x41cc0c]
add eax, 0xffffff10
push edx
cdq
sub eax, edx
sar eax, 1
add eax, 0xdb
push 0x14
push 0x14
push eax
lea eax, [edi - 0x140]
cdq
sub eax, edx
sar eax, 1
add eax, 0x12b
push eax
push 0x90000000
push str.CloseButton
push str.CloseButton
push 0
call fcn.0040bab0
add esp, 0x2c
mov dword [0x41cc10], eax
call ebp
sub eax, dword [0x41cc04]
cmp eax, 0x7530
jae 0x40c042
push 0
push 0
push 0
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x40bf55
mov ebx, dword [esp + 0x3cc]
mov ecx, dword [0x41cc10]
mov esi, dword [sym.imp.USER32.dll_DestroyWindow]
push ecx
call esi
mov edi, dword [sym.imp.USER32.dll_UnregisterClassA]
push ebx
push str.CloseButton
call edi
mov edx, dword [0x41cc0c]
push edx
call esi
mov eax, dword [0x41cc08]
push eax
call esi
push ebx
push str.LG_Logout_Window
call edi
mov eax, dword [0x41cc14]
test eax, eax
je 0x40c0e5
mov ecx, dword [eax + 0x44]
test ecx, ecx
je 0x40c0c5
mov edx, dword [eax + 0x48]
test edx, edx
je 0x40c0c5
push 0
push 0x418c74
push 0x418c74
push 0x418c74
push 0x418c70
mov eax, edx
push 0x418c74
lea edx, [eax + 0x64]
push edx
add eax, 0x3c
push eax
call fcn.0040f010
mov eax, dword [0x41cc14]
test eax, eax
mov esi, eax
je 0x40c0db
mov ecx, eax
call fcn.004017d0
push esi
call fcn.0040f50b
add esp, 4
mov dword [0x41cc14], 0
call dword [sym.imp.WS2_32.dll_WSACleanup]
lea eax, [esp + 0x130]
push 0x104
push eax
call fcn.00403930
add esp, 8
test eax, eax
je 0x40c239
xor eax, eax
lea ebx, [ebx]
mov cl, byte [esp + eax + 0x130]
mov byte [esp + eax + 0x2c], cl
inc eax
test cl, cl
jne 0x40c110
lea edi, [esp + 0x2c]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40c125
mov ecx, dword [str.jollyharbor_]
mov edx, dword [0x4186e4]
mov eax, dword [0x4186e8]
mov dword [edi], ecx
mov cl, byte [0x4186ec]
mov dword [edi + 4], edx
mov dword [edi + 8], eax
mov byte [edi + 0xc], cl
lea edi, [esp + 0x2c]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40c154
mov edx, dword [str.Material_]
mov eax, dword [0x418250]
mov cx, word [0x418254]
mov dword [edi], edx
mov dword [edi + 4], eax
mov word [edi + 8], cx
lea edi, [esp + 0x2c]
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40c180
mov edx, dword [str.temp_]
mov ax, word [0x418c6c]
mov dword [edi], edx
mov word [edi + 4], ax
lea edi, [esp + 0x2c]
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40c1a0
mov ecx, dword [str.Thumbs.db]
mov edx, dword [0x418c60]
mov ax, word [0x418c64]
mov dword [edi], ecx
lea ecx, [esp + 0x2c]
mov dword [edi + 4], edx
push ecx
mov word [edi + 8], ax
call fcn.00403b00
add esp, 4
test eax, eax
je 0x40c1df
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edi, [esp + 0x130]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40c1e7
mov eax, dword [str.sysmessage_tempaddr_]
mov ecx, dword [0x4186cc]
mov edx, dword [0x4186d0]
mov dword [edi], eax
mov eax, dword [0x4186d4]
mov dword [edi + 4], ecx
mov ecx, dword [0x4186d8]
mov dword [edi + 8], edx
mov dl, byte [0x4186dc]
mov dword [edi + 0xc], eax
lea eax, [esp + 0x130]
mov dword [edi + 0x10], ecx
push eax
mov byte [edi + 0x14], dl
call fcn.00403cb0
push 2
call fcn.004047c0
add esp, 8
mov ecx, dword [esp + 0x3c4]
mov eax, dword [esp + 0x18]
pop edi
pop ebp
pop esi
pop ebx
call fcn.0040f5ac
add esp, 0x3b8
ret 0x10