Function at 0x40d613
Capabilities:
Terminate process

Disassembly:
cmp dword [esp + 4], 4
push esi
mov esi, eax
jne 0x40d639
push 4
push esi
call dword [sym.imp.USER32.dll_KillTimer]
call fcn.0040d180
push 1
push esi
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x40d8cf
cmp dword [esp + 8], 3
jne 0x40d8cf
mov eax, dword [0x42a190]
cmp eax, 0x2711
je 0x40d8cf
cmp eax, 0xffffffff
jne 0x40d670
cmp dword [0x42b460], eax
jne 0x40d670
mov dword [0x42a190], 1
jmp 0x40d8cf
mov eax, dword [0x42b68c]
test eax, eax
push ebx
jne 0x40d67e
xor ebx, ebx
jmp 0x40d689
mov ebx, dword [0x42b690]
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 [0x42a190]
mov ebp, eax
push esi
push str.OnQuietDownloadInstallTimer_hDlg_x__nState_d_n
mov dword [esp + 0x20], ebp
call fcn.0040b9f0
mov ecx, dword [0x42a190]
add esp, 0xc
test ecx, ecx
jge 0x40d6e3
and dword [0x42a190], 0
push 3
mov ebx, esi
call fcn.0040d105
test eax, eax
jg 0x40d6dd
call fcn.0040d180
push 0xffffffffffffffff
call fcn.00411a1d
push 0
push 9
jmp 0x40d718
jne 0x40d74e
mov edi, 0x42b688
push edi
call fcn.00403c8d
test eax, eax
jl 0x40d8cc
cmp eax, 0x64
jge 0x40d729
cmp eax, 0x5f
jle 0x40d705
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 0x40d8cc
push 0
mov ecx, edi
call fcn.004043c2
push 0x85
push 0xffffffffffffffff
push esi
mov dword [0x42a190], 1
call fcn.0040cfc6
jmp 0x40d8cc
test ecx, ecx
jle 0x40d78d
cmp ecx, 3
jge 0x40d790
mov eax, ecx
inc ecx
xor edx, edx
mov dword [0x42a190], ecx
call fcn.00409c6e
mov eax, dword [0x42a190]
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 [0x42a190]
jmp 0x40d82d
cmp ecx, 3
jle 0x40d7cd
cmp ecx, 5
jg 0x40d7cd
xor edx, edx
mov eax, 0x2711
mov ebx, ecx
mov dword [0x42a190], 0x2712
call fcn.00409c6e
mov eax, dword [0x42a190]
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 0x40d827
cmp dword [0x42bcdc], ebx
jge 0x40d82d
mov edx, dword [0x42bcdc]
inc dword [0x42bcdc]
push 3
pop eax
mov ebp, ecx
mov dword [0x42a190], 0x2711
call fcn.00409c6e
mov eax, dword [0x42bcdc]
cmp eax, ebx
jl 0x40d808
mov dword [0x42a190], 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 [0x42a190], ecx
cmp ecx, 5
jle 0x40d8cc
push 3
push esi
call dword [sym.imp.USER32.dll_KillTimer]
call fcn.0040d180
mov eax, dword [0x42b460]
cmp eax, 0xffffffff
jne 0x40d859
push 1
push esi
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x40d8cc
xor ebp, ebp
cmp eax, ebp
je 0x40d866
push 0x8a
jmp 0x40d86b
push 0x89
push 0xffffffffffffffff
push esi
call fcn.0040cfc6
call fcn.0040bce7
push 0x64
pop ecx
xor edx, edx
div ecx
push dword [eax*4 + 0x42a048]
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