Function at 0x4efd80
Capabilities:
Check for time delay via gettickcount
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x58857a
push eax
mov eax, 0x9fb0
mov dword fs:[0], esp
call fcn.00573b80
push ebx
push ebp
mov ebp, ecx
xor ebx, ebx
mov ecx, dword [esp + 0x9fcc]
push esi
cmp ecx, ebx
push edi
je 0x4f07ee
cmp dword [ebp + 0x26b4], ebx
je 0x4f07ee
cmp dword [ebp + 0x158], ebx
je 0x4f07ee
mov edx, dword [ebp + 0x3e4]
mov esi, dword [esp + 0x9fd0]
xor eax, eax
cmp edx, ebx
jle 0x4efdfa
mov edi, dword [ebp + 0x3e0]
cmp dword [edi], esi
je 0x4f07ee
inc eax
add edi, 0x1f80
cmp eax, edx
jl 0x4efde7
lea eax, [esp + 0x3c]
push eax
push esi
call fcn.004fe840
mov edx, eax
cmp edx, ebx
jne 0x4efe15
cmp dword [esp + 0x3c], ebx
je 0x4f07ee
mov ecx, 0x7d0
xor eax, eax
lea edi, [esp + 0x80]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x4c], 1
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], 0x200
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], 0xa
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], 0x1388
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x2664]
cmp eax, ebx
je 0x4efe97
mov eax, dword [eax + 0x4990]
cmp eax, 0x80
mov dword [esp + 0x60], eax
jl 0x4efe8f
cmp eax, 0x10000
jle 0x4efe97
mov dword [esp + 0x60], 0x200
cmp edx, ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x38], ebx
je 0x4f022a
push 0x18
push ebx
push edx
mov dword [esp + 0x54], ebx
call fcn.0049fac0
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x20], esi
je 0x4f07ee
mov eax, dword [ebp + 0x2664]
cmp eax, ebx
je 0x4eff05
cmp dword [eax + 0x4988], ebx
je 0x4eff05
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
cmp eax, 0x80000
push esi
jb 0x4efef4
call fcn.0049f4c0
mov edi, eax
mov dword [esp + 0x4c], 2
jmp 0x4eff0b
call fcn.0049f330
mov edi, eax
mov dword [esp + 0x4c], 1
jmp 0x4eff0b
xor edi, edi
mov dword [esp + 0x4c], ebx
mov eax, 1
cmp edi, ebx
mov dword [esp + 0x34], eax
jne 0x4eff26
mov edi, esi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ebx
push edi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov esi, eax
cmp esi, 0x3e8000
mov dword [esp + 0x30], esi
jbe 0x4eff49
push edi
call fcn.004a0300
add esp, 4
jmp 0x4f07ee
cmp esi, 0xc800
jb 0x4eff59
mov dword [esp + 0x38], 1
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, ebx
mov dword [esp + 0x18], eax
jne 0x4eff76
push edi
call fcn.004a0300
add esp, 4
jmp 0x4f07ee
mov ecx, dword [esp + 0x9fd0]
mov edx, dword [ebp + 0x158]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x7c], edx
mov dword [esp + 0x58], eax
mov eax, esi
xor edx, edx
div ecx
mov dword [esp + 0x5c], esi
mov dword [esp + 0x50], 1
mov dword [esp + 0x54], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x64], eax
imul eax, ecx
sub esi, eax
je 0x4effbc
inc dword [esp + 0x64]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [ebp + 0x3e4]
lea ecx, [ebp + 0x3dc]
mov dword [esp + 0x70], eax
push 0xffffffffffffffff
lea eax, [edi + 1]
mov dword [esp + 0x20], edi
push eax
call fcn.004379f0
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x64]
shl edi, 6
sub edi, edx
mov edx, dword [ebp + 0x3e0]
shl edi, 7
mov ecx, 0x7e0
lea esi, [esp + 0x40]
add edi, edx
cmp eax, ebx
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x2c], ebx
jle 0x4f0193
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x14], 1
neg eax
mov dword [esp + 0x28], 0
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], edx
mov eax, dword [esp + 0x14]
mov cl, byte [esp + eax + 0x7f]
test cl, cl
jne 0x4f014f
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x60]
dec ecx
cmp eax, ecx
jne 0x4f005f
mov ebx, dword [esp + 0x1c]
mov edi, 0x5f3788
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1fc0]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [esp + 0x4c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x48]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x7c]
push ecx
mov ecx, dword [esp + 0x18]
push 0
push edx
mov edx, dword [esp + 0x70]
push eax
mov eax, dword [esp + 0x38]
push ebx
push ecx
mov ecx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x9fec]
push eax
push ecx
push edx
lea eax, [esp + 0x1fe8]
push str._08x_ld_d_d_d_d_d_d_d_08x
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [esp + 0x48]
add esp, 0x30
lea edx, [esp + 0x1fc0]
push 0
push ebx
push ecx
mov ecx, dword [ebp + 0x26b4]
push edx
push 0x2000c0
call fcn.0049c590
test eax, eax
jne 0x4f0108
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x4f0193
push 2
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp + 0x26a8]
xor esi, esi
test eax, eax
jle 0x4f014f
xor edi, edi
mov eax, dword [esp + 0x18]
push 0
push ebx
lea ecx, [esp + 0x1fc8]
push eax
push ecx
mov ecx, dword [ebp + 0x26a4]
mov edx, edi
add edx, ecx
mov ecx, dword [ebp + 0x26b4]
push 0x2000c0
push edx
call fcn.0049c4e0
mov eax, dword [ebp + 0x26a8]
inc esi
add edi, 0x6c
cmp esi, eax
jl 0x4f0116
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x60]
mov ebx, dword [esp + 0x28]
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x2c]
add edi, edx
mov edx, dword [esp + 0x14]
add ebx, ecx
add esi, ecx
mov ecx, dword [esp + 0x64]
inc eax
inc edx
cmp eax, ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], edx
jl 0x4f003a
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push 0x5e2f94
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esp + 0x9fd4]
push 0
push 1
lea ecx, [esp + 0x30]
or esi, 0xffffffff
push eax
push ecx
mov dword [esp + 0x9fdc], esi
call fcn.0040d740
mov ecx, eax
call fcn.00479820
mov edx, dword [esp + 0x24]
mov dword [esp + 0x9fc8], 1
push edx
call fcn.00440560
add esp, 4
test al, al
jne 0x4f0205
push ecx
lea eax, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
call sub.MFC42.DLL_CString::CString_4
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00442260
add esp, 8
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4f021a
mov edx, dword [esp + 0x20]
push edx
call fcn.004a0300
add esp, 4
mov dword [esp + 0x9fc8], esi
lea ecx, [esp + 0x24]
jmp 0x4f07bc
push ecx
mov dword [esp + 0x4c], 2
mov ecx, esp
mov dword [esp + 0x14], esp
push 0x5f3788
call sub.MFC42.DLL_CString::CString_3
push 1
push 2
lea eax, [esp + 0x24]
or edi, 0xffffffff
push esi
push eax
mov dword [esp + 0x9fdc], edi
call fcn.0040d740
mov ecx, eax
call fcn.00479820
mov ecx, dword [esp + 0x18]
push 0x5f3788
push ecx
mov dword [esp + 0x9fd0], 3
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x4f029a
lea ecx, [esp + 0x18]
mov dword [esp + 0x9fc8], edi
call sub.MFC42.DLL_CString::CString
jmp 0x4f07ee
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call sub.MFC42.DLL_CString::CString_4
call fcn.004431a0
mov esi, eax
add esp, 4
cmp esi, ebx
jne 0x4f02d2
lea ecx, [esp + 0x18]
mov dword [esp + 0x9fc8], 0xffffffff
call sub.MFC42.DLL_CString::CString
jmp 0x4f07ee
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov edi, eax
cmp edi, 0xc800
mov dword [esp + 0x30], edi
jb 0x4f02ef
mov dword [esp + 0x38], 1
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, ebx
mov dword [esp + 0x1c], eax
jne 0x4f0309
push esi
call fcn.004a0300
add esp, 4
jmp 0x4f02b9
mov ecx, dword [esp + 0x9fd0]
mov edx, dword [ebp + 0x158]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x58], eax
mov dword [esp + 0x7c], edx
mov eax, edi
xor edx, edx
div ecx
mov dword [esp + 0x5c], edi
mov dword [esp + 0x50], 1
mov dword [esp + 0x54], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x64], eax
imul eax, ecx
sub edi, eax
je 0x4f034f
inc dword [esp + 0x64]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp + 0x3e4]
mov dword [esp + 0x70], eax
mov eax, dword [ebp + 0x3e0]
mov esi, ecx
mov dword [esp + 0x14], esi
inc esi
cmp esi, ebx
mov dword [esp + 0x10], esi
jne 0x4f0398
cmp eax, ebx
je 0x4f0387
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [ebp + 0x3e0], ebx
mov dword [ebp + 0x3e8], ebx
mov dword [ebp + 0x3e4], ebx
jmp 0x4f05fc
cmp eax, ebx
jne 0x4f0415
mov edi, esi
shl edi, 6
sub edi, esi
shl edi, 7
push edi
call sub.MFC42.DLL_operatornew
mov edx, eax
mov ecx, edi
mov dword [ebp + 0x3e0], edx
mov dword [esp + 0x24], edx
mov edi, edx
mov edx, ecx
xor eax, eax
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x20]
mov dword [esp + 0x10], edi
cmp edi, ebx
mov byte [esp + 0x9fc8], 4
je 0x4f03ea
mov ecx, edi
call fcn.0042da00
add edi, 0x1f80
dec esi
mov byte [esp + 0x9fc8], 3
mov dword [esp + 0x20], edi
jne 0x4f03d3
mov eax, dword [esp + 0x14]
inc eax
mov dword [ebp + 0x3e8], eax
mov dword [ebp + 0x3e4], eax
jmp 0x4f05fc
mov edi, dword [ebp + 0x3e8]
cmp esi, edi
jg 0x4f04a7
cmp esi, ecx
jle 0x4f0495
mov edx, esi
mov esi, ecx
shl esi, 6
sub edx, ecx
sub esi, ecx
mov ecx, edx
mov dword [esp + 0x10], edx
shl ecx, 6
sub ecx, edx
shl esi, 7
shl ecx, 7
add esi, eax
mov edx, ecx
xor eax, eax
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov dword [esp + 0x20], esi
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x10]
mov ecx, eax
dec eax
test ecx, ecx
je 0x4f0495
lea edi, [eax + 1]
mov dword [esp + 0x10], esi
cmp esi, ebx
mov byte [esp + 0x9fc8], 5
je 0x4f0480
mov ecx, esi
call fcn.0042da00
add esi, 0x1f80
dec edi
mov byte [esp + 0x9fc8], 3
mov dword [esp + 0x20], esi
jne 0x4f0469
mov edx, dword [esp + 0x14]
lea eax, [edx + 1]
mov dword [ebp + 0x3e4], eax
jmp 0x4f05fc
mov eax, dword [ebp + 0x3ec]
cmp eax, ebx
jne 0x4f04d4
mov eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x4f04c8
mov eax, 4
jmp 0x4f04d4
cmp eax, 0x400
jle 0x4f04d4
mov eax, 0x400
add eax, edi
cmp esi, eax
jge 0x4f04dc
mov esi, eax
mov eax, esi
mov dword [esp + 0x34], esi
shl eax, 6
sub eax, esi
shl eax, 7
push eax
call sub.MFC42.DLL_operatornew
mov edx, dword [ebp + 0x3e4]
mov esi, dword [ebp + 0x3e0]
mov ecx, edx
mov edi, eax
shl ecx, 6
sub ecx, edx
mov dword [esp + 0x28], eax
shl ecx, 7
mov edx, ecx
add esp, 4
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0x3e4]
mov esi, dword [esp + 0x10]
mov edx, ecx
sub esi, ecx
shl edx, 6
sub edx, ecx
mov ecx, esi
shl ecx, 6
sub ecx, esi
shl edx, 7
shl ecx, 7
add edx, eax
mov ebx, ecx
xor eax, eax
mov edi, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, esi
dec esi
test eax, eax
je 0x4f05ca
inc esi
mov eax, 1
mov dword [esp + 0x20], esi
mov esi, 0x200
xor ebx, ebx
jmp 0x4f0570
mov eax, 1
cmp edx, ebx
je 0x4f05b7
mov dword [edx + 8], eax
mov dword [edx + 0xc], eax
mov ecx, 0x7d0
xor eax, eax
lea edi, [edx + 0x40]
mov dword [edx], ebx
mov dword [edx + 4], ebx
mov dword [edx + 0x10], ebx
mov dword [edx + 0x14], ebx
mov dword [edx + 0x18], ebx
mov dword [edx + 0x1c], ebx
mov dword [edx + 0x20], esi
mov dword [edx + 0x24], ebx
mov dword [edx + 0x28], 0xa
mov dword [edx + 0x2c], ebx
mov dword [edx + 0x30], ebx
mov dword [edx + 0x34], 0x1388
mov dword [edx + 0x38], ebx
mov dword [edx + 0x3c], ebx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x20]
add edx, 0x1f80
dec eax
mov dword [esp + 0x20], eax
jne 0x4f056b
jmp 0x4f05cc
xor ebx, ebx
mov eax, dword [ebp + 0x3e0]
push eax
call sub.MFC42.DLL_operatordelete
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
add esp, 4
mov dword [ebp + 0x3e0], ecx
lea eax, [edx + 1]
mov dword [ebp + 0x3e4], eax
mov eax, dword [esp + 0x34]
mov dword [ebp + 0x3e8], eax
mov eax, dword [esp + 0x14]
mov edx, dword [ebp + 0x3e0]
mov edi, eax
mov ecx, 0x7e0
shl edi, 6
sub edi, eax
mov eax, dword [esp + 0x64]
shl edi, 7
lea esi, [esp + 0x40]
add edi, edx
cmp eax, ebx
mov dword [esp + 0x2c], ebx
rep movsd dword es:[edi], dword [esi]
jle 0x4f07ad
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x28], 1
neg eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], edx
mov eax, dword [esp + 0x28]
mov cl, byte [esp + eax + 0x7f]
test cl, cl
jne 0x4f0769
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x60]
dec ecx
cmp eax, ecx
jne 0x4f067c
mov ebx, dword [esp + 0x1c]
mov edi, 0x5f3788
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x5fc0]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [esp + 0x4c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x28]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x7c]
push ecx
mov ecx, dword [esp + 0x68]
push 0
push edx
mov edx, dword [esp + 0x30]
push 2
push ebx
push eax
mov eax, dword [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x9fec]
push edx
push eax
push ecx
lea edx, [esp + 0x5fe8]
push str._08x_ld_d_d_d_d_d_d_d_08x
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [esp + 0x44]
add esp, 0x30
lea ecx, [esp + 0x5fc0]
push 0
push ebx
push eax
push ecx
mov ecx, dword [ebp + 0x26b4]
push 0x2000c0
call fcn.0049c590
test eax, eax
jne 0x4f0722
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x4f07ad
push 2
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp + 0x26a8]
xor esi, esi
test eax, eax
jle 0x4f0769
xor edi, edi
mov edx, dword [esp + 0x14]
push 0
push ebx
push edx
mov edx, dword [ebp + 0x26a4]
lea eax, [esp + 0x5fcc]
mov ecx, edi
push eax
add ecx, edx
push 0x2000c0
push ecx
mov ecx, dword [ebp + 0x26b4]
call fcn.0049c4e0
mov eax, dword [ebp + 0x26a8]
inc esi
add edi, 0x6c
cmp esi, eax
jl 0x4f0730
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x60]
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
add edi, edx
mov edx, dword [esp + 0x28]
add ebx, ecx
add esi, ecx
mov ecx, dword [esp + 0x64]
inc eax
inc edx
cmp eax, ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x28], edx
jl 0x4f0657
mov dword [esp + 0x9fc8], 0xffffffff
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4f07ee
mov ebp, dword [ebp + 0x2664]
test ebp, ebp
je 0x4f07ee
mov eax, dword [ebp + 0x17c]
test eax, eax
je 0x4f07ee
push 0xffffffffffffffff
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetProcessWorkingSetSize]
mov ecx, dword [esp + 0x9fc0]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x9fbc
ret 8