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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x502a45
mov eax, dword fs:[0]
push eax
sub esp, 0x160
mov eax, dword [0x55209c]
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 0x4bdf80
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call fcn.0042e030
mov esi, eax
mov dword [ebp - 0x154], esi
test esi, esi
je 0x4060b7
mov eax, dword [esi]
test eax, eax
je 0x4060b7
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
cmp byte [esi + 4], 0
jne 0x4060cb
mov byte [esi + 4], 1
mov dword [esi + 8], edi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x4060df
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.004188b0
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 0x406155
or edi, 0xffffffff
jmp 0x406671
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.00407130
mov ecx, eax
call fcn.00404b00
push ecx
call fcn.00438c30
mov ecx, eax
call fcn.00438d00
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14c]
call fcn.00404f50
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 0x4061e0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00406ac0
mov byte [ebp - 4], 5
push ecx
lea ecx, [ebp - 0x14c]
call fcn.00405660
mov byte [ebp - 0x14d], al
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x406253
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x406243
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4066b9
push edx
push ecx
call fcn.004c27d8
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 0x406422
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 0x406290
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x40]
call fcn.00406ac0
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.00406ac0
cmp dword [ebp - 0x10c], 0
je 0x4063d0
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
mov edx, 1
mov dword [ebp - 0x154], edx
xor esi, esi
test edx, edx
je 0x406322
nop dword [eax + eax]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x128]
push eax
call edi
test eax, eax
jne 0x406322
mov eax, dword [ebp - 0x144]
lea ecx, [ebp - 0x144]
push esi
mov eax, dword [eax + 4]
call eax
inc esi
test eax, eax
jne 0x4062f0
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 0x4062e7
test eax, eax
je 0x4063d0
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 0x40637d
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 0x406398
je 0x4063ba
cmp eax, 0xf
je 0x4063ba
cmp eax, 0xa0
jmp 0x40639d
cmp eax, 0x200
je 0x4063ba
mov ecx, 1
xor eax, eax
test ecx, ecx
mov edx, ecx
mov dword [ebp - 0x154], edx
cmove eax, esi
mov esi, eax
jmp 0x4062e7
mov edx, dword [ebp - 0x154]
xor ecx, ecx
xor eax, eax
test ecx, ecx
cmove eax, esi
mov esi, eax
jmp 0x4062e7
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x40640e
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x406404
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4066be
push edx
push ecx
call fcn.004c27d8
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.00405f00
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.00406a50
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x70]
call fcn.00406a50
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x88]
call fcn.00406a50
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0xa0]
call fcn.00406a50
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0xbc]
call fcn.00406a50
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0xd4]
call fcn.00406a50
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xec]
call fcn.00406a50
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x104]
call fcn.00406a50
mov byte [ebp - 4], 8
mov esi, dword [ebp - 0x108]
test esi, esi
je 0x4064d7
mov ecx, esi
call fcn.004bd7c0
push 0x3c
push esi
call fcn.004c27d8
add esp, 8
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x10c]
test ecx, ecx
je 0x4064ec
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x144]
call fcn.004050f0
call fcn.00407130
mov edi, eax
mov eax, dword [0x556d00]
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 0x406545
cmp dword [eax + 4], 0
jle 0x406545
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov esi, dword [edi + 0x38]
test esi, esi
je 0x406577
mov eax, dword [esi]
test eax, eax
je 0x40655e
push eax
call fcn.004e574b
add esp, 4
mov dword [esi], 0
push 0xc
push esi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.004c27d8
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 0x4065da
mov eax, dword [esi]
test eax, eax
je 0x4065b1
push eax
call fcn.004e574b
add esp, 4
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x4065c8
push eax
call fcn.004e574b
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
mov dword [esi + 8], 0
call fcn.004c27d8
add esp, 8
mov esi, dword [edi + 0x2c]
test esi, esi
je 0x406609
cmp dword [esi], 0
je 0x406609
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x4065f3
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 0x4065e6
mov esi, dword [0x552b88]
mov ecx, dword [0x552b8c]
cmp esi, ecx
jae 0x40663a
nop dword [eax]
mov eax, dword [esi]
test eax, eax
je 0x406633
mov eax, dword [eax + 0x1c]
push 0
call eax
mov ecx, dword [0x552b8c]
add esi, 4
cmp esi, ecx
jb 0x406620
mov ecx, edi
call fcn.00401e20
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edi, edi
mov byte [ebp - 4], 2
call fcn.00438c30
mov esi, dword [eax]
cmp byte [esi], 0
je 0x406671
call fcn.00462f50
push esi
mov ecx, eax
call fcn.00463460
push edi
mov ecx, esi
call fcn.00459ca0
mov byte [esi], 0
mov byte [ebp - 4], 1
cmp byte [ebp - 0x164], 0
je 0x40668a
push dword [ebp - 0x168]
call dword [sym.imp.gdiplus.dll_GdiplusShutdown]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x16c]
call fcn.004189e0
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.004c1f5d
mov esp, ebp
pop ebp
ret
call fcn.004e566f
call fcn.004e566f
int3