Function at 0x418640
Capabilities:
Check for time delay via gettickcount
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4cfbe2
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2160
call fcn.004b6c70
mov eax, dword [0x510620]
xor eax, esp
mov dword [esp + 0x215c], eax
push esi
push edi
mov eax, dword [0x510620]
xor eax, esp
push eax
lea eax, [esp + 0x2170]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
dec eax
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x108], ecx
mov dword [esp + 0xc], 0
cmp eax, 0xe
ja case.0x4186a8.12
jmp dword [eax*4 + 0x418fdc]
push str.newVersion
lea eax, [esp + 0xc4]
mov ecx, edi
push eax
call fcn.00424480
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x217c], 0
call fcn.00455e00
lea eax, [esp + 0x20]
mov byte [esp + 0x2178], 1
push eax
lea ecx, [esi + 0x44c]
call fcn.00414b40
lea ecx, [esp + 0x20]
call fcn.00416900
lea ecx, [esp + 0xc0]
mov dword [esp + 0x2178], 0xffffffff
call fcn.00402110
push ecx
push str.result
mov ecx, edi
call fcn.00424770
movzx eax, al
push eax
push 1
push 0x470
jmp 0x418fad
push str.appid
lea eax, [esp + 0x114]
mov ecx, edi
push eax
call fcn.00424480
xorps xmm0, xmm0
mov dword [esp + 0x2178], 2
movq qword [esp + 0x108], xmm0
call fcn.0042c5a0
cmp dword [esp + 0x124], 8
lea ecx, [esp + 0x110]
cmovae ecx, dword [esp + 0x110]
mov edx, dword [eax]
push ecx
lea ecx, [esp + 0x10c]
push ecx
mov ecx, eax
call dword [edx + 0x38]
mov eax, dword [esp + 0x108]
test eax, eax
je 0x4187a0
push eax
push 2
push 0x470
push dword [esi - 0x50]
call dword [sym.imp.USER32.dll_PostMessageW]
lea ecx, [esp + 0x108]
call fcn.004153e0
lea ecx, [esp + 0x110]
call fcn.00402110
jmp case.0x4186a8.12
push ecx
push str.count
mov ecx, edi
call fcn.004246b0
push 0
push 3
mov dword [esi + 0x48], eax
push 0x470
jmp 0x418fad
push edi
lea ecx, [esi - 0xa4]
call fcn.00418130
mov dword [esp + 0xc], eax
test eax, eax
je case.0x4186a8.12
cmp dword [eax + 0x6c], 1
jne 0x418839
mov ecx, dword [0x51a108]
mov eax, dword [sym.imp.KERNEL32.dll_GetTickCount]
test cl, 1
jne 0x41881e
or ecx, 1
mov dword [0x51a108], ecx
call eax
mov dword [0x51a10c], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetTickCount]
call eax
mov ecx, eax
sub ecx, dword [0x51a10c]
cmp ecx, 0x1f4
jb case.0x4186a8.12
mov dword [0x51a10c], eax
push ecx
push str.result
mov ecx, edi
call fcn.004246b0
push eax
push dword [esp + 0x10]
push 0x5f9
jmp 0x418fad
mov ecx, dword [0x519de8]
push 1
mov eax, dword [ecx]
mov eax, dword [eax]
call eax
test al, al
je 0x4188a0
push str.before_post_message:_WM_APP_RELOADED_at_clearApps
lea eax, [esp + 0x168]
push 0x1000
push eax
call fcn.0040b1a0
mov ecx, dword [0x519de8]
lea edx, [esp + 0x170]
add esp, 0xc
mov eax, dword [ecx]
push 0x31d
push str.MainWnd.cpp
push edx
push 1
call dword [eax + 4]
push 0
push 0
push 0x5f4
push dword [esi - 0x50]
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [0x519de8]
push 1
mov eax, dword [ecx]
mov eax, dword [eax]
call eax
test al, al
je case.0x4186a8.12
push str.after_post_message:_WM_APP_RELOADED__for_clearApps
lea eax, [esp + 0x168]
push 0x1000
push eax
call fcn.0040b1a0
mov ecx, dword [0x519de8]
lea edx, [esp + 0x170]
add esp, 0xc
mov eax, dword [ecx]
push 0x31f
push str.MainWnd.cpp
push edx
push 1
call dword [eax + 4]
jmp case.0x4186a8.12
push str.appid
lea eax, [esp + 0x114]
mov ecx, edi
push eax
call fcn.00424480
push ecx
push str.result
mov ecx, edi
mov dword [esp + 0x2180], 3
call fcn.00424770
mov byte [esp + 0xc], al
lea ecx, [esi - 0xa4]
push dword [esp + 0xc]
lea eax, [esp + 0x114]
push eax
call fcn.004161e0
push 0
push 0
push 0x5f5
push dword [esi - 0x50]
call dword [sym.imp.USER32.dll_PostMessageW]
lea ecx, [esp + 0x110]
call fcn.00402110
jmp case.0x4186a8.12
push str.appid
lea eax, [esp + 0x114]
mov ecx, edi
push eax
call fcn.00424480
xorps xmm0, xmm0
mov dword [esp + 0x2178], 4
movq qword [esp + 0x108], xmm0
call fcn.0042c5a0
cmp dword [esp + 0x124], 8
lea ecx, [esp + 0x110]
cmovae ecx, dword [esp + 0x110]
mov edx, dword [eax]
push ecx
lea ecx, [esp + 0x10c]
push ecx
mov ecx, eax
call dword [edx + 0x38]
mov eax, dword [esp + 0x108]
test eax, eax
je 0x4189e3
push 0
push eax
push 0x5f7
push dword [esi - 0x50]
call dword [sym.imp.USER32.dll_PostMessageW]
lea ecx, [esp + 0x108]
call fcn.004153e0
lea ecx, [esp + 0x110]
call fcn.00402110
jmp case.0x4186a8.12
mov ecx, dword [0x519de8]
push 1
mov eax, dword [ecx]
mov eax, dword [eax]
call eax
test al, al
je 0x418a4b
push str.before_post_message:_WM_APP_RELOADED
lea eax, [esp + 0x168]
push 0x1000
push eax
call fcn.0040b1a0
mov ecx, dword [0x519de8]
lea edx, [esp + 0x170]
add esp, 0xc
mov eax, dword [ecx]
push 0x333
push str.MainWnd.cpp
push edx
push 1
call dword [eax + 4]
push 0
push 0
push 0x5f4
push dword [esi - 0x50]
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [0x519de8]
push 1
mov eax, dword [ecx]
mov eax, dword [eax]
call eax
test al, al
je case.0x4186a8.12
push str.after_post_message:_WM_APP_RELOADED
lea eax, [esp + 0x168]
push 0x1000
push eax
call fcn.0040b1a0
mov ecx, dword [0x519de8]
lea edx, [esp + 0x170]
add esp, 0xc
mov eax, dword [ecx]
push 0x335
push str.MainWnd.cpp
push edx
push 1
call dword [eax + 4]
jmp case.0x4186a8.12
push str.appid
lea eax, [esp + 0x114]
mov ecx, edi
push eax
call fcn.00424480
xorps xmm0, xmm0
mov dword [esp + 0x2178], 5
movq qword [esp + 0x108], xmm0
call fcn.0042c5a0
cmp dword [esp + 0x124], 8
lea ecx, [esp + 0x110]
cmovae ecx, dword [esp + 0x110]
mov edx, dword [eax]
push ecx
lea ecx, [esp + 0x10c]
push ecx
mov ecx, eax
call dword [edx + 0x38]
mov eax, dword [esp + 0x108]
test eax, eax
je 0x418b24
push 0
push eax
push 0x5f6
push dword [esi - 0x50]
call dword [sym.imp.USER32.dll_PostMessageW]
lea ecx, [esp + 0x108]
call fcn.004153e0
lea ecx, [esp + 0x110]
call fcn.00402110
jmp case.0x4186a8.12
push ecx
push str.result
mov ecx, edi
call fcn.00424770
mov byte [esp + 0x13], al
test al, al
je 0x418d54
push 0x4e7d2c
lea eax, [esp + 0x150]
mov ecx, edi
push eax
call fcn.00424480
lea eax, [esp + 0x14c]
mov dword [esp + 0x2178], 6
push eax
lea ecx, [esp + 0x40]
call fcn.00455e00
lea eax, [esp + 0x3c]
mov byte [esp + 0x2178], 7
push eax
lea ecx, [esi + 0x4c]
call fcn.00414b40
lea ecx, [esp + 0x3c]
mov byte [esp + 0x2178], 6
call fcn.00416900
lea ecx, [esp + 0x130]
call fcn.004616e0
lea ecx, [esi - 0xa4]
mov byte [esp + 0x2178], 8
call fcn.0045bae0
test al, al
jne 0x418be4
push dword [esi - 0x50]
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x418be4
xor ecx, ecx
jmp 0x418be9
mov ecx, 1
test cl, cl
mov byte [esi + 0x84], cl
mov edx, 0x4e7d3c
lea ecx, [esp + 0x110]
mov eax, 0x4e7d34
cmove eax, edx
push eax
call fcn.00405d20
push 0
push 0x4e7d44
lea ecx, [esp + 0x138]
mov byte [esp + 0x2180], 9
call fcn.00456250
lea edx, [esp + 0x110]
test eax, eax
jle 0x418cd9
push 0x4e7d48
lea ecx, [esp + 0xf4]
call fcn.00406890
add esp, 4
lea ecx, [esp + 0x134]
mov byte [esp + 0x2178], 0xa
push ecx
mov edx, eax
lea ecx, [esp + 0xdc]
call fcn.00420ac0
add esp, 4
push 0x4e7d48
mov edx, eax
mov byte [esp + 0x217c], 0xb
lea ecx, [esp + 0x94]
call fcn.004069e0
add esp, 4
push eax
lea ecx, [esp + 0x78]
mov byte [esp + 0x217c], 0xc
call fcn.00455e00
lea eax, [esp + 0x74]
mov byte [esp + 0x2178], 0xd
push eax
lea ecx, [esi + 0x68]
call fcn.00414b40
lea ecx, [esp + 0x74]
call fcn.00416900
lea ecx, [esp + 0x90]
call fcn.00402110
lea ecx, [esp + 0xd8]
call fcn.00402110
lea ecx, [esp + 0xf0]
jmp 0x418d27
lea eax, [esp + 0x134]
push eax
lea ecx, [esp + 0xac]
call fcn.00406b70
add esp, 4
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x217c], 0xe
call fcn.00455e00
lea eax, [esp + 0x58]
mov byte [esp + 0x2178], 0xf
push eax
lea ecx, [esi + 0x68]
call fcn.00414b40
lea ecx, [esp + 0x58]
call fcn.00416900
lea ecx, [esp + 0xa8]
call fcn.00402110
lea ecx, [esp + 0x110]
call fcn.00402110
lea ecx, [esp + 0x130]
call fcn.00416900
lea ecx, [esp + 0x14c]
call fcn.00402110
mov al, byte [esp + 0x13]
push 0
movzx eax, al
push eax
push 0x5f8
jmp 0x418fad
push ecx
push 0x4e7d4c
mov ecx, edi
call fcn.004246b0
push ecx
push str.result
mov ecx, edi
mov dword [esp + 0x14], eax
call fcn.004246b0
mov dword [esp + 0x108], eax
mov ecx, edi
push str.appid
lea eax, [esp + 0x114]
push eax
call fcn.00424480
xorps xmm0, xmm0
mov dword [esp + 0x2178], 0x10
movq qword [esp + 0x128], xmm0
call fcn.0042c5a0
cmp dword [esp + 0x124], 8
lea ecx, [esp + 0x110]
cmovae ecx, dword [esp + 0x110]
mov edx, dword [eax]
push ecx
lea ecx, [esp + 0x12c]
push ecx
mov ecx, eax
call dword [edx + 0x38]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x418e08
cmp dword [esp + 0x108], 0
jne 0x418e08
push eax
push dword [esp + 0x12c]
push 0x5fa
push dword [esi - 0x50]
call dword [sym.imp.USER32.dll_PostMessageW]
lea ecx, [esp + 0x128]
call fcn.004153e0
lea ecx, [esp + 0x110]
call fcn.00402110
jmp case.0x4186a8.12
test ecx, ecx
je 0x418ee5
push str.misc
lea eax, [esp + 0x114]
mov ecx, edi
push eax
call fcn.00424480
push 8
mov dword [esp + 0x217c], 0x11
call fcn.004952af
add esp, 4
mov dword [esp + 0xc], eax
mov byte [esp + 0x2178], 0x12
test eax, eax
je 0x418e76
xorps xmm0, xmm0
mov ecx, eax
movq qword [eax], xmm0
call fcn.00419130
jmp 0x418e78
xor eax, eax
push ecx
push str.startAfterInstall
mov ecx, edi
mov dword [esp + 0x14], eax
mov byte [esp + 0x2180], 0x11
call fcn.00424770
mov edi, dword [esp + 0xc]
mov ecx, edi
movzx eax, al
push eax
push str.startAfterInstall
call fcn.00424a50
cmp dword [esp + 0x120], 0
jbe 0x418ed3
cmp dword [esp + 0x124], 8
lea eax, [esp + 0x110]
mov ecx, edi
cmovae eax, dword [esp + 0x110]
push eax
push str.misc
call fcn.00424830
push edi
push dword [esp + 0x10c]
push 0x5fb
jmp 0x418956
push 0x18
call fcn.004952af
add esp, 4
mov dword [esp + 0x108], eax
mov dword [esp + 0x2178], 0x13
test eax, eax
je 0x418f1f
push 0x4e7d60
push eax
mov ecx, edi
call fcn.00424480
push eax
push 0
push 0x5fb
jmp 0x418fad
xor eax, eax
push eax
push eax
push 0x5fb
jmp 0x418fad
push 0x18
call fcn.004952af
add esp, 4
mov dword [esp + 0x108], eax
mov dword [esp + 0x2178], 0x14
test eax, eax
je 0x418f93
xorps xmm0, xmm0
movdqu xmmword [eax], xmm0
push ecx
movq qword [eax + 0x10], xmm0
lea eax, [esi - 0xa4]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], eax
push edi
call fcn.0041fcb0
mov byte [esp + 0x2178], 0x15
lea eax, [esp + 0x14]
mov dword [esp + 0xc], 1
mov ecx, dword [esp + 0x108]
push eax
call fcn.00420af0
mov edi, eax
jmp 0x418f95
xor edi, edi
test byte [esp + 0xc], 1
je 0x418fa5
lea ecx, [esp + 0x14]
call fcn.00419150
push edi
push 0
push 0x5fc
push dword [esi - 0x50]
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [esp + 0x2170]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x215c]
xor ecx, esp
call fcn.00494c10
mov esp, ebp
pop ebp
ret 0xc