Function at 0x40cd1c
Capabilities:
Terminate process

Disassembly:
cmp dword [esp + 4], 4
push esi
mov esi, eax
jne 0x40cd42
push 4
push esi
call dword [sym.imp.USER32.dll_KillTimer]
call fcn.0040c889
push 1
push esi
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x40cfd8
cmp dword [esp + 8], 3
jne 0x40cfd8
mov eax, dword [0x429180]
cmp eax, 0x2711
je 0x40cfd8
cmp eax, 0xffffffff
jne 0x40cd79
cmp dword [0x42a460], eax
jne 0x40cd79
mov dword [0x429180], 1
jmp 0x40cfd8
mov eax, dword [0x42a67c]
test eax, eax
push ebx
jne 0x40cd87
xor ebx, ebx
jmp 0x40cd92
mov ebx, dword [0x42a680]
sub ebx, eax
sar ebx, 2
push ebp
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3e8
push esi
call edi
push dword [0x429180]
mov ebp, eax
push esi
push str.OnQuietDownloadInstallTimer_hDlg_x__nState_d_n
mov dword [esp + 0x20], ebp
call fcn.0040b1f8
mov ecx, dword [0x429180]
add esp, 0xc
test ecx, ecx
jge 0x40cdec
and dword [0x429180], 0
push 3
mov ebx, esi
call fcn.0040c80e
test eax, eax
jg 0x40cde6
call fcn.0040c889
push 0xffffffffffffffff
call fcn.00410db9
push 0
push 9
jmp 0x40ce21
jne 0x40ce57
mov edi, 0x42a678
push edi
call fcn.00403edf
test eax, eax
jl 0x40cfd5
cmp eax, 0x64
jge 0x40ce32
cmp eax, 0x5f
jle 0x40ce0e
push 0x5f
pop eax
push 0
lea eax, [eax + eax*4]
push 0x64
shl eax, 3
xor edx, edx
pop ecx
div ecx
add eax, 0xa
push eax
push 0x402
push ebp
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40cfd5
push 0
mov ecx, edi
call fcn.00404615
push 0x85
push 0xffffffffffffffff
push esi
mov dword [0x429180], 1
call fcn.0040c6cf
jmp 0x40cfd5
test ecx, ecx
jle 0x40ce96
cmp ecx, 3
jge 0x40ce99
mov eax, ecx
inc ecx
xor edx, edx
mov dword [0x429180], ecx
call fcn.00409a4e
mov eax, dword [0x429180]
push 0
lea eax, [eax + eax*4]
lea eax, [eax + eax + 0x31]
push eax
push 0x402
push ebp
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [0x429180]
jmp 0x40cf36
cmp ecx, 3
jle 0x40ced6
cmp ecx, 5
jg 0x40ced6
xor edx, edx
mov eax, 0x2711
mov ebx, ecx
mov dword [0x429180], 0x2712
call fcn.00409a4e
mov eax, dword [0x429180]
push 0
lea eax, [eax + eax*4 + 0xf]
shl eax, 1
push eax
push 0x402
push ebp
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, ebx
jmp 0x40cf30
cmp dword [0x42accc], ebx
jge 0x40cf36
mov edx, dword [0x42accc]
inc dword [0x42accc]
push 3
pop eax
mov ebp, ecx
mov dword [0x429180], 0x2711
call fcn.00409a4e
mov eax, dword [0x42accc]
cmp eax, ebx
jl 0x40cf11
mov dword [0x429180], 4
lea eax, [eax + eax*4]
shl eax, 1
cdq
idiv ebx
push 0
add eax, 0x46
push eax
push 0x402
push dword [esp + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, ebp
mov dword [0x429180], ecx
cmp ecx, 5
jle 0x40cfd5
push 3
push esi
call dword [sym.imp.USER32.dll_KillTimer]
call fcn.0040c889
mov eax, dword [0x42a460]
cmp eax, 0xffffffff
jne 0x40cf62
push 1
push esi
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x40cfd5
xor ebp, ebp
cmp eax, ebp
je 0x40cf6f
push 0x8a
jmp 0x40cf74
push 0x89
push 0xffffffffffffffff
push esi
call fcn.0040c6cf
call fcn.0040b3f5
push 0x64
pop ecx
xor edx, edx
div ecx
push dword [eax*4 + 0x42903c]
push 2
push esi
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push ebp
push 0x3ed
push esi
call edi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call ebx
push ebp
push 0x3e8
push esi
call edi
push eax
call ebx
push 1
push 0xfffffffffffffff4
push 2
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
push ebp
push 0x3a98
push 4
push esi
call dword [sym.imp.USER32.dll_SetTimer]
pop edi
pop ebp
pop ebx
pop esi
ret 4