Function at 0x413500
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x415848
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
xor esi, esi
push esi
mov edi, ecx
push esi
push esi
lea ecx, [esp + 0x3c]
mov dword [esp + 0x20], edi
call fcn.00411070
push esi
push esi
push 1
push esi
mov dword [esp + 0x64], esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [edi + 0x40], eax
cmp dword [edi + 0x3c], esi
mov dword [esp + 0x24], esi
je 0x4138c7
lea esi, [edi + 8]
mov eax, dword [esi + 4]
test eax, eax
jne 0x413567
xor edi, edi
mov dword [esp + 0x20], edi
jmp 0x413585
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x20], eax
mov edi, eax
lea eax, [edi*4 + 8]
push eax
call sub.MFC71.DLL_operator_new
xor ebx, ebx
add esp, 4
xor ebp, ebp
cmp edi, ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ebx
jle 0x413612
mov edi, dword [esi + 4]
test edi, edi
je 0x4138d7
mov ecx, dword [esi + 8]
sub ecx, edi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, ebp
jbe 0x4138d7
mov ecx, dword [ebx + edi + 0x18]
mov edx, dword [ebx + edi + 0x1c]
mov eax, dword [ebx + edi + 4]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationA]
cmp eax, 0xffffffff
mov dword [ebx + edi], eax
jne 0x4135f6
mov dword [ebx + edi], 0
jmp 0x413606
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov dword [edx + ecx*4], eax
inc ecx
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x20]
inc ebp
add ebx, 0x38
cmp ebp, eax
jl 0x4135a5
mov edi, dword [esp + 0x14]
mov edx, dword [edi + 0x40]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov dword [ecx + eax*4], edx
mov edx, dword [esp + 0x34]
inc eax
mov dword [ecx + eax*4], edx
inc eax
mov dword [esp + 0x10], eax
mov eax, dword [edi + 0x3c]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x28], ebx
je 0x413873
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
push 0x927c0
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov ebp, eax
cmp ebp, 0x102
mov dword [esp + 0x2c], ebp
je 0x413868
mov edx, dword [esp + 0x10]
add edx, 0xfffffffe
cmp ebp, edx
je 0x413873
mov eax, dword [esp + 0x10]
dec eax
cmp ebp, eax
jne 0x4136b9
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test ebx, ebx
mov dword [esp + 0x24], eax
je 0x4136ab
lea ecx, [esp + 0x38]
push ecx
mov ecx, dword [ebx + 0x20]
push 0x413370
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], ebx
call fcn.0040e000
lea ecx, [esp + 0x30]
call fcn.004110c0
jmp 0x413857
mov eax, dword [esp + 0x20]
xor edi, edi
test eax, eax
jle 0x413857
mov dword [esp + 0x1c], edi
jmp 0x4136d0
mov ebx, dword [esi + 4]
test ebx, ebx
je 0x4138d7
mov ecx, dword [esi + 8]
sub ecx, ebx
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, edi
jbe 0x4138d7
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + ebx]
mov ecx, dword [esp + 0x18]
cmp eax, dword [ecx + ebp*4]
jne 0x4137ac
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x24]
mov ebp, dword [edx + 0x34]
mov ecx, eax
sub ecx, ebx
cmp ecx, ebp
ja 0x4137c9
mov ebx, dword [esi + 4]
test ebx, ebx
je 0x4138d7
mov ecx, dword [esi + 8]
sub ecx, ebx
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, edi
jbe 0x4138d7
mov edx, dword [esp + 0x1c]
push 0
push 0
add edx, ebx
push ebp
lea ecx, [esp + 0x3c]
mov dword [esp + 0x34], edx
call fcn.004110d0
mov ebx, dword [esi + 4]
test ebx, ebx
je 0x4138d7
mov ecx, dword [esi + 8]
sub ecx, ebx
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, edi
jbe 0x4138d7
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + ebx]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextChangeNotification]
mov ebp, dword [esp + 0x2c]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
inc edi
add ecx, 0x38
cmp edi, eax
mov dword [esp + 0x1c], ecx
jl 0x4136d0
jmp 0x413853
mov ebp, dword [esi + 4]
test ebp, ebp
mov dword [esp + 0x24], eax
je 0x4138d7
mov ecx, dword [esi + 8]
sub ecx, ebp
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, edi
jbe 0x4138d7
mov edx, dword [esp + 0x14]
mov ebx, edi
imul ebx, ebx, 0x38
lea ecx, [esp + 0x40]
lea eax, [ebx + ebp]
push ecx
mov ecx, dword [eax + 0x20]
push 0x413370
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], eax
call fcn.0040e000
mov ebp, dword [esi + 4]
test ebp, ebp
je 0x4138d7
mov ecx, dword [esi + 8]
sub ecx, ebp
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, edi
jbe 0x4138d7
mov edx, dword [ebx + ebp]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextChangeNotification]
mov ebx, dword [esp + 0x28]
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 0x3c]
test eax, eax
jne 0x413642
jmp 0x413873
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, dword [esp + 0x10]
add ebx, 0xfffffffe
xor edi, edi
test ebx, ebx
jle 0x41389e
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + edi*4]
push ecx
call dword [sym.imp.KERNEL32.dll_FindCloseChangeNotification]
mov edx, dword [esp + 0x18]
mov dword [edx + edi*4], 0
inc edi
cmp edi, ebx
jl 0x413880
mov eax, dword [esp + 0x18]
push eax
call sub.MFC71.DLL_operator_delete
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0x3c]
add esp, 4
test eax, eax
je 0x4138c3
mov edx, ecx
mov eax, dword [edx + 0x3c]
test eax, eax
jne 0x413558
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 0xc]
lea ebx, [edi + 8]
xor ebp, ebp
cmp eax, ebp
jne 0x4138de
xor ecx, ecx
jmp 0x4138f6
mov ecx, esi
jmp fcn.004120f0
mov esi, dword [ebx + 8]
sub esi, eax
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, ebp
jle 0x41393e
mov dword [esp + 0x28], ebp
mov edi, edi
mov edi, dword [ebx + 4]
test edi, edi
je 0x413975
mov esi, dword [ebx + 8]
sub esi, edi
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, ebp
jbe 0x413975
mov eax, dword [esp + 0x28]
mov dword [eax + edi], 0
inc ebp
add eax, 0x38
cmp ebp, ecx
mov dword [esp + 0x28], eax
jl 0x413900
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x30]
mov dword [edi + 0x40], 0
mov dword [esp + 0x54], 0xffffffff
call fcn.004110a0
mov ecx, dword [esp + 0x4c]
pop edi
xor eax, eax
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, ebx
jmp fcn.004120f0