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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x475251
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x5b8
mov eax, dword [0x49c128]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x4b8], esi
lea edx, [ebp - 0x20]
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x4d0]
mov dword [ebp - 0x1c], 0x49cb90
call fcn.00404cc0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x38], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x28], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x4bc]
cmp edx, 8
jb 0x405e0c
mov ecx, dword [ebp - 0x4d0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405e02
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4063c9
push edx
push ecx
call fcn.004553f5
add esp, 8
xor eax, eax
mov dword [ebp - 0x4c0], 0
mov dword [ebp - 0x4bc], 7
mov word [ebp - 0x4d0], ax
cmp dword [ebp - 0x20], eax
je 0x405e39
mov byte [ebp - 0x4b1], al
jmp 0x40636f
mov dword [ebp - 0x4f4], eax
lea ecx, [ebp - 0x4f4]
mov dword [ebp - 0x4e4], eax
xor eax, eax
push 7
push 0x489434
mov dword [ebp - 0x4e0], 7
mov word [ebp - 0x4f4], ax
call fcn.00418a50
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x4d0]
call fcn.004083f0
lea eax, [ebp - 0x4f4]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x4d0]
call fcn.00403b30
push eax
lea ecx, [ebp - 0x518]
call fcn.004083f0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x4bc]
cmp edx, 8
jb 0x405ee3
mov ecx, dword [ebp - 0x4d0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405ed9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4063ce
push edx
push ecx
call fcn.004553f5
add esp, 8
xor eax, eax
mov dword [ebp - 0x4c0], 0
mov dword [ebp - 0x4bc], 7
mov word [ebp - 0x4d0], ax
lea eax, [ebp - 0x518]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x4dc]
call fcn.004052a0
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x504]
cmp edx, 8
jb 0x405f5a
mov ecx, dword [ebp - 0x518]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405f50
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4063d3
push edx
push ecx
call fcn.004553f5
add esp, 8
xor eax, eax
mov dword [ebp - 0x508], 0
mov dword [ebp - 0x504], 7
mov word [ebp - 0x518], ax
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x4e0]
cmp edx, 8
jb 0x405fbb
mov ecx, dword [ebp - 0x4f4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405fb1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4063d3
push edx
push ecx
call fcn.004553f5
add esp, 8
xor eax, eax
mov dword [ebp - 0x4e4], 0
push 0x4896bc
lea ecx, [ebp - 0x4b0]
mov dword [ebp - 0x4e0], 7
mov word [ebp - 0x4f4], ax
call fcn.004046d0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x5c8]
cmp byte [esi + 0x18], 0
mov edx, 0x10
push 0x4896bc
je 0x406052
call fcn.00404b20
add esp, 4
mov edi, eax
mov byte [ebp - 4], 8
mov al, byte [edi + 0x48]
test al, al
je 0x406041
mov edx, 0x4896cc
mov ecx, edi
call fcn.00416e30
mov al, byte [edi + 0x48]
test al, al
je 0x406041
cmp dword [esi + 0x14], 8
mov edx, esi
jb 0x406034
mov edx, dword [esi]
push dword [esi + 0x10]
mov ecx, edi
call fcn.004184a0
add esp, 4
lea ecx, [ebp - 0x568]
call fcn.004048b0
mov byte [ebp - 4], 9
jmp 0x40607f
call fcn.00404b20
add esp, 4
mov byte [ebp - 4], 0xa
cmp byte [eax + 0x48], 0
je 0x406070
mov edx, str.cmdline:_update_ready
mov ecx, eax
call fcn.00416e30
lea ecx, [ebp - 0x568]
call fcn.004048b0
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x568]
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
push eax
call fcn.00452e26
add esp, 4
mov byte [ebp - 4], 7
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
lea ecx, [ebp - 0x520]
mov edi, eax
call fcn.0041da40
push dword [ebp - 0x4b8]
lea eax, [ebp - 0x98]
mov byte [ebp - 4], 0xc
push eax
lea ecx, [ebp - 0x520]
call fcn.0042bc90
lea ecx, [ebp - 0x520]
mov byte [ebp - 4], 0xe
call fcn.004064d0
call esi
sub eax, edi
lea ecx, [ebp - 0x5c8]
push 0x4896bc
mov edx, 0x10
mov dword [ebp - 0x4b8], eax
call fcn.00404b20
add esp, 4
mov esi, eax
mov byte [ebp - 4], 0xf
mov al, byte [esi + 0x48]
test al, al
je 0x40611a
mov edx, str.update_from
mov ecx, esi
call fcn.00416e30
mov al, byte [esi + 0x48]
cmp dword [ebp - 0x84], 0x10
lea edx, [ebp - 0x98]
cmovae edx, dword [ebp - 0x98]
test al, al
je 0x40614f
mov ecx, esi
call fcn.00416af0
mov al, byte [esi + 0x48]
test al, al
je 0x40614f
mov edx, str._to
mov ecx, esi
call fcn.00416e30
mov al, byte [esi + 0x48]
cmp dword [ebp - 0x6c], 0x10
lea edx, [ebp - 0x80]
cmovae edx, dword [ebp - 0x80]
test al, al
je 0x406165
mov ecx, esi
call fcn.00416af0
lea ecx, [ebp - 0x568]
call fcn.004048b0
lea eax, [ebp - 0x568]
mov byte [ebp - 4], 0x10
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.00452e26
add esp, 4
mov byte [ebp - 4], 0xe
cmp byte [ebp - 0x44], 0
lea ecx, [ebp - 0x5c8]
push 0x4896bc
je 0x40623d
mov edx, 4
call fcn.00404b20
add esp, 4
mov esi, eax
mov byte [ebp - 4], 0x11
mov al, byte [esi + 0x48]
test al, al
je 0x40622c
mov edx, str.update_fail_err
mov ecx, esi
call fcn.00416e30
mov al, byte [esi + 0x48]
test al, al
je 0x40622c
push dword [ebp - 0x68]
mov ecx, esi
call fcn.00415010
mov al, byte [esi + 0x48]
test al, al
je 0x40622c
mov edx, 0x489754
mov ecx, esi
call fcn.00416e30
mov al, byte [esi + 0x48]
test al, al
je 0x40622c
push dword [ebp - 0x64]
mov ecx, esi
call fcn.00415010
mov al, byte [esi + 0x48]
test al, al
je 0x40622c
mov edx, 0x489750
mov ecx, esi
call fcn.00416e30
cmp byte [esi + 0x48], 0
je 0x40622c
cmp dword [ebp - 0x48], 0x10
lea edx, [ebp - 0x5c]
mov ecx, esi
cmovae edx, dword [ebp - 0x5c]
call fcn.00416af0
lea ecx, [ebp - 0x568]
call fcn.004048b0
mov byte [ebp - 4], 0x12
jmp 0x40626f
mov edx, 0x10
call fcn.00404b20
add esp, 4
mov byte [ebp - 4], 0x13
cmp byte [eax + 0x48], 0
je 0x406260
mov edx, str.update_success
mov ecx, eax
call fcn.00416e30
lea ecx, [ebp - 0x568]
call fcn.004048b0
mov byte [ebp - 4], 0x14
lea eax, [ebp - 0x568]
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
push eax
call fcn.00452e26
mov byte [ebp - 4], 0xe
add esp, 4
cmp byte [ebp - 0x40], 0
jne 0x406343
mov eax, dword [ebp - 0x4b8]
mov edx, 0x1a9fbe77
mul edx
mov edi, 0x624dd2f
mov ecx, 0x1a9fbe77
mov dword [ebp - 0x20], eax
mov esi, edx
mov eax, dword [ebp - 0x4b8]
mul edi
mov edi, eax
mov dword [ebp - 0x4d4], edx
xor eax, eax
mul ecx
mov ecx, eax
mov dword [ebp - 0x4fc], edx
xor eax, eax
mov edx, 0x624dd2f
mul edx
add ecx, esi
mov esi, 0
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0x4fc]
adc edx, 0
mov dword [ebp - 0x4d8], eax
add edi, ecx
mov ecx, dword [ebp - 0x4d4]
mov dword [ebp - 0x500], edi
adc ecx, 0
xor eax, eax
add edx, ecx
mov ecx, dword [ebp - 0x4d8]
adc eax, eax
add ecx, edx
mov edx, dword [ebp - 0x1c]
adc edx, eax
mov eax, dword [ebp - 0x4b8]
sub eax, ecx
sbb esi, edx
shrd eax, esi, 1
shr esi, 1
add eax, ecx
lea ecx, [ebp - 0x98]
adc esi, edx
lea edx, [ebp - 0x20]
shrd eax, esi, 9
shr esi, 9
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], esi
call fcn.00406530
cmp byte [ebp - 0x44], 0
lea ecx, [ebp - 0x98]
sete byte [ebp - 0x4b1]
call fcn.004063f0
lea ecx, [ebp - 0x4b0]
call fcn.004047e0
lea ecx, [ebp - 0x4dc]
call fcn.00405380
mov edx, dword [ebp - 0x24]
cmp edx, 8
jb 0x4063a5
mov ecx, dword [ebp - 0x38]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40639b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4063d8
push edx
push ecx
call fcn.004553f5
add esp, 8
mov al, byte [ebp - 0x4b1]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004553e7
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00459a2f
call fcn.00459a2f
call fcn.00459a2f
call fcn.00459a2f
int3