Function at 0x401820
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42aca6
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x43800c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00403010
mov byte [ebp - 0x3ed], al
lea ecx, [ebp - 0x304]
xor eax, eax
mov dword [ebp - 0x304], 0
push eax
push 0x4335d8
mov dword [ebp - 0x2f4], 0
mov dword [ebp - 0x2f0], 7
mov word [ebp - 0x304], ax
call fcn.00409f20
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x370]
push 1
xor eax, eax
mov dword [ebp - 0x370], 0
push 0x43320c
mov dword [ebp - 0x360], 0
mov dword [ebp - 0x35c], 7
mov word [ebp - 0x370], ax
call fcn.00409f20
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2ec]
push 1
xor eax, eax
mov dword [ebp - 0x2ec], 0
push 0x433210
mov dword [ebp - 0x2dc], 0
mov dword [ebp - 0x2d8], 7
mov word [ebp - 0x2ec], ax
call fcn.00409f20
lea ecx, [ebp - 0x2a4]
mov byte [ebp - 4], 2
call fcn.0040cce0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x294]
test ecx, ecx
je 0x402c3c
cmp dword [ebp - 0x290], 8
lea eax, [ebp - 0x2a4]
cmovae eax, dword [ebp - 0x2a4]
lea eax, [eax + ecx*2]
lea ecx, [ebp - 0x2a4]
cmovae ecx, dword [ebp - 0x2a4]
cmp eax, ecx
je 0x401a7d
cmp word [eax - 2], 0x5c
je 0x401a7d
push 1
xor eax, eax
mov dword [ebp - 0x25c], 0
push 0x433214
lea ecx, [ebp - 0x25c]
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x248], 7
mov word [ebp - 0x25c], ax
call fcn.00409f20
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x25c]
cmp dword [ebp - 0x248], 8
mov ebx, dword [ebp - 0x25c]
mov esi, dword [ebp - 0x294]
cmovae ecx, ebx
mov eax, dword [ebp - 0x290]
mov edx, dword [ebp - 0x24c]
sub eax, esi
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x21c], esi
cmp edx, eax
ja 0x401a1e
cmp dword [ebp - 0x290], 8
lea edi, [edx + esi]
mov eax, dword [ebp - 0x21c]
lea esi, [ebp - 0x2a4]
cmovae esi, dword [ebp - 0x2a4]
mov dword [ebp - 0x294], edi
lea ecx, [esi + eax*2]
lea eax, [edx + edx]
push eax
push dword [ebp - 0x220]
push ecx
call fcn.00418010
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x401a3f
push edx
push ecx
mov byte [ebp - 0x220], 0
lea ecx, [ebp - 0x2a4]
push dword [ebp - 0x220]
push edx
call fcn.00409190
mov ebx, dword [ebp - 0x25c]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x248]
cmp eax, 8
jb 0x401a7d
lea ecx, [eax*2 + 2]
mov eax, ebx
cmp ecx, 0x1000
jb 0x401a73
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402c84
push ecx
push ebx
call fcn.004165af
add esp, 8
lea ecx, [ebp - 0x25c]
call fcn.0040f320
mov byte [ebp - 4], 5
cmp dword [ebp - 0x24c], 0
jne 0x401aaa
push 0x43320c
lea ecx, [ebp - 0x2ec]
call fcn.00408560
jmp 0x402bae
sub esp, 0x18
lea eax, [ebp - 0x25c]
mov ecx, esp
push eax
call fcn.00408650
call fcn.00403120
mov ecx, esp
mov dword [ebp - 0x220], esp
push 0
push 0x4335d8
mov byte [ebp - 0x3ee], al
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
call fcn.00409f20
sub esp, 0x18
mov byte [ebp - 4], 6
mov ecx, esp
mov dword [ebp - 0x21c], esp
push 6
push 0x433218
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
call fcn.00409f20
sub esp, 0x18
mov byte [ebp - 4], 7
lea eax, [ebp - 0x25c]
mov ecx, esp
push eax
call fcn.00408650
lea ecx, [ebp - 0x3b8]
mov byte [ebp - 4], 5
call fcn.0040f050
add esp, 0x30
mov byte [ebp - 4], 8
lea eax, [ebp - 0x3b8]
mov ecx, esp
push eax
call fcn.00408650
call fcn.004072e0
add esp, 0x18
test al, al
je 0x40234b
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x3ec], esp
push 7
push str.version
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
call fcn.00409f20
sub esp, 0x18
mov byte [ebp - 4], 9
mov ecx, esp
mov dword [ebp - 0x220], esp
push 4
push str.BWCU
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
call fcn.00409f20
sub esp, 0x18
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x25c]
mov ecx, esp
push eax
call fcn.00408650
lea ecx, [ebp - 0x3a0]
mov byte [ebp - 4], 8
call fcn.0040f050
add esp, 0x30
mov byte [ebp - 4], 0xb
mov ecx, esp
mov dword [ebp - 0x3ec], esp
push 8
push str.fileName
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
call fcn.00409f20
sub esp, 0x18
mov byte [ebp - 4], 0xc
mov ecx, esp
mov dword [ebp - 0x220], esp
push 4
push str.BWCU
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
call fcn.00409f20
sub esp, 0x18
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x25c]
mov ecx, esp
push eax
call fcn.00408650
lea ecx, [ebp - 0x388]
mov byte [ebp - 4], 0xb
call fcn.0040f050
add esp, 0x30
mov byte [ebp - 4], 0xe
mov ecx, esp
mov dword [ebp - 0x3ec], esp
push 8
push str.startApp
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
call fcn.00409f20
sub esp, 0x18
mov byte [ebp - 4], 0xf
mov ecx, esp
mov dword [ebp - 0x220], esp
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
push 4
push str.BWCU
call fcn.00409f20
sub esp, 0x18
mov byte [ebp - 4], 0x10
lea eax, [ebp - 0x25c]
mov ecx, esp
push eax
call fcn.00408650
lea ecx, [ebp - 0x358]
mov byte [ebp - 4], 0xe
call fcn.0040f050
add esp, 0x48
xor eax, eax
mov byte [ebp - 4], 0x11
push eax
mov dword [ebp - 0x340], 0
lea ecx, [ebp - 0x340]
push 0x4335d8
mov dword [ebp - 0x330], 0
mov dword [ebp - 0x32c], 7
mov word [ebp - 0x340], ax
call fcn.00409f20
sub esp, 0x18
mov byte [ebp - 4], 0x12
lea eax, [ebp - 0x358]
mov dword [ebp - 0x3ec], esp
mov ecx, esp
push eax
call fcn.00408650
sub esp, 0x18
mov byte [ebp - 4], 0x13
lea eax, [ebp - 0x25c]
mov ecx, esp
push eax
call fcn.00408650
lea ecx, [ebp - 0x328]
mov byte [ebp - 4], 0x12
call fcn.00407e20
lea ecx, [ebp - 0x3e8]
mov byte [ebp - 4], 0x14
call fcn.0040ebf0
add esp, 0x18
mov byte [ebp - 4], 0x15
mov ecx, esp
mov dword [ebp - 0x3ec], esp
push 0xd
push str.isMajorUpdate
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
call fcn.00409f20
sub esp, 0x18
mov byte [ebp - 4], 0x16
mov ecx, esp
mov dword [ebp - 0x220], esp
push 4
push str.BWCU
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
call fcn.00409f20
sub esp, 0x18
mov byte [ebp - 4], 0x17
lea eax, [ebp - 0x25c]
mov ecx, esp
push eax
call fcn.00408650
lea ecx, [ebp - 0x2d4]
mov byte [ebp - 4], 0x15
call fcn.0040f050
add esp, 0x48
lea eax, [ebp - 0x3a0]
mov byte [ebp - 4], 0x18
push eax
lea ecx, [ebp - 0x238]
call fcn.00408650
push 0x208
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 0x19
push 0
push eax
xor bl, bl
call fcn.00417e70
add esp, 0xc
mov dword [ebp - 0x220], 0x104
lea eax, [ebp - 0x21c]
xor esi, esi
mov dword [ebp - 0x21c], esi
push eax
push 1
push esi
push str.SoftwareMicrosoftBingWallpaperApp
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, 0x80004005
test eax, eax
je 0x401e65
mov esi, edi
jmp 0x401e8d
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push str.BWCUVersion
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
cmovne esi, edi
mov eax, dword [ebp - 0x21c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x401ea0
push eax
call edi
test esi, esi
jne 0x401ed0
cmp dword [ebp - 0x224], 8
lea edx, [ebp - 0x238]
lea ecx, [ebp - 0x218]
cmovae edx, dword [ebp - 0x238]
call fcn.0040e7a0
test eax, eax
movzx ebx, bl
mov eax, 1
cmovne ebx, eax
mov byte [ebp - 4], 0x18
mov edx, dword [ebp - 0x224]
cmp edx, 8
jb 0x401f14
mov ecx, dword [ebp - 0x238]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401f0a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402c89
push edx
push ecx
call fcn.004165af
add esp, 8
test bl, bl
jne 0x4020fa
sub esp, 0x18
mov dword [ebp - 0x23c], 0
lea eax, [ebp - 0x25c]
xorps xmm0, xmm0
mov ecx, esp
movq qword [ebp - 0x244], xmm0
push eax
call fcn.00408650
lea ecx, [ebp - 0x244]
call fcn.00406ca0
add esp, 0x18
mov byte [ebp - 4], 0x1a
lea esi, [ebp - 0x2d4]
cmp dword [ebp - 0x2c0], 8
cmovae esi, dword [ebp - 0x2d4]
cmp dword [ebp - 0x2c4], 1
jne 0x40238e
mov ecx, 0x43320c
mov edx, 1
sub esi, ecx
mov ax, word [ecx + esi]
cmp ax, word [ecx]
jne 0x40238e
add ecx, 2
sub edx, 1
jne 0x401f81
lea eax, [ebp - 0x328]
push eax
lea ecx, [ebp - 0x238]
call fcn.00408650
push 0x208
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 0x1b
push 0
push eax
xor bl, bl
call fcn.00417e70
add esp, 0xc
mov dword [ebp - 0x220], 0x104
lea eax, [ebp - 0x21c]
xor esi, esi
mov dword [ebp - 0x21c], esi
push eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push 1
push esi
push str.SoftwareMicrosoftBingWallpaperApp
push 0x80000001
call eax
test eax, eax
je 0x401ffc
mov esi, 0x80004005
jmp 0x40202a
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x218]
push eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0
push 0
push str.BWAppVersion
push dword [ebp - 0x21c]
call eax
test eax, eax
mov eax, 0x80004005
cmovne esi, eax
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x402037
push eax
call edi
test esi, esi
jne 0x402067
cmp dword [ebp - 0x224], 8
lea edx, [ebp - 0x238]
lea ecx, [ebp - 0x218]
cmovae edx, dword [ebp - 0x238]
call fcn.0040e7a0
test eax, eax
movzx ebx, bl
mov eax, 1
cmovne ebx, eax
mov byte [ebp - 4], 0x1a
mov edx, dword [ebp - 0x224]
cmp edx, 8
jb 0x4020ab
mov ecx, dword [ebp - 0x238]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4020a1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402c8e
push edx
push ecx
call fcn.004165af
add esp, 8
test bl, bl
je 0x4020ef
sub esp, 0xc
lea eax, [ebp - 0x244]
mov ecx, esp
push eax
call fcn.00408310
call fcn.00405040
mov dl, byte [ebp - 0x3ee]
mov cl, byte [ebp - 0x3ed]
call fcn.004032b0
sub esp, 0xc
lea eax, [ebp - 0x25c]
mov ecx, esp
push eax
call fcn.00408650
call fcn.00407950
add esp, 0x18
lea ecx, [ebp - 0x244]
call fcn.004087e0
mov edx, dword [ebp - 0x2c0]
cmp edx, 8
jb 0x40213a
mov ecx, dword [ebp - 0x2d4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402130
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402c93
push edx
push ecx
call fcn.004165af
add esp, 8
mov edx, dword [ebp - 0x3d4]
xor eax, eax
mov dword [ebp - 0x2c4], 0
mov dword [ebp - 0x2c0], 7
mov word [ebp - 0x2d4], ax
cmp edx, 8
jb 0x402197
mov ecx, dword [ebp - 0x3e8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40218d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402c93
push edx
push ecx
call fcn.004165af
add esp, 8
mov edx, dword [ebp - 0x314]
cmp edx, 8
jb 0x4021d7
mov ecx, dword [ebp - 0x328]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4021cd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402c93
push edx
push ecx
call fcn.004165af
add esp, 8
mov edx, dword [ebp - 0x32c]
xor eax, eax
mov dword [ebp - 0x318], 0
mov dword [ebp - 0x314], 7
mov word [ebp - 0x328], ax
cmp edx, 8
jb 0x402234
mov ecx, dword [ebp - 0x340]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40222a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402c93
push edx
push ecx
call fcn.004165af
add esp, 8
mov edx, dword [ebp - 0x344]
cmp edx, 8
jb 0x402274
mov ecx, dword [ebp - 0x358]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40226a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402c93
push edx
push ecx
call fcn.004165af
add esp, 8
mov edx, dword [ebp - 0x374]
xor eax, eax
mov dword [ebp - 0x348], 0
mov dword [ebp - 0x344], 7
mov word [ebp - 0x358], ax
cmp edx, 8
jb 0x4022d1
mov ecx, dword [ebp - 0x388]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4022c7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402c93
push edx
push ecx
call fcn.004165af
add esp, 8
mov edx, dword [ebp - 0x38c]
xor eax, eax
mov dword [ebp - 0x378], 0
mov dword [ebp - 0x374], 7
mov word [ebp - 0x388], ax
cmp edx, 8
jb 0x40232e
mov ecx, dword [ebp - 0x3a0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402324
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402c93
push edx
push ecx
call fcn.004165af
add esp, 8
xor eax, eax
mov dword [ebp - 0x390], 0
mov dword [ebp - 0x38c], 7
mov word [ebp - 0x3a0], ax
mov edx, dword [ebp - 0x3a4]
cmp edx, 8
jb 0x402c31
mov ecx, dword [ebp - 0x3b8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402c27
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402c93
jmp 0x402c27
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebp - 0x268]
call fcn.00408310
mov byte [ebp - 4], 0x1c
xor bl, bl
mov esi, dword [ebp - 0x268]
cmp esi, dword [ebp - 0x264]
je 0x4023e3
sub esp, 0xc0
mov ecx, esp
push esi
call fcn.00402ca0
call fcn.00405320
add esp, 0xc0
test al, al
jne 0x4023e1
add esi, 0xc0
cmp esi, dword [ebp - 0x264]
jne 0x4023b4
jmp 0x4023e3
mov bl, 1
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 0x1a
call fcn.004087e0
test bl, bl
je 0x4020ef
push 4
xor eax, eax
mov dword [ebp - 0x28c], 0
push str.true
lea ecx, [ebp - 0x28c]
mov dword [ebp - 0x27c], 0
mov dword [ebp - 0x278], 7
mov word [ebp - 0x28c], ax
call fcn.00409f20
mov byte [ebp - 4], 0x1d
lea ecx, [ebp - 0x28c]
mov edx, dword [ebp - 0x278]
cmp edx, 8
mov esi, dword [ebp - 0x28c]
cmovae ecx, esi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402452
sub ecx, ebx
lea eax, [ebp - 0x28c]
sar ecx, 1
add ecx, ecx
cmp edx, 8
push ecx
push ecx
cmovae eax, esi
push eax
push str.UpdateInProgress
call fcn.0040c060
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00417e70
add esp, 0x1c
mov dword [ebp - 0x220], 0x104
lea eax, [ebp - 0x21c]
xor esi, esi
mov dword [ebp - 0x21c], esi
push eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push 1
push esi
push str.SoftwareMicrosoftDispatcher
push 0x80000001
call eax
test eax, eax
je 0x4024ca
mov esi, 0x80004005
jmp 0x4024f8
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x218]
push eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0
push 0
push str.DataInQueueToSend
push dword [ebp - 0x21c]
call eax
test eax, eax
mov eax, 0x80004005
cmovne esi, eax
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x402505
push eax
call edi
test esi, esi
jne 0x402738
mov ecx, str.true
lea eax, [ebp - 0x218]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40253e
test dx, dx
je 0x40253a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40253e
add eax, 4
add ecx, 4
test dx, dx
jne 0x402518
xor eax, eax
jmp 0x402543
sbb eax, eax
or eax, 1
test eax, eax
jne 0x402738
xorps xmm0, xmm0
mov dword [ebp - 0x2a8], eax
movq qword [ebp - 0x2b0], xmm0
mov dword [ebp - 0x2b0], eax
mov dword [ebp - 0x2ac], eax
mov dword [ebp - 0x2a8], eax
lea edx, [ebp - 0x2b0]
mov byte [ebp - 4], 0x1e
lea ecx, [ebp - 0x238]
call fcn.0040a0d0
xorps xmm0, xmm0
mov dword [ebp - 0x260], 0
movq qword [ebp - 0x268], xmm0
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x264], 0
mov dword [ebp - 0x260], 0
sub esp, 0x18
mov byte [ebp - 4], 0x20
lea eax, [ebp - 0x238]
mov dword [ebp - 0x3ec], esp
mov ecx, esp
push eax
call fcn.00408650
sub esp, 0x18
mov byte [ebp - 4], 0x21
mov ecx, esp
mov dword [ebp - 0x220], esp
push 0
push 0x4335d8
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
call fcn.00409f20
sub esp, 0xc
mov byte [ebp - 4], 0x22
lea eax, [ebp - 0x268]
mov dword [ebp - 0x21c], esp
mov ecx, esp
push eax
call fcn.00408310
sub esp, 0xc
mov byte [ebp - 4], 0x23
lea eax, [ebp - 0x2b0]
mov ecx, esp
push eax
call fcn.004081b0
mov byte [ebp - 4], 0x20
call fcn.00404db0
add esp, 0x48
lea ecx, [ebp - 0x268]
test al, al
jne 0x402719
call fcn.004087e0
mov edx, dword [ebp - 0x224]
cmp edx, 8
jb 0x40268f
mov ecx, dword [ebp - 0x238]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402685
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402c93
push edx
push ecx
call fcn.004165af
add esp, 8
xor eax, eax
mov dword [ebp - 0x228], 0
lea ecx, [ebp - 0x2b0]
mov dword [ebp - 0x224], 7
mov word [ebp - 0x238], ax
call fcn.00408760
mov edx, dword [ebp - 0x278]
cmp edx, 8
jb 0x4026f7
mov ecx, dword [ebp - 0x28c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4026ed
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402c93
push edx
push ecx
call fcn.004165af
add esp, 8
xor eax, eax
mov dword [ebp - 0x27c], 0
mov dword [ebp - 0x278], 7
mov word [ebp - 0x28c], ax
jmp 0x4020ef
call fcn.004087e0
lea ecx, [ebp - 0x238]
call fcn.00409d20
lea ecx, [ebp - 0x2b0]
mov byte [ebp - 4], 0x1d
call fcn.00408760
sub esp, 0x18
mov dword [ebp - 0x308], 0
lea eax, [ebp - 0x2a4]
xorps xmm0, xmm0
mov ecx, esp
movq qword [ebp - 0x310], xmm0
push eax
call fcn.00408650
lea ecx, [ebp - 0x310]
call fcn.00405d40
add esp, 0xc
mov byte [ebp - 4], 0x24
lea eax, [ebp - 0x244]
mov ecx, esp
push eax
call fcn.00408310
call fcn.00405040
add esp, 0xc
test al, al
je 0x402b31
push 0x4335d8
lea ecx, [ebp - 0x2ec]
call fcn.00408560
mov esi, dword [ebp - 0x244]
mov dword [ebp - 0x21c], esi
cmp esi, dword [ebp - 0x240]
je 0x4029fb
lea eax, [esi + 0x18]
push eax
lea ecx, [ebp - 0x3d0]
call fcn.00408650
lea eax, [esi + 0x30]
mov byte [ebp - 4], 0x25
push eax
lea ecx, [ebp - 0x274]
call fcn.00408650
lea edx, [ebp - 0x358]
mov byte [ebp - 4], 0x26
mov ecx, esi
call fcn.00409cd0
test al, al
je 0x402811
lea eax, [ebp - 0x3d0]
push eax
lea ecx, [ebp - 0x340]
call fcn.00408590
lea eax, [ebp - 0x274]
push eax
lea ecx, [ebp - 0x328]
call fcn.00408590
sub esp, 0xc0
mov ecx, esp
push esi
call fcn.00402ca0
call fcn.004056c0
mov ecx, esp
mov bl, al
push esi
call fcn.00402ca0
mov dl, bl
lea ecx, [ebp - 0x238]
call fcn.00405970
add esp, 0xc0
mov edx, 0x4335d8
mov byte [ebp - 4], 0x27
lea ecx, [ebp - 0x238]
call fcn.00408a60
test al, al
jne 0x4029b1
sub esp, 0xc0
mov ecx, esp
push esi
call fcn.00402ca0
call fcn.00405320
add esp, 0xc0
test al, al
je 0x4029b1
sub esp, 8
lea ecx, [ebp - 0x2a4]
call fcn.00409d10
push eax
lea ecx, [ebp - 0x3d0]
call fcn.00409d10
push eax
lea ecx, [ebp - 0x238]
call fcn.00409d10
mov edx, eax
lea ecx, [ebp - 0x2bc]
call fcn.0040d0e0
add esp, 0x10
mov edx, 0x4335d8
mov byte [ebp - 4], 0x28
lea ecx, [ebp - 0x304]
call fcn.00408a10
test al, al
je 0x4028dc
push 0x4332b8
lea ecx, [ebp - 0x304]
call fcn.00408470
sub esp, 0x18
lea eax, [ebp - 0x2bc]
mov ecx, esp
push eax
call fcn.00408650
lea ecx, [ebp - 0x43c]
call fcn.0040e880
mov edi, eax
push 0x4332bc
mov edx, esi
mov byte [ebp - 4], 0x29
lea ecx, [ebp - 0x424]
call fcn.00408b70
push edi
mov edx, eax
mov byte [ebp - 4], 0x2a
lea ecx, [ebp - 0x40c]
call fcn.00408930
add esp, 0x20
push eax
lea ecx, [ebp - 0x304]
mov byte [ebp - 4], 0x2b
call fcn.004084f0
lea ecx, [ebp - 0x40c]
call fcn.00409d20
lea ecx, [ebp - 0x424]
call fcn.00409d20
lea ecx, [ebp - 0x43c]
mov byte [ebp - 4], 0x28
call fcn.00409d20
mov edx, 0x4335d8
lea ecx, [ebp - 0x2bc]
call fcn.00408a60
test al, al
je 0x402995
push 0x4332c0
lea ecx, [ebp - 0x2ec]
call fcn.00408560
push 0x433210
lea ecx, [ebp - 0x370]
call fcn.00408560
mov eax, 0x4332c4
jmp 0x40299a
mov eax, 0x4332cc
push eax
lea ecx, [ebp - 0x304]
call fcn.00408470
lea ecx, [ebp - 0x2bc]
call fcn.00409d20
lea ecx, [ebp - 0x238]
call fcn.00409d20
lea ecx, [ebp - 0x274]
call fcn.00409d20
lea ecx, [ebp - 0x3d0]
mov byte [ebp - 4], 0x24
call fcn.00409d20
push ecx
lea eax, [ebp - 0x3ec]
push eax
lea ecx, [ebp - 0x21c]
call fcn.00408180
mov esi, dword [ebp - 0x21c]
cmp esi, dword [ebp - 0x240]
jne 0x4027b6
sub esp, 0x18
lea eax, [ebp - 0x2a4]
mov ecx, esp
mov dword [ebp - 0x3f4], esp
push eax
call fcn.00408650
sub esp, 0x18
mov byte [ebp - 4], 0x2c
lea eax, [ebp - 0x388]
mov dword [ebp - 0x3ec], esp
mov ecx, esp
push eax
call fcn.00408650
sub esp, 0xc
mov byte [ebp - 4], 0x2d
lea eax, [ebp - 0x244]
mov dword [ebp - 0x220], esp
mov ecx, esp
push eax
call fcn.00408310
sub esp, 0xc
mov byte [ebp - 4], 0x2e
lea eax, [ebp - 0x310]
mov ecx, esp
push eax
call fcn.004081b0
mov byte [ebp - 4], 0x24
call fcn.00404db0
add esp, 0x48
lea ecx, [ebp - 0x370]
mov edx, 0x433210
call fcn.00408a10
test al, al
je 0x402acc
push str.false
lea ecx, [ebp - 0x28c]
call fcn.00408560
lea ecx, [ebp - 0x28c]
call fcn.00409d10
lea edx, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402aa0
sub eax, edx
sar eax, 1
push ecx
add eax, eax
lea ecx, [ebp - 0x28c]
push eax
call fcn.00409d10
push eax
push str.UpdateInProgress
call fcn.0040c060
add esp, 0x10
cmp byte [ebp - 0x3ed], 0
jne 0x402ade
cmp byte [ebp - 0x3ee], 0
je 0x402b31
sub esp, 0x18
lea eax, [ebp - 0x328]
mov ecx, esp
mov dword [ebp - 0x3f4], esp
push eax
call fcn.00408650
sub esp, 0x18
mov byte [ebp - 4], 0x2f
lea eax, [ebp - 0x340]
mov dword [ebp - 0x3ec], esp
mov ecx, esp
push eax
call fcn.00408650
sub esp, 0x18
mov byte [ebp - 4], 0x30
lea eax, [ebp - 0x358]
mov ecx, esp
push eax
call fcn.00408650
mov byte [ebp - 4], 0x24
call fcn.00407540
add esp, 0x48
lea ecx, [ebp - 0x310]
call fcn.00408760
lea ecx, [ebp - 0x28c]
call fcn.00409d20
lea ecx, [ebp - 0x244]
call fcn.004087e0
lea ecx, [ebp - 0x2d4]
call fcn.00409d20
lea ecx, [ebp - 0x3e8]
call fcn.00409d20
lea ecx, [ebp - 0x328]
call fcn.00409d20
lea ecx, [ebp - 0x340]
call fcn.00409d20
lea ecx, [ebp - 0x358]
call fcn.00409d20
lea ecx, [ebp - 0x388]
call fcn.00409d20
lea ecx, [ebp - 0x3a0]
call fcn.00409d20
lea ecx, [ebp - 0x3b8]
mov byte [ebp - 4], 5
call fcn.00409d20
mov edx, 0x4335d8
lea ecx, [ebp - 0x2ec]
call fcn.00408a10
test al, al
je 0x402bd2
push 0x433210
lea ecx, [ebp - 0x370]
call fcn.00408560
sub esp, 0x18
lea eax, [ebp - 0x2ec]
mov ecx, esp
mov dword [ebp - 0x3f4], esp
push eax
call fcn.00408650
sub esp, 0x18
mov byte [ebp - 4], 0x31
lea eax, [ebp - 0x370]
mov dword [ebp - 0x3ec], esp
mov ecx, esp
push eax
call fcn.00408650
sub esp, 0x18
mov byte [ebp - 4], 0x32
lea eax, [ebp - 0x304]
mov ecx, esp
push eax
call fcn.00408650
mov byte [ebp - 4], 5
call fcn.00403360
add esp, 0x48
jmp 0x402c31
push edx
push ecx
call fcn.004165af
add esp, 8
lea ecx, [ebp - 0x25c]
call fcn.00409d20
lea ecx, [ebp - 0x2a4]
call fcn.00409d20
lea ecx, [ebp - 0x2ec]
call fcn.00409d20
lea ecx, [ebp - 0x370]
call fcn.00409d20
lea ecx, [ebp - 0x304]
call fcn.00409d20
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004165a1
mov esp, ebp
pop ebp
ret
call fcn.00419a7c
call fcn.00419a7c
call fcn.00419a7c
call fcn.00419a7c
int3