Function at 0x40cd70
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x444083
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x690
mov eax, dword [0x456bd4]
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], edx
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 8]
mov edx, dword [ecx + 0x3c]
mov ebx, eax
mov dword [ebp - 0x14], edx
shl ebx, 0xb
add ebx, eax
mov eax, dword [edx + 0x68]
shl ebx, 2
add eax, ebx
lea esi, [ecx + 0x190]
mov ecx, 5
mov edi, eax
xor edx, edx
mov dword [ebp + 8], esi
repe cmpsd dword [esi], dword es:[edi]
mov byte [ebp - 4], 2
jne 0x40cdea
mov byte [ebp - 4], dl
jmp 0x40d985
mov edi, dword [ebp + 8]
mov ecx, 5
mov esi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x14]
call fcn.004075d0
test eax, eax
je 0x40ce93
mov esi, dword [ebp - 0x14]
mov eax, dword [esi + 0x68]
mov ecx, dword [esi + 0x7c]
mov eax, dword [ebx + eax]
mov eax, dword [ecx + eax*4]
mov ecx, eax
mov dword [ebp - 0x64], eax
call fcn.00409fb0
mov edx, dword [esi + 0x68]
mov dword [ebp + 8], eax
lea eax, [ebx + edx + 4]
mov ebx, dword [ebx + edx + 4]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x50], ecx
mov edx, dword [eax + 8]
mov dword [ebp - 0x4c], edx
mov esi, dword [eax + 0xc]
mov edi, dword [esi + 4]
push edi
mov dword [ebp - 0x44], edi
call fcn.00422f94
mov edx, eax
mov ecx, edi
mov dword [ebp - 0x1c], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 8]
push esi
call fcn.0040aae0
mov ecx, dword [ebp - 0x44]
mov edi, dword [ebp - 0x1c]
mov esi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 8]
call fcn.0040ab30
mov esi, eax
jmp 0x40d598
mov eax, dword [0x456bd4]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x40], eax
mov dword [ebp + 8], eax
lea ecx, [ebp - 0x69c]
mov byte [ebp - 4], 7
call fcn.0040a320
mov ecx, dword [0x456bd4]
mov dword [ebp - 0x30], ecx
mov esi, dword [ebp - 0x14]
mov byte [ebp - 4], 9
mov edx, dword [esi + 0x68]
mov ecx, dword [ebx + edx]
lea eax, [ebx + edx]
add eax, 4
mov dword [ebp - 0x3c], ecx
mov edx, dword [eax]
mov dword [ebp - 0x54], edx
mov edx, dword [eax + 4]
mov dword [ebp - 0x50], edx
mov edx, dword [eax + 8]
mov dword [ebp - 0x4c], edx
mov edx, dword [ebp - 0x20]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x48], eax
mov eax, dword [edx + 0x21a8]
cmp ecx, eax
je 0x40d3ee
lea eax, [ebp - 0x178]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x178]
push ecx
lea ecx, [ebp - 0x69c]
call fcn.0040a370
lea ecx, [ebp - 0x69c]
call fcn.0040a570
push eax
lea ecx, [ebp - 0x24]
call fcn.00427958
mov edx, dword [esi + 0x54]
lea ecx, [ebp - 0x69c]
mov eax, dword [edx]
push eax
call fcn.0040a370
push str.Backup_
lea ecx, [ebp - 0x24]
call fcn.00427bab
lea ecx, [ebp - 0x69c]
call fcn.0040a590
push eax
lea ecx, [ebp - 0x24]
call fcn.00427bab
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax - 8]
cmp byte [ecx + eax - 1], 0x2e
jne 0x40cf9f
mov eax, ecx
lea ecx, [ebp - 0x24]
dec eax
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0042029e
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xa
call fcn.00427908
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 9
call fcn.0042781b
push 0x456154
lea ecx, [ebp - 0x24]
call fcn.00427bab
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths_
lea ecx, [ebp - 0x30]
call fcn.00427958
lea ecx, [ebp - 0x69c]
call fcn.0040a550
push eax
lea ecx, [ebp - 0x30]
call fcn.00427bab
mov edx, dword [ebp - 0x30]
lea ecx, [ebp - 0x60]
push ecx
push 0x20019
push 0
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [ebp - 0x34]
mov esi, eax
call fcn.004277a6
test esi, esi
jne 0x40d04d
lea eax, [ebp - 0x68]
lea ecx, [ebp - 0x178]
push eax
mov eax, dword [ebp - 0x60]
lea edx, [ebp - 0x58]
push ecx
push edx
push esi
push esi
push eax
mov dword [ebp - 0x68], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp - 0x60]
mov esi, eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40d04d
lea edx, [ebp - 0x178]
lea ecx, [ebp - 0x69c]
push edx
call fcn.0040a370
lea ecx, [ebp - 0x69c]
call fcn.0040a570
push eax
lea ecx, [ebp - 0x34]
call fcn.00427958
lea eax, [ebp - 0x178]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edi, [ebp - 0x178]
or ecx, 0xffffffff
xor eax, eax
mov bl, 0x5c
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ebp + ecx - 0x179], bl
je 0x40d0aa
mov edi, 0x456154
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x178]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x178]
lea ecx, [ebp - 0x40]
push eax
call fcn.00427958
lea ecx, [ebp - 0x178]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [ebp - 0x178]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ebp + ecx - 0x179], bl
je 0x40d114
mov edi, 0x456154
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x178]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x178]
lea ecx, [ebp - 0x38]
push eax
call fcn.00427958
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x3c]
mov edx, dword [ecx + 0x54]
lea ecx, [edx + eax*4]
push ecx
lea ecx, [ebp + 8]
call fcn.00427908
lea edx, [ebp - 0x18]
push 2
push edx
lea ecx, [ebp + 8]
call fcn.0042029e
mov eax, dword [eax]
push 0x45661c
push eax
call fcn.004118af
add esp, 8
lea ecx, [ebp - 0x18]
test eax, eax
sete bl
call fcn.0042781b
test bl, bl
push 2
je 0x40d240
lea eax, [ebp - 0x14]
lea ecx, [ebp + 8]
push eax
call fcn.00420169
lea ecx, [ebp - 0x24]
push eax
lea edx, [ebp - 0x18]
push ecx
push edx
mov byte [ebp - 4], 0xb
call fcn.004279fe
mov eax, dword [eax]
mov byte [ebp - 4], 0xc
push eax
call fcn.00403b40
add esp, 4
lea ecx, [ebp - 0x18]
mov esi, eax
mov byte [ebp - 4], 0xb
call fcn.0042781b
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 9
call fcn.0042781b
test esi, esi
push 2
je 0x40d1fd
lea eax, [ebp - 0x14]
lea ecx, [ebp + 8]
push eax
call fcn.00420169
lea ecx, [ebp - 0x24]
push eax
lea edx, [ebp - 0x18]
mov bl, 0xd
push ecx
push edx
mov byte [ebp - 4], bl
call fcn.004279fe
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0xe
call fcn.00427908
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.0042781b
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x14]
jmp 0x40d31c
lea eax, [ebp - 0x14]
lea ecx, [ebp + 8]
push eax
call fcn.00420169
lea ecx, [ebp - 0x34]
push eax
lea edx, [ebp - 0x18]
mov bl, 0xf
push ecx
push edx
mov byte [ebp - 4], bl
call fcn.004279fe
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0x10
call fcn.00427908
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.0042781b
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x14]
jmp 0x40d31c
lea eax, [ebp - 0x18]
lea ecx, [ebp + 8]
push eax
call fcn.0042029e
mov eax, dword [eax]
push 0x456618
push eax
call fcn.004118af
add esp, 8
lea ecx, [ebp - 0x18]
test eax, eax
sete bl
call fcn.0042781b
test bl, bl
push 2
je 0x40d2af
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp + 8]
call fcn.00420169
push eax
lea edx, [ebp - 0x40]
lea eax, [ebp - 0x18]
mov bl, 0x11
push edx
push eax
mov byte [ebp - 4], bl
call fcn.004279fe
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0x12
call fcn.00427908
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.0042781b
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x14]
jmp 0x40d31c
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp + 8]
call fcn.0042029e
mov eax, dword [eax]
push 0x456614
push eax
call fcn.004118af
add esp, 8
lea ecx, [ebp - 0x18]
test eax, eax
setne bl
call fcn.0042781b
test bl, bl
je 0x40d321
lea edx, [ebp - 0x14]
push 2
push edx
lea ecx, [ebp + 8]
call fcn.00420169
push eax
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0x18]
mov bl, 0x13
push eax
push ecx
mov byte [ebp - 4], bl
call fcn.004279fe
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0x14
call fcn.00427908
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.0042781b
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x14]
call fcn.0042781b
mov edx, dword [ebp + 8]
push edx
call fcn.00403b40
add esp, 4
test eax, eax
jne 0x40d3a8
mov esi, dword [ebp - 0x20]
mov ecx, esi
call fcn.0040da40
push 5
lea ecx, [esi + 0xf4]
call fcn.00426563
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 8
call fcn.0042781b
lea ecx, [ebp - 0x69c]
mov byte [ebp - 4], 7
call fcn.0040a360
lea ecx, [ebp + 8]
mov byte [ebp - 4], 6
call fcn.0042781b
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 5
call fcn.0042781b
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 4
call fcn.0042781b
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
call fcn.0042781b
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.0042781b
mov byte [ebp - 4], 0
jmp 0x40d985
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x3c]
push 0xffffffffffffffff
push 0
lea ecx, [edi + 0x2194]
mov dword [edi + 0x21a8], eax
call fcn.0040df20
lea esi, [edi + 0x21ac]
mov ecx, esi
call fcn.0040a8b0
mov ecx, dword [ebp + 8]
push ecx
mov ecx, esi
call fcn.0040a920
test eax, eax
je 0x40d3f1
push edi
push 0x40d9e0
mov ecx, esi
call fcn.0040af00
jmp 0x40d3f1
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x3c], ecx
cmp ecx, dword [edi + 0x219c]
jge 0x40d4c6
mov eax, dword [edi + 0x2198]
mov edx, ecx
shl edx, 4
mov ebx, dword [ebp - 0x54]
add eax, edx
mov edx, dword [eax]
mov edx, dword [edx]
cmp edx, ebx
jne 0x40d4bd
mov edx, dword [eax + 4]
mov ebx, dword [ebp - 0x50]
mov edx, dword [edx]
cmp edx, ebx
jne 0x40d4bd
mov edx, dword [eax + 8]
mov ebx, dword [ebp - 0x4c]
mov edx, dword [edx]
cmp edx, ebx
jne 0x40d4bd
mov esi, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0x54], ecx
mov edi, dword [esi + 4]
mov ecx, dword [eax + 8]
push edi
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x44], edi
call fcn.00422f94
mov edx, eax
mov ecx, edi
mov dword [ebp - 0x1c], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp - 0x20]
push esi
lea ebx, [eax + 0x21ac]
mov ecx, ebx
call fcn.0040aae0
mov ecx, dword [ebp - 0x44]
mov edi, dword [ebp - 0x1c]
mov edx, ecx
mov esi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x54]
mov ecx, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
call fcn.0040ab30
mov ecx, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x20]
mov esi, eax
inc ecx
mov dword [ebp - 0x3c], ecx
jmp 0x40d3fc
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x40d541
mov ecx, edi
call fcn.0040da40
push 5
lea ecx, [edi + 0xf4]
call fcn.00426563
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 8
call fcn.0042781b
lea ecx, [ebp - 0x69c]
mov byte [ebp - 4], 7
call fcn.0040a360
lea ecx, [ebp + 8]
mov byte [ebp - 4], 6
call fcn.0042781b
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 5
call fcn.0042781b
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 4
call fcn.0042781b
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
call fcn.0042781b
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.0042781b
mov byte [ebp - 4], 0
jmp 0x40d985
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 8
call fcn.0042781b
lea ecx, [ebp - 0x69c]
mov byte [ebp - 4], 7
call fcn.0040a360
lea ecx, [ebp + 8]
mov byte [ebp - 4], 6
call fcn.0042781b
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 5
call fcn.0042781b
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 4
call fcn.0042781b
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
call fcn.0042781b
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.0042781b
cmp esi, 6
jne 0x40d6dc
lea ecx, [ebp - 0x74]
call fcn.00410900
mov ebx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x15
call fcn.004277a6
mov edi, dword [ebp - 0x50]
xor esi, esi
cmp esi, 0x10
jge 0x40d6a7
xor ecx, ecx
lea edx, [ebx + 2]
mov cx, word [ebx]
push ecx
push edx
lea ecx, [ebp - 0x74]
call fcn.00410a40
lea ecx, [ebp - 0x74]
call fcn.00410980
push eax
call fcn.00412165
add esp, 4
test eax, eax
je 0x40d698
mov eax, dword [edi]
lea ecx, [ebp - 0x28]
add eax, 0xfffffff
shl eax, 4
add eax, esi
push eax
push 0x456960
push ecx
call fcn.0042069c
add esp, 0xc
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x2c]
push edx
call fcn.00427be7
push 0
lea ecx, [ebp - 0x74]
call fcn.00410990
push eax
lea eax, [ebp - 0x28]
push 0x45695c
push eax
call fcn.0042069c
add esp, 0xc
lea ecx, [ebp - 0x28]
push 0x4560f4
push 0x4560f0
call fcn.00420006
push 0x4560ec
push 0x4560e4
lea ecx, [ebp - 0x28]
call fcn.00420006
push 0x4560e8
push 0x4560dc
lea ecx, [ebp - 0x28]
call fcn.00420006
lea ecx, [ebp - 0x28]
push 0x4560e0
lea edx, [ebp - 0x18]
push ecx
push edx
call fcn.00427a64
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x16
call fcn.00427be7
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x15
call fcn.0042781b
xor eax, eax
inc esi
mov ax, word [ebx]
lea ebx, [ebx + eax*2 + 2]
jmp 0x40d5bd
mov ebx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x2c]
push ecx
lea esi, [ebx + 0xb8]
mov ecx, esi
call fcn.00426439
mov ecx, ebx
call fcn.0040da40
push 5
mov ecx, esi
call fcn.00426563
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 2
call fcn.00410940
jmp 0x40d96b
cmp esi, 4
jne 0x40d7de
xor ebx, ebx
mov dword [ebp - 0x5c], vtable.CMenu.0
mov dword [ebp - 0x58], ebx
mov esi, dword [ebp - 0x20]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push ebx
push ebx
mov edx, dword [esi + 0x98]
push 0xb
push edx
mov byte [ebp - 4], 0x17
call edi
mov eax, dword [esi + 0x98]
push 0xffff0000
push ebx
push 0x1101
push eax
call edi
mov ecx, dword [esi + 0x98]
push ebx
push 1
push 0xb
push ecx
call edi
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_LoadMenuIndirectA]
push eax
lea ecx, [ebp - 0x5c]
call fcn.00429588
test eax, eax
je 0x40d7a7
mov eax, dword [esi + 0x98]
push ebx
push ebx
push 0xb
push eax
call edi
lea ecx, [ebp - 0x5c]
push 0xffff0000
push ecx
mov ecx, esi
call fcn.0040db70
mov edx, dword [esi + 0x98]
push 0xffff0000
push 4
push 0x110a
push edx
call edi
test eax, eax
je 0x40d78b
push eax
mov eax, dword [esi + 0x98]
push 2
push 0x1102
push eax
call edi
mov ecx, dword [esi + 0x98]
push 0
push 1
push 0xb
push ecx
call edi
lea ecx, [ebp - 0x5c]
mov ebx, 1
call fcn.004295df
mov ecx, esi
call fcn.0040da40
test ebx, ebx
push 5
lea ecx, [esi + 0x7c]
jne 0x40d7bd
lea ecx, [esi + 0xf4]
call fcn.00426563
mov dword [ebp - 0x5c], vtable.CMenu.0
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0x18
call fcn.004295df
mov byte [ebp - 4], 2
jmp 0x40d96b
cmp esi, 5
jne 0x40d8b4
mov ebx, dword [ebp - 0x20]
mov ecx, ebx
call fcn.0040da40
lea esi, [ebx + 0x134]
test esi, esi
je 0x40d812
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x40d812
push 0
mov ecx, esi
call fcn.00426563
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x58]
mov edi, dword [ebp - 0x1c]
cmp word [edi + 2], 0xffff
jne 0x40d835
cmp word [edi], 1
jne 0x40d843
mov eax, dword [edi + 0xc]
and eax, 0x3fffffff
or eax, 0x40000000
mov dword [edi + 0xc], eax
jmp 0x40d843
mov eax, dword [edi]
and eax, 0x3fffffff
or eax, 0x40000000
mov dword [edi], eax
push ebx
push edi
mov ecx, esi
call fcn.00426e1c
test eax, eax
je 0x40d8a2
mov ecx, dword [ebx + 0x150]
lea eax, [ebp - 0x54]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x54]
neg edx
neg eax
push edx
lea ecx, [ebp - 0x54]
push eax
push ecx
call dword [sym.imp.USER32.dll_OffsetRect]
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x54]
sub edx, eax
push 1
push edx
mov edx, dword [ebp - 0x4c]
sub edx, ecx
push edx
push eax
push ecx
mov ecx, esi
call fcn.004264d3
push 5
mov ecx, esi
call fcn.00426563
jmp 0x40d96e
push 5
lea ecx, [ebx + 0xf4]
call fcn.00426563
jmp 0x40d96e
cmp esi, 0xa
jne 0x40d963
mov ecx, dword [ebp - 0x64]
xor edi, edi
mov dword [ebp - 0x14], edi
call fcn.0040c810
mov esi, eax
mov dword [ebp + 8], edi
cmp esi, edi
je 0x40d929
mov ebx, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], edi
push eax
push edi
push ebx
push ecx
call esi
cmp eax, edi
je 0x40d929
mov edx, dword [ebp - 0x14]
push edx
call fcn.00422f94
mov ecx, dword [ebp - 0x1c]
add esp, 4
mov edi, eax
lea eax, [ebp - 0x14]
push eax
push edi
push ebx
push ecx
call esi
test eax, eax
je 0x40d917
push edi
lea ecx, [ebp - 0x2c]
mov dword [ebp + 8], 1
call fcn.00427958
push edi
call fcn.00422fbd
add esp, 4
mov dword [ebp - 0x14], 0
xor edi, edi
mov esi, dword [ebp - 0x20]
mov ecx, esi
call fcn.0040da40
cmp dword [ebp + 8], edi
je 0x40d954
mov edx, dword [ebp - 0x2c]
add esi, 0xb8
push edx
mov ecx, esi
call fcn.00426439
push 5
mov ecx, esi
call fcn.00426563
jmp 0x40d96b
push 5
lea ecx, [esi + 0xf4]
call fcn.00426563
jmp 0x40d96b
mov ecx, dword [ebp - 0x20]
call fcn.0040da40
mov edi, dword [ebp - 0x1c]
test edi, edi
je 0x40d97e
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00422fbd
add esp, 4
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0042781b
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.0042781b
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4