Function at 0x40c68c
Capabilities:
Check for time delay via gettickcount
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 0x40387c
push 0xa
mov dword [ebp - 8], 1
call fcn.0040eaa1
mov eax, dword [0x416690]
mov esi, dword [ebp + 0x18]
push esi
mov dword [ebp - 0x10], eax
mov eax, dword [0x41409c]
push 0x403848
xor edi, edi
push edi
mov dword [ebp - 0xc], eax
call fcn.0040eaa1
push dword [0x4142e8]
push 0x403810
push edi
call fcn.0040eaa1
push dword [0x416690]
push 0x4037dc
push edi
call fcn.0040eaa1
push 0x403798
push 0xa
call fcn.0040eaa1
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
add esp, 0x34
jmp 0x40c72e
mov eax, dword [ebp + 0x18]
cmp eax, 1
je 0x40c7c8
cmp eax, 0x80
je 0x40c7b3
cmp eax, 0x102
jne 0x40c772
push 0x403750
push 0xa
call fcn.0040eaa1
pop ecx
pop ecx
push 0x3e8
push edi
lea eax, [ebp - 0x10]
push eax
push 2
call ebx
mov dword [ebp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp + 0x18]
mov dword [ebp - 4], eax
push 0x403708
push 0xa
call fcn.0040eaa1
add esp, 0xc
cmp dword [ebp + 0x18], edi
jne 0x40c702
push 0x4036dc
push 0xa
call fcn.0040eaa1
pop ecx
pop ecx
jmp 0x40c8d2
cmp eax, 0xffffffff
je 0x40c794
push 0x403680
push 0x14
call fcn.0040eaa1
pop ecx
pop ecx
push 0x80001773
call fcn.0040e5bb
jmp 0x40c933
push dword [ebp - 4]
push 0x403640
push 0x14
call fcn.0040eaa1
add esp, 0xc
push dword [ebp - 4]
push 0xc0000fa3
jmp 0x40c92e
push 0x403608
push 0x14
call fcn.0040eaa1
pop ecx
pop ecx
push 0x80001771
jmp 0x40c78a
push 0x4035cc
push 0xa
call fcn.0040eaa1
push 0x403588
push 0xa
call fcn.0040eaa1
add esp, 0x10
jmp 0x40ca1f
cmp dword [eax + 8], edi
je 0x40cbcc
dec dword [0x4142e4]
push 0x403540
push 0xa
call fcn.0040eaa1
push 0x403508
push edi
call fcn.0040eaa1
mov eax, dword [0x4142e8]
push dword [eax + 0xc]
push 0x4034d8
push edi
call fcn.0040eaa1
mov eax, dword [0x4142e8]
mov eax, dword [eax + 0xc]
add esp, 0x1c
push dword [eax + 4]
call sub.snmpapi.dll_SnmpUtilMemFree
mov eax, dword [0x4142e8]
push dword [eax + 0xc]
call sub.snmpapi.dll_SnmpUtilMemFree
mov eax, dword [0x4142e8]
push dword [eax + 0x14]
push 0x4034a0
push edi
call fcn.0040eaa1
mov eax, dword [0x4142e8]
push dword [eax + 0x10]
mov ebx, dword [eax + 0x14]
push 0x403468
push edi
call fcn.0040eaa1
mov eax, dword [0x4142e8]
add esp, 0x18
push dword [eax + 0x10]
call sub.snmpapi.dll_SnmpUtilMemFree
push dword [0x4142e8]
push 0x403428
push edi
call fcn.0040eaa1
add esp, 0xc
push dword [0x4142e8]
call sub.snmpapi.dll_SnmpUtilMemFree
push ebx
push 0x4033ec
push edi
mov dword [0x4142e8], ebx
call fcn.0040eaa1
push 0x4033a8
push 0xa
call fcn.0040eaa1
add esp, 0x14
cmp dword [0x414034], edi
je 0x40c8d2
cmp dword [0x4140c0], edi
je 0x40c8d2
cmp dword [0x4140c4], edi
jne 0x40c946
mov eax, dword [0x4142e8]
cmp eax, edi
jne 0x40c7e8
push 0x403358
push 0xa
call fcn.0040eaa1
push dword [0x416690]
push 0x403328
push 0xa
call fcn.0040eaa1
add esp, 0x14
push dword [0x416690]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test eax, eax
jne 0x40c933
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push 0x4032e0
push 0x14
call fcn.0040eaa1
add esp, 0xc
push esi
push 0x80001772
call fcn.0040e62a
push 0x403588
push 0xa
call fcn.0040eaa1
xor eax, eax
jmp 0x40cea4
push 0x403288
push 0xa
call fcn.0040eaa1
push 0x403258
push 0xa
mov dword [0x4140c4], edi
call fcn.0040eaa1
mov eax, dword [0x4142e8]
add esp, 0x10
cmp eax, edi
je 0x40c9ce
mov ebx, dword [eax + 0x14]
mov eax, dword [eax + 0x10]
push eax
push dword [eax + 4]
call fcn.00410586
mov eax, dword [0x4142e8]
mov eax, dword [eax + 0xc]
push dword [eax + 4]
call sub.snmpapi.dll_SnmpUtilMemFree
mov eax, dword [0x4142e8]
push dword [eax + 0xc]
call sub.snmpapi.dll_SnmpUtilMemFree
mov eax, dword [0x4142e8]
mov eax, dword [eax + 0x10]
push dword [eax]
call sub.snmpapi.dll_SnmpUtilMemFree
mov eax, dword [0x4142e8]
push dword [eax + 0x10]
call sub.snmpapi.dll_SnmpUtilMemFree
push dword [0x4142e8]
call sub.snmpapi.dll_SnmpUtilMemFree
cmp ebx, edi
mov eax, ebx
mov dword [0x4142e8], eax
jne 0x40c970
push dword [0x416690]
push 0x403210
push 0xa
call fcn.0040eaa1
add esp, 0xc
push dword [0x416690]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test eax, eax
jne 0x40ca16
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
push 0x4032e0
push 0x14
call fcn.0040eaa1
add esp, 0xc
push ebx
push 0x80001772
call fcn.0040e62a
call fcn.0040c3b9
test eax, eax
jne 0x40ca26
xor eax, eax
jmp 0x40cea6
mov eax, dword [0x41406c]
mov ebx, dword [ebp + 8]
mov dword [ebx], eax
mov eax, dword [0x414070]
mov dword [ebx + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [eax], 6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x414074]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, dword [ebp + 0x10]
mov dword [eax], 0xbc7
mov eax, dword [0x414060]
mov dword [esi], eax
mov eax, dword [0x414064]
mov dword [esi + 4], eax
cmp dword [0x414044], edi
jne 0x40cbb8
push dword [ebx + 4]
push dword [ebx]
push 0x4031e4
push edi
call fcn.0040eaa1
push 0x41406c
push 0x4031b8
push edi
call fcn.0040eaa1
mov eax, dword [ebp + 0x14]
push dword [eax]
push 0x403190
push edi
call fcn.0040eaa1
push dword [esi + 4]
push dword [esi]
push 0x403160
push edi
call fcn.0040eaa1
push 0x414060
push 0x403130
push edi
call fcn.0040eaa1
mov eax, dword [ebp + 0x10]
add esp, 0x44
push dword [eax]
push 0x403104
push edi
call fcn.0040eaa1
push 0xbc7
push 0x4030cc
push edi
call fcn.0040eaa1
push dword [ebx]
push 0x40308c
push edi
call fcn.0040eaa1
add esp, 0x24
cmp dword [ebx], edi
mov dword [ebp + 0x14], edi
jbe 0x40cb22
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebx + 4]
push dword [ecx + eax*4]
push eax
push 0x40305c
push edi
call fcn.0040eaa1
add esp, 0x10
inc dword [ebp + 0x14]
mov eax, dword [ebp + 0x14]
cmp eax, dword [ebx]
jb 0x40cb00
cmp dword [esi + 4], edi
mov dword [ebp + 0x14], edi
jbe 0x40cbb8
xor ebx, ebx
mov eax, dword [esi]
add eax, ebx
push dword [eax + 0x10]
push dword [eax + 0xc]
push dword [ebp + 0x14]
push 0x403020
push edi
call fcn.0040eaa1
mov eax, dword [esi]
push dword [ebx + eax]
push 0x402fe0
push edi
call fcn.0040eaa1
push 0x402fcc
push edi
call fcn.0040eaa1
mov eax, dword [esi]
add esp, 0x28
cmp dword [ebx + eax], edi
mov dword [ebp + 0x10], edi
jbe 0x40cb98
mov eax, dword [esi]
mov eax, dword [ebx + eax + 4]
mov ecx, dword [ebp + 0x10]
push dword [eax + ecx*4]
push 0x402fc4
push 0xffffffffffffffff
call fcn.0040eaa1
mov eax, dword [esi]
add esp, 0xc
inc dword [ebp + 0x10]
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [ebx + eax]
jb 0x40cb70
push 0x402fc0
push 0xffffffffffffffff
call fcn.0040eaa1
inc dword [ebp + 0x14]
mov eax, dword [ebp + 0x14]
pop ecx
add ebx, 0x18
cmp eax, dword [esi + 4]
pop ecx
jb 0x40cb30
push 0x402f80
push 0xa
call fcn.0040eaa1
xor eax, eax
inc eax
jmp 0x40cea4
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov ebx, dword [ebp + 8]
mov dword [ebx], ecx
mov eax, dword [eax + 4]
mov ecx, dword [ebp + 0x14]
mov dword [ebx + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [eax], 6
mov eax, dword [0x4142e8]
mov eax, dword [eax + 4]
mov dword [ecx], eax
mov eax, dword [0x4142e8]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword [0x4142e8]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
cmp dword [0x414044], edi
jne 0x40cd31
push dword [ebx + 4]
push dword [ebx]
push 0x4031e4
push edi
call fcn.0040eaa1
mov eax, dword [0x4142e8]
push dword [eax + 0xc]
push 0x402f40
push edi
call fcn.0040eaa1
push dword [esi + 4]
push dword [esi]
push 0x403160
push edi
call fcn.0040eaa1
mov eax, dword [0x4142e8]
push dword [eax + 0x10]
push 0x402f00
push edi
call fcn.0040eaa1
push dword [ebx]
push 0x40308c
push edi
call fcn.0040eaa1
add esp, 0x44
cmp dword [ebx], edi
mov dword [ebp + 0x14], edi
jbe 0x40cc9b
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebx + 4]
push dword [ecx + eax*4]
push eax
push 0x40305c
push edi
call fcn.0040eaa1
add esp, 0x10
inc dword [ebp + 0x14]
mov eax, dword [ebp + 0x14]
cmp eax, dword [ebx]
jb 0x40cc79
cmp dword [esi + 4], edi
mov dword [ebp + 0x14], edi
jbe 0x40cd31
xor ebx, ebx
mov eax, dword [esi]
add eax, ebx
push dword [eax + 0x10]
push dword [eax + 0xc]
push dword [ebp + 0x14]
push 0x403020
push edi
call fcn.0040eaa1
mov eax, dword [esi]
push dword [ebx + eax]
push 0x402fe0
push edi
call fcn.0040eaa1
push 0x402fcc
push edi
call fcn.0040eaa1
mov eax, dword [esi]
add esp, 0x28
cmp dword [ebx + eax], edi
mov dword [ebp + 0x10], edi
jbe 0x40cd11
mov eax, dword [esi]
mov eax, dword [ebx + eax + 4]
mov ecx, dword [ebp + 0x10]
push dword [eax + ecx*4]
push 0x402fc4
push 0xffffffffffffffff
call fcn.0040eaa1
mov eax, dword [esi]
add esp, 0xc
inc dword [ebp + 0x10]
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [ebx + eax]
jb 0x40cce9
push 0x402fc0
push 0xffffffffffffffff
call fcn.0040eaa1
inc dword [ebp + 0x14]
mov eax, dword [ebp + 0x14]
pop ecx
add ebx, 0x18
cmp eax, dword [esi + 4]
pop ecx
jb 0x40cca9
mov eax, dword [0x4142e8]
xor ebx, ebx
inc ebx
mov dword [eax + 8], ebx
push dword [0x416690]
push 0x403328
push 0xa
call fcn.0040eaa1
add esp, 0xc
push dword [0x416690]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test eax, eax
jne 0x40cd84
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push 0x4032e0
push 0x14
call fcn.0040eaa1
add esp, 0xc
push esi
push 0x80001772
call fcn.0040e62a
cmp dword [0x414034], edi
je 0x40ce96
cmp dword [0x4140c0], edi
jne 0x40ce96
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x3e8
div ecx
mov esi, eax
mov eax, dword [0x4142dc]
cmp eax, edi
jne 0x40cdc7
mov dword [0x4142d8], ebx
mov dword [0x4142dc], esi
jmp 0x40ce96
mov ecx, esi
sub ecx, eax
cmp ecx, dword [0x414068]
jb 0x40cde3
push 0x402ea8
push 0xa
call fcn.0040eaa1
pop ecx
pop ecx
jmp 0x40cdb6
mov eax, dword [0x4142d8]
inc eax
cmp eax, dword [0x414078]
mov dword [0x4142d8], eax
jb 0x40ce86
push 0x402e48
push 0xa
call fcn.0040eaa1
push 0x402df0
push 0xa
call fcn.0040eaa1
add esp, 0x10
push 0x40000bc7
call fcn.0040e5bb
push 4
lea eax, [ebp - 8]
push eax
push 4
push edi
push 0x402de4
push dword [0x414094]
mov dword [0x4140c0], ebx
mov dword [0x4140c4], ebx
mov dword [0x4142d8], edi
mov dword [0x4142dc], edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
neg esi
sbb esi, esi
neg esi
je 0x40ce76
push esi
push 0x402d80
push 0x14
call fcn.0040eaa1
add esp, 0xc
push esi
push 0x80000402
call fcn.0040e62a
push 0x402d38
push 0xa
call fcn.0040eaa1
pop ecx
pop ecx
jmp 0x40ce96
push ecx
push eax
push 0x402cf0
push edi
call fcn.0040eaa1
add esp, 0x10
push 0x402f80
push 0xa
call fcn.0040eaa1
mov eax, ebx
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0x14