Function at 0x40b640
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 0x403704
push 0xa
mov dword [ebp - 8], 1
call fcn.0040da55
mov eax, dword [0x416690]
mov esi, dword [ebp + 0x18]
push esi
mov dword [ebp - 0x10], eax
mov eax, dword [0x41409c]
push 0x4036d0
xor edi, edi
push edi
mov dword [ebp - 0xc], eax
call fcn.0040da55
push dword [0x4142e8]
push 0x403698
push edi
call fcn.0040da55
push dword [0x416690]
push 0x403664
push edi
call fcn.0040da55
push 0x403620
push 0xa
call fcn.0040da55
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
add esp, 0x34
jmp 0x40b6e2
mov eax, dword [ebp + 0x18]
cmp eax, 1
je 0x40b77c
cmp eax, 0x80
je 0x40b767
cmp eax, 0x102
jne 0x40b726
push 0x4035d8
push 0xa
call fcn.0040da55
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 0x403590
push 0xa
call fcn.0040da55
add esp, 0xc
cmp dword [ebp + 0x18], edi
jne 0x40b6b6
push 0x403564
push 0xa
call fcn.0040da55
pop ecx
pop ecx
jmp 0x40b886
cmp eax, 0xffffffff
je 0x40b748
push 0x403508
push 0x14
call fcn.0040da55
pop ecx
pop ecx
push 0x80001773
call fcn.0040d56f
jmp 0x40b8e7
push dword [ebp - 4]
push 0x4034c8
push 0x14
call fcn.0040da55
add esp, 0xc
push dword [ebp - 4]
push 0xc0000fa3
jmp 0x40b8e2
push 0x403490
push 0x14
call fcn.0040da55
pop ecx
pop ecx
push 0x80001771
jmp 0x40b73e
push 0x403454
push 0xa
call fcn.0040da55
push 0x403410
push 0xa
call fcn.0040da55
add esp, 0x10
jmp 0x40b9d3
cmp dword [eax + 8], edi
je 0x40bb80
dec dword [0x4142e4]
push 0x4033c8
push 0xa
call fcn.0040da55
push 0x403390
push edi
call fcn.0040da55
mov eax, dword [0x4142e8]
push dword [eax + 0xc]
push 0x403360
push edi
call fcn.0040da55
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 0x403328
push edi
call fcn.0040da55
mov eax, dword [0x4142e8]
push dword [eax + 0x10]
mov ebx, dword [eax + 0x14]
push 0x4032f0
push edi
call fcn.0040da55
mov eax, dword [0x4142e8]
add esp, 0x18
push dword [eax + 0x10]
call sub.snmpapi.dll_SnmpUtilMemFree
push dword [0x4142e8]
push 0x4032b0
push edi
call fcn.0040da55
add esp, 0xc
push dword [0x4142e8]
call sub.snmpapi.dll_SnmpUtilMemFree
push ebx
push 0x403274
push edi
mov dword [0x4142e8], ebx
call fcn.0040da55
push 0x403230
push 0xa
call fcn.0040da55
add esp, 0x14
cmp dword [0x414014], edi
je 0x40b886
cmp dword [0x4140c0], edi
je 0x40b886
cmp dword [0x4140c4], edi
jne 0x40b8fa
mov eax, dword [0x4142e8]
cmp eax, edi
jne 0x40b79c
push 0x4031e0
push 0xa
call fcn.0040da55
push dword [0x416690]
push 0x4031b0
push 0xa
call fcn.0040da55
add esp, 0x14
push dword [0x416690]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test eax, eax
jne 0x40b8e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push 0x403168
push 0x14
call fcn.0040da55
add esp, 0xc
push esi
push 0x80001772
call fcn.0040d5de
push 0x403410
push 0xa
call fcn.0040da55
xor eax, eax
jmp 0x40be58
push 0x403110
push 0xa
call fcn.0040da55
push 0x4030e0
push 0xa
mov dword [0x4140c4], edi
call fcn.0040da55
mov eax, dword [0x4142e8]
add esp, 0x10
cmp eax, edi
je 0x40b982
mov ebx, dword [eax + 0x14]
mov eax, dword [eax + 0x10]
push eax
push dword [eax + 4]
call fcn.00410575
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 0x40b924
push dword [0x416690]
push 0x403098
push 0xa
call fcn.0040da55
add esp, 0xc
push dword [0x416690]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test eax, eax
jne 0x40b9ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
push 0x403168
push 0x14
call fcn.0040da55
add esp, 0xc
push ebx
push 0x80001772
call fcn.0040d5de
call fcn.0040b36d
test eax, eax
jne 0x40b9da
xor eax, eax
jmp 0x40be5a
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 [0x414024], edi
jne 0x40bb6c
push dword [ebx + 4]
push dword [ebx]
push 0x40306c
push edi
call fcn.0040da55
push 0x41406c
push 0x403040
push edi
call fcn.0040da55
mov eax, dword [ebp + 0x14]
push dword [eax]
push 0x403018
push edi
call fcn.0040da55
push dword [esi + 4]
push dword [esi]
push 0x402fe8
push edi
call fcn.0040da55
push 0x414060
push 0x402fb8
push edi
call fcn.0040da55
mov eax, dword [ebp + 0x10]
add esp, 0x44
push dword [eax]
push 0x402f8c
push edi
call fcn.0040da55
push 0xbc7
push 0x402f54
push edi
call fcn.0040da55
push dword [ebx]
push 0x402f14
push edi
call fcn.0040da55
add esp, 0x24
cmp dword [ebx], edi
mov dword [ebp + 0x14], edi
jbe 0x40bad6
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebx + 4]
push dword [ecx + eax*4]
push eax
push 0x402ee4
push edi
call fcn.0040da55
add esp, 0x10
inc dword [ebp + 0x14]
mov eax, dword [ebp + 0x14]
cmp eax, dword [ebx]
jb 0x40bab4
cmp dword [esi + 4], edi
mov dword [ebp + 0x14], edi
jbe 0x40bb6c
xor ebx, ebx
mov eax, dword [esi]
add eax, ebx
push dword [eax + 0x10]
push dword [eax + 0xc]
push dword [ebp + 0x14]
push 0x402ea8
push edi
call fcn.0040da55
mov eax, dword [esi]
push dword [ebx + eax]
push 0x402e68
push edi
call fcn.0040da55
push 0x402e54
push edi
call fcn.0040da55
mov eax, dword [esi]
add esp, 0x28
cmp dword [ebx + eax], edi
mov dword [ebp + 0x10], edi
jbe 0x40bb4c
mov eax, dword [esi]
mov eax, dword [ebx + eax + 4]
mov ecx, dword [ebp + 0x10]
push dword [eax + ecx*4]
push 0x402e4c
push 0xffffffffffffffff
call fcn.0040da55
mov eax, dword [esi]
add esp, 0xc
inc dword [ebp + 0x10]
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [ebx + eax]
jb 0x40bb24
push 0x402e48
push 0xffffffffffffffff
call fcn.0040da55
inc dword [ebp + 0x14]
mov eax, dword [ebp + 0x14]
pop ecx
add ebx, 0x18
cmp eax, dword [esi + 4]
pop ecx
jb 0x40bae4
push 0x402e08
push 0xa
call fcn.0040da55
xor eax, eax
inc eax
jmp 0x40be58
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 [0x414024], edi
jne 0x40bce5
push dword [ebx + 4]
push dword [ebx]
push 0x40306c
push edi
call fcn.0040da55
mov eax, dword [0x4142e8]
push dword [eax + 0xc]
push 0x402dc8
push edi
call fcn.0040da55
push dword [esi + 4]
push dword [esi]
push 0x402fe8
push edi
call fcn.0040da55
mov eax, dword [0x4142e8]
push dword [eax + 0x10]
push 0x402d88
push edi
call fcn.0040da55
push dword [ebx]
push 0x402f14
push edi
call fcn.0040da55
add esp, 0x44
cmp dword [ebx], edi
mov dword [ebp + 0x14], edi
jbe 0x40bc4f
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebx + 4]
push dword [ecx + eax*4]
push eax
push 0x402ee4
push edi
call fcn.0040da55
add esp, 0x10
inc dword [ebp + 0x14]
mov eax, dword [ebp + 0x14]
cmp eax, dword [ebx]
jb 0x40bc2d
cmp dword [esi + 4], edi
mov dword [ebp + 0x14], edi
jbe 0x40bce5
xor ebx, ebx
mov eax, dword [esi]
add eax, ebx
push dword [eax + 0x10]
push dword [eax + 0xc]
push dword [ebp + 0x14]
push 0x402ea8
push edi
call fcn.0040da55
mov eax, dword [esi]
push dword [ebx + eax]
push 0x402e68
push edi
call fcn.0040da55
push 0x402e54
push edi
call fcn.0040da55
mov eax, dword [esi]
add esp, 0x28
cmp dword [ebx + eax], edi
mov dword [ebp + 0x10], edi
jbe 0x40bcc5
mov eax, dword [esi]
mov eax, dword [ebx + eax + 4]
mov ecx, dword [ebp + 0x10]
push dword [eax + ecx*4]
push 0x402e4c
push 0xffffffffffffffff
call fcn.0040da55
mov eax, dword [esi]
add esp, 0xc
inc dword [ebp + 0x10]
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [ebx + eax]
jb 0x40bc9d
push 0x402e48
push 0xffffffffffffffff
call fcn.0040da55
inc dword [ebp + 0x14]
mov eax, dword [ebp + 0x14]
pop ecx
add ebx, 0x18
cmp eax, dword [esi + 4]
pop ecx
jb 0x40bc5d
mov eax, dword [0x4142e8]
xor ebx, ebx
inc ebx
mov dword [eax + 8], ebx
push dword [0x416690]
push 0x4031b0
push 0xa
call fcn.0040da55
add esp, 0xc
push dword [0x416690]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test eax, eax
jne 0x40bd38
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push 0x403168
push 0x14
call fcn.0040da55
add esp, 0xc
push esi
push 0x80001772
call fcn.0040d5de
cmp dword [0x414014], edi
je 0x40be4a
cmp dword [0x4140c0], edi
jne 0x40be4a
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 0x40bd7b
mov dword [0x4142d8], ebx
mov dword [0x4142dc], esi
jmp 0x40be4a
mov ecx, esi
sub ecx, eax
cmp ecx, dword [0x414068]
jb 0x40bd97
push 0x402d30
push 0xa
call fcn.0040da55
pop ecx
pop ecx
jmp 0x40bd6a
mov eax, dword [0x4142d8]
inc eax
cmp eax, dword [0x414078]
mov dword [0x4142d8], eax
jb 0x40be3a
push 0x402cd0
push 0xa
call fcn.0040da55
push 0x402c78
push 0xa
call fcn.0040da55
add esp, 0x10
push 0x40000bc7
call fcn.0040d56f
push 4
lea eax, [ebp - 8]
push eax
push 4
push edi
push 0x402c6c
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 0x40be2a
push esi
push 0x402c08
push 0x14
call fcn.0040da55
add esp, 0xc
push esi
push 0x80000402
call fcn.0040d5de
push 0x402bc0
push 0xa
call fcn.0040da55
pop ecx
pop ecx
jmp 0x40be4a
push ecx
push eax
push 0x402b78
push edi
call fcn.0040da55
add esp, 0x10
push 0x402e08
push 0xa
call fcn.0040da55
mov eax, ebx
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0x14