Function at 0x1004d810
Capabilities:
Check for time delay via gettickcount
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1016d7b0
push 0x10118480
mov eax, dword fs:[0]
push eax
sub esp, 0x1a8
mov eax, dword [0x1017455c]
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 ebx, ecx
mov dword [ebp - 0x1b8], ebx
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x1b4], eax
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov edi, eax
test ebx, ebx
je 0x1004d86d
mov byte [ebx], 0
cmp dword [0x10193658], 0
jne 0x1004d8db
call esi
sub eax, edi
cmp eax, 0x3e8
jae 0x1004d8bd
push 0
push 1
push str.WinSockLoadInProgress
push 1
push 0
call sym.EncDec.dll_MyCreateMutex
mov dword [ebp - 0x1b4], eax
test eax, eax
je 0x1004d8bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1004d8bd
lea eax, [ebp - 0x1b4]
push eax
call fcn.100673f0
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1004d876
cmp dword [0x10193658], 0
je 0x1004d8ec
cmp dword [ebp - 0x1b4], 0
je 0x1004d8db
lea ecx, [ebp - 0x1b4]
push ecx
call fcn.100673f0
mov dword [ebp - 4], 0xfffffffe
mov eax, 1
jmp 0x1004db09
mov ecx, str.ws2_32.dll
call fcn.10032000
mov edi, eax
test edi, edi
jne 0x1004d92d
test ebx, ebx
je 0x1004d90f
push 0x100
mov esi, ebx
call fcn.10049da0
add esp, 4
cmp dword [ebp - 0x1b4], 0
je 0x1004db00
lea edx, [ebp - 0x1b4]
push edx
call fcn.100673f0
jmp 0x1004db00
push str.WSACleanup
push edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call esi
mov dword [0x10193670], eax
push str.WSAStartup
push edi
call esi
mov dword [0x10193668], eax
test eax, eax
jne 0x1004d99b
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
mov dword [0x10193658], esi
mov dword [0x10193670], esi
mov dword [0x10193668], esi
cmp ebx, esi
je 0x1004d97e
push str.Unable_to_GetProcAddress_of_WSACleanup_WSAStartup_
push ebx
call fcn.1010d6a8
add esp, 8
cmp dword [ebp - 0x1b4], esi
je 0x1004db00
lea eax, [ebp - 0x1b4]
push eax
call fcn.100673f0
jmp 0x1004db00
lea ecx, [ebp - 0x1b0]
push ecx
push 0x202
call eax
mov ebx, eax
test ebx, ebx
je 0x1004da54
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
mov dword [0x10193658], esi
mov dword [0x10193670], esi
mov dword [0x10193668], esi
mov eax, dword [ebp - 0x1b8]
cmp eax, esi
je 0x1004da37
cmp ebx, 0x276b
jne 0x1004d9e8
push ebx
push str.WSAStartup_Error:_WSASYSNOTREADY___d_
jmp 0x1004da2e
cmp ebx, 0x276c
jne 0x1004d9f8
push ebx
push str.WSAStartup_Error:_WSAVERNOTSUPPORTED___d_
jmp 0x1004da2e
cmp ebx, 0x2734
jne 0x1004da08
push ebx
push str.WSAStartup_Error:_WSAEINPROGRESS___d_
jmp 0x1004da2e
cmp ebx, 0x2753
jne 0x1004da18
push ebx
push str.WSAStartup_Error:_WSAEPROCLIM___d_
jmp 0x1004da2e
cmp ebx, 0x271e
jne 0x1004da28
push ebx
push str.WSAStartup_Error:_WSAEFAULT___d_
jmp 0x1004da2e
push ebx
push str.Unknown_WSAStartup_Error:__d
push eax
call fcn.1010d6a8
add esp, 0xc
cmp dword [ebp - 0x1b4], esi
je 0x1004db00
lea edx, [ebp - 0x1b4]
push edx
call fcn.100673f0
jmp 0x1004db00
push str.inet_ntoa
push edi
call esi
mov dword [0x1019365c], eax
push str.gethostbyname
push edi
call esi
mov dword [0x10193660], eax
push str.WSAGetLastError
push edi
call esi
mov dword [0x10193664], eax
push str.htonl
push edi
call esi
mov dword [0x1019366c], eax
push str.gethostname
push edi
call esi
mov dword [0x10193674], eax
push str.closesocket
push edi
call esi
mov dword [0x10193678], eax
push str.WSASocketA
push edi
call esi
mov dword [0x1019367c], eax
push 0x10153278
push edi
call esi
mov dword [0x10193680], eax
push str.inet_addr
push edi
call esi
mov dword [0x10193684], eax
mov dword [0x10193658], edi
cmp dword [ebp - 0x1b4], 0
je 0x1004d8db
lea eax, [ebp - 0x1b4]
push eax
jmp 0x1004d8d6
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
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.1010d699
mov esp, ebp
pop ebp
ret