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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x503965
mov eax, dword fs:[0]
push eax
sub esp, 0x160
mov eax, dword [0x55306c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x15c], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x4be010
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call fcn.004281a0
mov esi, eax
mov dword [ebp - 0x154], esi
test esi, esi
je 0x406097
mov eax, dword [esi]
test eax, eax
je 0x406097
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
cmp byte [esi + 4], 0
jne 0x4060ab
mov byte [esi + 4], 1
mov dword [esi + 8], edi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x4060bf
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 1
mov dword [ebp - 0x154], 0
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
lea ecx, [ebp - 0x16c]
call fcn.00418560
mov dword [ebp - 4], 1
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 1
push eax
lea eax, [ebp - 0x168]
mov dword [ebp - 0x1c], 0
push eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
test eax, eax
sete byte [ebp - 0x164]
mov byte [ebp - 4], 2
cmp byte [ebp - 0x164], 0
jne 0x406135
or edi, 0xffffffff
jmp 0x406651
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_DefWindowProcW]
lea eax, [ebp - 0x158]
mov dword [ebp - 0x158], 8
push eax
mov dword [ebp - 0x154], 0x7ff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
sub esp, 0xc
call fcn.00407110
mov ecx, eax
call fcn.00404ae0
push ecx
call fcn.00432d90
mov ecx, eax
call fcn.00432e60
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14c]
call fcn.00404f30
mov byte [ebp - 4], 4
xor eax, eax
mov esi, dword [ebp - 0x15c]
mov ecx, esi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
lea edx, [ecx + 2]
mov word [ebp - 0x28], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4061c0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00406aa0
mov byte [ebp - 4], 5
push ecx
lea ecx, [ebp - 0x14c]
call fcn.00405640
mov byte [ebp - 0x14d], al
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x406233
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x406223
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406699
push edx
push ecx
call fcn.004c2683
mov al, byte [ebp - 0x14d]
add esp, 8
xor ecx, ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], cx
test al, al
je 0x406402
mov dword [ebp - 0x30], ecx
xor eax, eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], ecx
mov ecx, esi
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406270
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x40]
call fcn.00406aa0
mov byte [ebp - 4], 6
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0xbc]
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.00406aa0
cmp dword [ebp - 0x10c], 0
je 0x4063b0
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
mov edx, 1
mov dword [ebp - 0x154], edx
xor esi, esi
test edx, edx
je 0x406302
nop dword [eax + eax]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x128]
push eax
call edi
test eax, eax
jne 0x406302
mov eax, dword [ebp - 0x144]
lea ecx, [ebp - 0x144]
push esi
mov eax, dword [eax + 4]
call eax
inc esi
test eax, eax
jne 0x4062d0
mov dword [ebp - 0x154], eax
push 0
push 0
push 0
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
mov edx, dword [ebp - 0x154]
cmp eax, 0xffffffff
je 0x4062c7
test eax, eax
je 0x4063b0
lea eax, [ebp - 0x128]
push eax
mov eax, dword [ebp - 0x144]
lea ecx, [ebp - 0x144]
mov eax, dword [eax]
call eax
test eax, eax
jne 0x40635d
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov eax, dword [ebp - 0x124]
cmp eax, 0x118
ja 0x406378
je 0x40639a
cmp eax, 0xf
je 0x40639a
cmp eax, 0xa0
jmp 0x40637d
cmp eax, 0x200
je 0x40639a
mov ecx, 1
xor eax, eax
test ecx, ecx
mov edx, ecx
mov dword [ebp - 0x154], edx
cmove eax, esi
mov esi, eax
jmp 0x4062c7
mov edx, dword [ebp - 0x154]
xor ecx, ecx
xor eax, eax
test ecx, ecx
cmove eax, esi
mov esi, eax
jmp 0x4062c7
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x4063ee
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4063e4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40669e
push edx
push ecx
call fcn.004c2683
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea ecx, [ebp - 0x14c]
call fcn.00405ee0
mov byte [ebp - 4], 3
mov dword [ebp - method.RC::RCFeedbackApp.1.virtual_0], vtable.RC::RCFeedbackApp.1.0
mov dword [ebp - method.RC::RCFeedbackApp.virtual_0], vtable.RC::RCFeedbackApp.0
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x58]
call fcn.00406a30
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x70]
call fcn.00406a30
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x88]
call fcn.00406a30
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0xa0]
call fcn.00406a30
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0xbc]
call fcn.00406a30
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0xd4]
call fcn.00406a30
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xec]
call fcn.00406a30
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x104]
call fcn.00406a30
mov byte [ebp - 4], 8
mov esi, dword [ebp - 0x108]
test esi, esi
je 0x4064b7
mov ecx, esi
call fcn.004bd850
push 0x3c
push esi
call fcn.004c2683
add esp, 8
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x10c]
test ecx, ecx
je 0x4064cc
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x144]
call fcn.004050d0
call fcn.00407110
mov edi, eax
mov eax, dword [0x5578f8]
add eax, 0x10
mov dword [ebp - 0x160], eax
mov byte [ebp - 0x15c], 0
mov byte [ebp - 4], 0x13
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x38]
mov esi, eax
mov byte [ebp - 0x15c], 1
test eax, eax
je 0x406525
cmp dword [eax + 4], 0
jle 0x406525
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov esi, dword [edi + 0x38]
test esi, esi
je 0x406557
mov eax, dword [esi]
test eax, eax
je 0x40653e
push eax
call fcn.004e554b
add esp, 4
mov dword [esi], 0
push 0xc
push esi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.004c2683
add esp, 8
push dword [ebp - 0x160]
mov dword [edi + 0x38], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 0x15c], 0
mov byte [ebp - 4], 3
mov esi, dword [edi + 0x34]
test esi, esi
je 0x4065ba
mov eax, dword [esi]
test eax, eax
je 0x406591
push eax
call fcn.004e554b
add esp, 4
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x4065a8
push eax
call fcn.004e554b
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
mov dword [esi + 8], 0
call fcn.004c2683
add esp, 8
mov esi, dword [edi + 0x2c]
test esi, esi
je 0x4065e9
cmp dword [esi], 0
je 0x4065e9
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x4065d3
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [esi + 0x20]
push 0
mov dword [esi + 0x10], 0
call eax
add esi, 0x24
cmp dword [esi], 0
jne 0x4065c6
mov esi, dword [0x553b88]
mov ecx, dword [0x553b8c]
cmp esi, ecx
jae 0x40661a
nop dword [eax]
mov eax, dword [esi]
test eax, eax
je 0x406613
mov eax, dword [eax + 0x1c]
push 0
call eax
mov ecx, dword [0x553b8c]
add esi, 4
cmp esi, ecx
jb 0x406600
mov ecx, edi
call fcn.00401e00
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edi, edi
mov byte [ebp - 4], 2
call fcn.00432d90
mov esi, dword [eax]
cmp byte [esi], 0
je 0x406651
call fcn.00462e40
push esi
mov ecx, eax
call fcn.00463350
push edi
mov ecx, esi
call fcn.00459b80
mov byte [esi], 0
mov byte [ebp - 4], 1
cmp byte [ebp - 0x164], 0
je 0x40666a
push dword [ebp - 0x168]
call dword [sym.imp.gdiplus.dll_GdiplusShutdown]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x16c]
call fcn.00418690
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c1e08
mov esp, ebp
pop ebp
ret
call fcn.004e546f
call fcn.004e546f
int3