Function at 0x405c44
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd34
mov dword [ebp - 4], 0x157bf
mov dword [ebp - 8], 0x18c03
mov eax, 0x407ac8
mov dword [ebp - 0xc], eax
mov eax, 0x407acc
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_CloseWindow
test eax, eax
jne 0x405cad
mov dword [0x87e065], edi
mov byte [0x87e082], 0x3c
test esi, esi
je 0x405ca3
xchg dword [0x87e09e], edx
mov dword [0x87e06f], ecx
jmp 0x405ca4
dec ebx
mov word [0x87e0ab], 0x7d0f
mov dword [0x87e09d], eax
mov dword [esp - 0x1c], edx
mov ecx, esi
mov byte [0x87e0a1], 0x7d
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RevertToSelf
test eax, eax
jne 0x405d14
and edi, 0x2c
mov dword [0x87e084], eax
cmp byte [0x87e045], 0
jge 0x405cf2
mov dword [0x87e0be], esi
mov dword [0x87e08c], ecx
mov dword [0x87e0a9], edi
mov dword [0x87e066], edx
mov dword [0x87e069], 0x12816
mov dword [0x87e040], eax
mov dword [0x87e0a2], ecx
mov dword [esp - 0x20], eax
mov dword [0x87e0ad], ecx
test bl, bl
je 0x405d36
mov dword [0x87e09b], edx
add ecx, dword [0x87e0dd]
jmp 0x405d5c
mov dword [0x87e0d7], edi
mov dword [0x87e05f], ebx
lea ecx, [0x87e108]
add dword [ecx + 0xc], 0x7e
mov dword [0x87e0e8], eax
mov dword [0x87e0b1], 0x1352e
mov dword [esp - 0x12], edi
xor eax, eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.advapi32.dll_RevertToSelf
test eax, eax
jne 0x405d8f
mov edx, 0xf2
mov dword [0x87e0dc], edi
mov dword [esp - 0x1c], ecx
dec dword [0x87e02f]
mov dword [0x87e019], edi
cmp ebx, dword [esp + 4]
jle 0x405da9
mov dword [esp - 0x12], eax
mov dword [0x87e0e4], esi
mov ebx, edi
jmp 0x405dc5
mov dword [0x87e0af], 0x11162
mov dword [0x87e0b4], edi
inc byte [0x87e010]
mov dword [0x87e0ac], ebx
cmp esi, 0xffffffff
jge 0x405dde
mov byte [0x87e0b7], 0xae
inc ebx
mov dword [0x87e063], 0x156ca
jmp 0x405de7
mov word [0x87e016], 0x900e
mov word [0x87e0a3], 0xdbcc
mov dword [ebp - 0x2c], 0x18110
mov eax, dword [ebp - 0x2c]
push eax
call sub.advapi32.dll_RevertToSelf_1
test ecx, ecx
je 0x405e0a
mov dword [0x87e0f3], ebx
mov edi, 0x105
mov dword [0x87e10a], eax
mov edi, 0x15d
mov word [0x87e08c], 0xd3bc
mov dword [0x87e04f], edx
mov dword [0x87e013], ebx
lea eax, [0x87e025]
add dword [eax + 0x24], 0xf7
test ebx, ebx
je 0x405e49
mov byte [0x87e02e], 0x83
jmp 0x405e54
mov word [0x87e025], 0x11fd
mov eax, ecx
mov byte [0x87e03c], 0x64
xchg dword [0x87e04c], edi
mov dword [ebp - 0x30], 0x1b768
mov dword [ebp - 0x34], 0x1455f
mov eax, 0x407ae4
mov dword [ebp - 0x38], eax
mov eax, 0x407af8
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x30]
push eax
call sub.user32.dll_CloseWindow
test eax, eax
je 0x405ea9
mov byte [0x87e04c], 0xb4
mov dword [0x87e079], esi
mov dword [esp - 0x18], ecx
mov dword [0x87e0a7], 0x10549
inc byte [0x87e076]
mov edx, dword [0x87e011]
mov dword [0x87e0e3], esi
mov dword [0x87e041], ecx
cmp esi, 0xffffffff
jle 0x405eec
mov dword [0x87e0ed], edi
mov ecx, 0xb
mov dword [0x87e07c], eax
mov ebx, 0xa8
mov dword [0x87e06c], esi
mov dword [0x87e04c], 0x177ea
mov dword [0x87e09e], esi
cmp word [0x87e030], 0
jle 0x405f0f
mov word [0x87e07b], 0x7dd3
xchg dword [0x87e088], edx
mov dword [0x87e036], ecx
mov dword [0x87e025], edx
mov dword [ebp - 0x40], 0x11a30
mov dword [ebp - 0x44], 0x1a504
mov eax, 0x407b04
mov dword [ebp - 0x48], eax
mov eax, 0x407b14
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
push eax
mov eax, dword [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x40]
push eax
call sub.user32.dll_AnyPopup
test eax, eax
je 0x405f71
and dword [0x87e01c], edi
mov word [0x87e0f0], 0xf405
mov dword [0x87e0fc], ebx
mov dword [esp - 0x24], eax
cmp dword [0x87e058], 0
jl 0x405f8e
mov dword [0x87e0c3], eax
mov dword [0x87e0f4], ecx
xchg dword [0x87e030], edi
mov esi, edx
mov dword [0x87e02f], ebx
mov dword [0x87e0a3], 0x16293
xchg dword [0x87e0b0], eax
mov dword [0x87e066], ecx
call fcn.00403e40
cmp byte [0x87e05e], bh
jge 0x405fdc
mov dword [0x87e02e], edi
mov dword [0x87e036], ecx
mov dword [0x87e02f], edx
mov dword [0x87e08a], ebx
mov dword [0x87e022], ecx
mov byte [0x87e080], 0x2a
mov dword [0x87e02c], 0x14e02
mov dword [0x87e0ff], ebx
mov dword [esp - 0x1c], edx
mov byte [0x87e0cc], 0x1c
mov dword [ebp - 0x50], 0x1f7f2
mov dword [ebp - 0x54], 0x18ba6
mov eax, 0x407b30
mov dword [ebp - 0x58], eax
mov eax, 0x407b48
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
push eax
mov eax, dword [ebp - 0x58]
push eax
mov eax, dword [ebp - 0x54]
push eax
mov eax, dword [ebp - 0x50]
push eax
call sub.user32.dll_AnyPopup
test eax, eax
jne 0x406044
mov dword [esp - 0x10], esi
lea edx, [0x87e0df]
and dword [edx], eax
mov esi, dword [esp + 0x28]
mov dword [0x87e0eb], eax
call fcn.00403c3c
mov dword [0x87e108], ecx
mov dword [0x87e102], edi
mov dword [0x87e0a0], ebx
cmp byte [0x87e05a], 0
jle 0x406079
mov dword [0x87e01e], 0x16c14
mov word [0x87e02a], 0xf58c
jmp 0x406098
mov dword [0x87e02d], edx
mov dword [0x87e0bc], 0x11443
mov dword [0x87e0c9], 0x17b2c
mov esi, 0x2c
xchg dword [0x87e05e], ebx
mov dword [esp - 0x18], eax
add dword [0x87e0f9], edi
mov dword [0x87e0c0], eax
lea eax, [ebp - 0x68]
push eax
call sub.kernel32.dll_QueryPerformanceCounter
mov dword [0x87e108], ecx
mov dword [0x87e102], edi
mov dword [0x87e0a0], ebx
cmp byte [0x87e05a], 0
jle 0x4060e7
mov dword [0x87e01e], 0x16c14
mov word [0x87e02a], 0xf58c
jmp 0x406106
mov dword [0x87e02d], edx
mov dword [0x87e0bc], 0x11443
mov dword [0x87e0c9], 0x17b2c
mov esi, 0x2c
push ecx
mov ecx, 0x87e0dd
call fcn.00403e40
mov dword [ebp - 0x6c], 0x1683f
mov dword [ebp - 0x70], 0x105b2
mov eax, 0x407b58
mov dword [ebp - 0x74], eax
mov eax, 0x407b70
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x78]
push eax
mov eax, dword [ebp - 0x74]
push eax
mov eax, dword [ebp - 0x70]
push eax
mov eax, dword [ebp - 0x6c]
push eax
call sub.user32.dll_AnyPopup
test eax, eax
jne 0x40615d
mov edi, esi
lea esi, [0x87e09f]
mov dword [esi + 4], 0x12
add dword [0x87e0cf], edx
xchg dword [0x87e038], edi
mov dword [0x87e0af], esi
mov dword [0x87e05d], 0x12c87
mov dword [ebp - 0x7c], 0x1f4b1
mov eax, dword [ebp - 0x7c]
push eax
call sub.advapi32.dll_RevertToSelf_1
test eax, eax
je 0x40619c
sub ebx, 0x27
xchg dword [0x87e087], esi
mov edx, dword [0x87e0d0]
mov dword [0x87e05d], eax
mov byte [ebp - 0x2c9], 0
mov dword [0x87e04e], ebx
mov edx, 0x86
mov word [0x87e0a5], 0xc692
cmp dword [0x87e023], 0
jge 0x4061d4
mov dword [0x87e074], esi
mov dword [0x87e0a9], ebx
mov dword [0x87e031], edi
jmp 0x4061d8
mov dword [esp - 0xc], ecx
lea esi, [0x87e06a]
mov dword [esi + 8], eax
mov dword [ebp - 0x80], 0x1af79
mov eax, dword [ebp - 0x80]
push eax
call sub.advapi32.dll_RevertToSelf_1
test eax, eax
je 0x406215
mov dword [0x87e037], 0x15756
dec dword [0x87e0cd]
mov dword [0x87e0f5], ecx
mov dword [esp - 0x20], esi
mov dword [0x87e0cf], edi
inc byte [ebp - 0x2c9]
cmp byte [ebp - 0x2c9], 1
jne 0x4061a3
mov dword [0x87e108], ecx
mov dword [0x87e102], edi
mov dword [0x87e0a0], ebx
cmp byte [0x87e05a], 0
jle 0x406258
mov dword [0x87e01e], 0x16c14
mov word [0x87e02a], 0xf58c
jmp 0x406277
mov dword [0x87e02d], edx
mov dword [0x87e0bc], 0x11443
mov dword [0x87e0c9], 0x17b2c
mov esi, 0x2c
mov edx, 0x87e06e
push 1
push 0
call fcn.00401544
mov dword [0x87e0f3], ebx
mov byte [0x87e088], 0x74
dec eax
mov dword [0x87e01a], edx
mov dword [0x87e09f], ebx
mov dword [ebp - 0x84], 0x1323e
mov eax, dword [ebp - 0x84]
push eax
call sub.advapi32.dll_RevertToSelf_1
test eax, eax
jne 0x4062ce
mov dword [0x87e017], eax
dec edi
mov byte [0x87e04d], 0xc
mov byte [0x87e044], 0x68
mov dword [ebp - 0x88], 0x18a4d
mov eax, dword [ebp - 0x88]
push eax
call sub.advapi32.dll_RevertToSelf_1
test eax, eax
jne 0x406313
mov dword [0x87e046], edx
mov dword [0x87e042], eax
mov word [0x87e093], 0x9090
mov word [0x87e025], 0xed9
lea edi, [0x87e021]
mov dword [edi + 0x28], 0x54
call fcn.0040305c
cmp dword [0x87e058], 0
jl 0x406335
mov dword [0x87e0c3], eax
mov dword [0x87e0f4], ecx
xchg dword [0x87e030], edi
mov esi, edx
mov dword [0x87e02f], ebx
mov dword [0x87e0a3], 0x16293
xchg dword [0x87e0b0], eax
mov dword [0x87e066], ecx
mov eax, 0x87e0d1
push esi
push ecx
call fcn.00401544
call fcn.00403e40
xor eax, eax
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x94]
push eax
mov eax, dword [ebp - 0x90]
push eax
mov eax, dword [ebp - 0x8c]
push eax
call sub.advapi32.dll_RevertToSelf
test eax, eax
je 0x4063a5
mov dword [0x87e0a1], esi
xchg dword [0x87e0a7], eax
mov dword [0x87e0ff], edi
mov edx, 0x14e
and dword [0x87e0d6], edi
call fcn.004033a0
sub dword [0x87e05e], edi
and ecx, 0x1a
mov dword [0x87e013], ebx
push esi
push 0x87e0c6
push 0
call fcn.00401544
mov dword [ebp - 0x98], 0x10ada
mov eax, dword [ebp - 0x98]
push eax
call sub.advapi32.dll_RevertToSelf_1
test eax, eax
jne 0x40641b
mov dword [esp - 0x10], edi
mov dword [0x87e0fc], ecx
test dl, dl
jne 0x4063fe
mov dword [0x87e0cc], 0x12f70
mov dword [0x87e0cb], ecx
mov byte [0x87e070], 0xb8
mov dword [0x87e034], 0x16681
mov dword [0x87e0fb], edx
mov dword [0x87e0a6], eax
push 1
mov edx, 0x87e09f
call fcn.00403e40
mov byte [ebp - 0x2c9], 0
lea eax, [ebp - 0xa0]
push eax
call sub.kernel32.dll_QueryPerformanceCounter
test eax, eax
jne 0x40645c
mov dword [0x87e064], ebx
mov dword [0x87e018], eax
mov dword [0x87e0e2], ecx
mov dword [0x87e08c], edi
mov dword [0x87e01c], eax
inc byte [ebp - 0x2c9]
cmp byte [ebp - 0x2c9], 2
jne 0x40642e
mov dword [0x87e010], edi
cmp word [ebp + 0xc], bx
jge 0x406482
xchg dword [0x87e028], ecx
mov edi, 0x4f
xchg dword [0x87e0c4], ecx
mov dword [0x87e0c5], eax
mov dword [0x87e0f7], esi
mov esi, edi
xor eax, eax
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0xac]
push eax
mov eax, dword [ebp - 0xa8]
push eax
mov eax, dword [ebp - 0xa4]
push eax
call sub.advapi32.dll_RevertToSelf
test eax, eax
jne 0x4064d5
mov ebx, eax
mov dword [0x87e014], ecx
mov dword [0x87e045], ebx
mov dword [esp - 0x20], edi
mov byte [0x87e0d4], 0x88
mov word [0x87e0fe], 0x29b5
mov byte [0x87e0a5], 0xa2
add ebx, dword [0x87e108]
mov dword [ebp - 0xb0], 0x1ab97
mov dword [ebp - 0xb4], 0x1c1bb
mov eax, 0x407b80
mov dword [ebp - 0xb8], eax
mov eax, 0x407b9c
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0xbc]
push eax
mov eax, dword [ebp - 0xb8]
push eax
mov eax, dword [ebp - 0xb4]
push eax
mov eax, dword [ebp - 0xb0]
push eax
call sub.user32.dll_AnyPopup
test eax, eax
je 0x40654a
xchg dword [esp - 0xc], ecx
mov dword [0x87e03f], edx
mov dword [0x87e0d2], ecx
call fcn.0040857c
mov byte [0x87e0ea], 0xb6
mov dword [0x87e0af], edi
lea esi, [0x87e0f4]
mov dword [esi + 0x20], 0xb0
call fcn.00403e40
mov dword [ebp - 0xc0], 0x1766f
mov dword [ebp - 0xc4], 0x19577
mov eax, 0x407bb4
mov dword [ebp - 0xc8], eax
mov eax, 0x407bd8
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0xcc]
push eax
mov eax, dword [ebp - 0xc8]
push eax
mov eax, dword [ebp - 0xc4]
push eax
mov eax, dword [ebp - 0xc0]
push eax
call sub.user32.dll_AnyPopup
mov dword [0x87e0c6], eax
lea edx, [0x87e016]
mov dword [edx + 0x24], 0x19
mov dword [0x87e0f7], 0x129b4
add dword [0x87e08e], edx
call fcn.0040857c
cmp dword [0x87e058], 0
jl 0x4065fe
mov dword [0x87e0c3], eax
mov dword [0x87e0f4], ecx
xchg dword [0x87e030], edi
mov esi, edx
mov dword [0x87e02f], ebx
mov dword [0x87e0a3], 0x16293
xchg dword [0x87e0b0], eax
mov dword [0x87e066], ecx
mov byte [0x87e0ea], 0xb6
mov dword [0x87e0af], edi
lea esi, [0x87e0f4]
mov dword [esi + 0x20], 0xb0
mov ecx, 0x87e09e
mov ecx, 0x87e100
push ecx
call fcn.00401544
mov dword [0x87e0a7], 0x10549
inc byte [0x87e076]
mov edx, dword [0x87e011]
mov dword [0x87e0e3], esi
mov dword [0x87e041], ecx
call fcn.00401544
mov dword [ebp - 0xd0], 0x121fd
mov dword [ebp - 0xd4], 0x1fa75
mov eax, 0x407be4
mov dword [ebp - 0xd8], eax
mov eax, 0x407bec
mov dword [ebp - 0xdc], eax
mov eax, dword [ebp - 0xdc]
push eax
mov eax, dword [ebp - 0xd8]
push eax
mov eax, dword [ebp - 0xd4]
push eax
mov eax, dword [ebp - 0xd0]
push eax
call sub.user32.dll_CloseWindow
test eax, eax
je 0x4066d9
mov esi, 0x16c
mov edx, eax
mov word [0x87e08d], 0x9059
mov word [0x87e05b], 0x38e5
xchg dword [0x87e0ce], edi
mov dword [ebp - 0xe0], 0x1859e
mov dword [ebp - 0xe4], 0x1a11b
mov eax, 0x407c00
mov dword [ebp - 0xe8], eax
mov eax, 0x407c0c
mov dword [ebp - 0xec], eax
mov eax, dword [ebp - 0xec]
push eax
mov eax, dword [ebp - 0xe8]
push eax
mov eax, dword [ebp - 0xe4]
push eax
mov eax, dword [ebp - 0xe0]
push eax
call sub.user32.dll_CloseWindow
mov word [0x87e034], 0x6ee
test ch, ch
jne 0x406750
lea esi, [0x87e04b]
mov dword [esi], 0x9e
mov dword [0x87e106], edx
mov byte [0x87e0f2], 0x5d
sub dword [0x87e0f8], ecx
mov dword [0x87e06f], esi
mov dword [0x87e0b5], edx
sub dword [0x87e05e], edi
and ecx, 0x1a
mov dword [0x87e013], ebx
mov dword [0x87e01b], ebx
mov dword [0x87e092], 0x15b44
mov word [0x87e05d], 0x626c
mov dword [0x87e015], esi
mov dword [0x87e0c2], 0x141c4
mov dword [ebp - 0xf0], 0x19450
mov eax, dword [ebp - 0xf0]
push eax
call sub.advapi32.dll_RevertToSelf_1
test eax, eax
jne 0x4067c3
mov dword [0x87e0eb], ecx
mov byte [0x87e019], 6
mov dword [0x87e038], ebx
sub edi, esi
call fcn.004033a0
cmp dword [0x87e058], 0
jl 0x4067e5
mov dword [0x87e0c3], eax
mov dword [0x87e0f4], ecx
xchg dword [0x87e030], edi
mov esi, edx
mov dword [0x87e02f], ebx
mov dword [0x87e0a3], 0x16293
xchg dword [0x87e0b0], eax
mov dword [0x87e066], ecx
mov dword [0x87e0c2], esi
add ebx, dword [0x87e03d]
mov byte [0x87e0a2], 0x2f
mov byte [0x87e064], 0xe8
mov dword [0x87e058], eax
mov dword [ebp - 0xf4], 0x125c8
mov dword [ebp - 0xf8], 0x16014
mov eax, 0x407c18
mov dword [ebp - 0xfc], eax
mov eax, 0x407c1c
mov dword [ebp - 0x100], eax
mov eax, dword [ebp - 0x100]
push eax
mov eax, dword [ebp - 0xfc]
push eax
mov eax, dword [ebp - 0xf8]
push eax
mov eax, dword [ebp - 0xf4]
push eax
call sub.user32.dll_CloseWindow
mov dword [0x87e01c], edx
inc esi
mov byte [0x87e0be], 0x6e
sub dword [0x87e07d], edi
sub dword [0x87e094], esi
mov byte [0x87e0d7], 0x17
mov word [0x87e0f8], 0xb7c6
mov dword [0x87e024], 0x1595d
mov dword [esp - 0x18], ecx
sub esi, 0x5a
mov dword [0x87e108], ecx
mov dword [0x87e102], edi
mov dword [0x87e0a0], ebx
cmp byte [0x87e05a], 0
jle 0x4068d7
mov dword [0x87e01e], 0x16c14
mov word [0x87e02a], 0xf58c
jmp 0x4068f6
mov dword [0x87e02d], edx
mov dword [0x87e0bc], 0x11443
mov dword [0x87e0c9], 0x17b2c
mov esi, 0x2c
push edx
mov eax, 0x87e0ca
push eax
call fcn.00403e40
push ebx
call fcn.00401544
mov dword [ebp - 0x104], 0x14620
mov dword [ebp - 0x108], 0x1404e
mov eax, 0x407c2c
mov dword [ebp - 0x10c], eax
mov eax, 0x407c40
mov dword [ebp - 0x110], eax
mov eax, dword [ebp - 0x110]
push eax
mov eax, dword [ebp - 0x10c]
push eax
mov eax, dword [ebp - 0x108]
push eax
mov eax, dword [ebp - 0x104]
push eax
call sub.user32.dll_AnyPopup
test eax, eax
jne 0x40696f
inc ebx
mov ebx, edi
inc dword [0x87e064]
mov word [0x87e0cb], 0x49dd
mov dword [0x87e0b9], eax
sub dword [0x87e05e], edi
and ecx, 0x1a
mov dword [0x87e013], ebx
mov byte [ebp - 0x2c9], 0
mov dword [ebp - 0x114], 0x1ae1f
mov dword [ebp - 0x118], 0x156f2
mov eax, 0x407c5c
mov dword [ebp - 0x11c], eax
mov eax, 0x407c6c
mov dword [ebp - 0x120], eax
mov eax, dword [ebp - 0x120]
push eax
mov eax, dword [ebp - 0x11c]
push eax
mov eax, dword [ebp - 0x118]
push eax
mov eax, dword [ebp - 0x114]
push eax
call sub.user32.dll_AnyPopup
test eax, eax
je 0x4069e6
mov dword [0x87e05d], edi
add ebx, dword [0x87e0c1]
mov dword [0x87e0c7], edi
inc byte [ebp - 0x2c9]
cmp byte [ebp - 0x2c9], 2
jne 0x406985
mov dword [0x87e044], esi
mov dword [0x87e0a1], ecx
mov dword [esp - 0x18], esi
mov dword [0x87e055], edi
lea edx, [0x87e0d8]
and dword [edx], 0x12
xor eax, eax
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x12c]
push eax
mov eax, dword [ebp - 0x128]
push eax
mov eax, dword [ebp - 0x124]
push eax
call sub.advapi32.dll_RevertToSelf
test eax, eax
jne 0x406a52
xchg dword [0x87e033], esi
mov dword [0x87e073], edi
add dword [0x87e06b], esi
mov dword [0x87e0f9], ecx
mov dword [ebp - 0x130], 0x1f53f
mov eax, dword [ebp - 0x130]
push eax
call sub.advapi32.dll_RevertToSelf_1
test eax, eax
jne 0x406a78
mov ebx, edi
xchg dword [esp - 8], edx
mov dword [0x87e011], eax
mov dword [0x87e09d], eax
mov dword [esp - 0x1c], edx
mov ecx, esi
mov byte [0x87e0a1], 0x7d
mov ecx, 0x87e099
call fcn.00403e40
mov dword [0x87e0a7], 0x10549
inc byte [0x87e076]
mov edx, dword [0x87e011]
mov dword [0x87e0e3], esi
mov dword [0x87e041], ecx
push esi
push edx
push eax
call fcn.00403e40
mov dword [0x87e027], edx
mov byte [0x87e0d3], 0x53
mov dword [0x87e0fd], ecx
mov dword [esp - 0x1c], edx
mov dword [0x87e038], esi
mov dword [ebp - 0x134], 0x1a21d
mov dword [ebp - 0x138], 0x1708b
mov eax, 0x407c80
mov dword [ebp - 0x13c], eax
mov eax, 0x407c94
mov dword [ebp - 0x140], eax
mov eax, dword [ebp - 0x140]
push eax
mov eax, dword [ebp - 0x13c]
push eax
mov eax, dword [ebp - 0x138]
push eax
mov eax, dword [ebp - 0x134]
push eax
call sub.user32.dll_CloseWindow
mov ecx, eax
and dword [0x87e0fa], edx
mov dword [0x87e0f6], edi
add ecx, 0x79
xor eax, eax
mov dword [ebp - 0x14c], eax
mov eax, dword [ebp - 0x14c]
push eax
mov eax, dword [ebp - 0x148]
push eax
mov eax, dword [ebp - 0x144]
push eax
call sub.advapi32.dll_RevertToSelf
mov dword [0x87e0d0], 0x11956
sub dword [0x87e0ff], edx
mov dword [0x87e039], ecx
mov byte [0x87e0d1], 0xeb
mov ecx, esi
mov dword [0x87e048], edx
cmp dword [0x87e0a2], 0
je 0x406b93
mov dword [0x87e081], edx
add esi, 0x64
jmp 0x406b9b
mov ecx, edx
and ebx, 0xe7
lea eax, [ebp - 0x158]
push eax
call sub.kernel32.dll_QueryPerformanceCounter
test eax, eax
jne 0x406bc6
mov byte [0x87e017], 0xdd
mov dword [0x87e05c], 0x10d12
mov dword [0x87e0a7], 0x1574b
mov dword [0x87e09d], eax
mov dword [esp - 0x1c], edx
mov ecx, esi
mov byte [0x87e0a1], 0x7d
push edx
mov edx, 0x87e0df
push ecx
call fcn.00403e40
mov byte [ebp - 0x2c9], 0
cmp dl, byte [ebp + 0x20]
jg 0x406bf8
mov byte [0x87e05a], 0x86
sub dword [0x87e09a], ebx
mov dword [0x87e0da], eax
mov dword [0x87e103], edx
mov dword [ebp - 0x15c], 0x14ea4
mov eax, dword [ebp - 0x15c]
push eax
call sub.advapi32.dll_RevertToSelf_1
test eax, eax
jne 0x406c40
mov dword [esp - 8], ebx
mov dword [0x87e063], eax
mov dword [0x87e015], edi
mov dword [0x87e0ca], eax
mov dword [0x87e0e2], ecx
inc byte [ebp - 0x2c9]
cmp byte [ebp - 0x2c9], 2
jne 0x406bec
mov byte [0x87e0d7], 0x17
mov word [0x87e0f8], 0xb7c6
mov dword [0x87e024], 0x1595d
mov dword [esp - 0x18], ecx
sub esi, 0x5a
push esi
call fcn.00403e40
dec byte [0x87e0a4]
mov word [0x87e070], 0xe6dd
mov byte [0x87e066], 0x91
mov dword [0x87e052], esi
mov dword [ebp - 0x160], 0x189d6
mov dword [ebp - 0x164], 0x1d995
mov eax, 0x407ca8
mov dword [ebp - 0x168], eax
mov eax, 0x407cb4
mov dword [ebp - 0x16c], eax
mov eax, dword [ebp - 0x16c]
push eax
mov eax, dword [ebp - 0x168]
push eax
mov eax, dword [ebp - 0x164]
push eax
mov eax, dword [ebp - 0x160]
push eax
call sub.user32.dll_CloseWindow
test eax, eax
je 0x406cf5
mov dword [esp - 0x28], edx
mov dword [0x87e02e], ecx
mov dword [0x87e0aa], 0x13b64
call fcn.00403e40
test cl, cl
je 0x406d09
mov esi, 0x1cc
add dword [0x87e100], edx
mov dword [0x87e077], ecx
mov byte [0x87e06a], 0xa6
mov esi, dword [0x87e097]
test dl, dl
jne 0x406d3c
mov dword [0x87e023], eax
mov dword [esp - 0xc], ebx
mov dword [0x87e011], 0x1636e
mov dword [0x87e066], esi
jmp 0x406d46
mov dword [0x87e057], 0x1311c
mov byte [0x87e098], 0
mov word [0x87e107], 0x557e
mov dword [ebp - 0x170], 0x1411f
mov dword [ebp - 0x174], 0x14af7
mov eax, 0x407cb8
mov dword [ebp - 0x178], eax
mov eax, 0x407cc0
mov dword [ebp - 0x17c], eax
mov eax, dword [ebp - 0x17c]
push eax
mov eax, dword [ebp - 0x178]
push eax
mov eax, dword [ebp - 0x174]
push eax
mov eax, dword [ebp - 0x170]
push eax
call sub.user32.dll_CloseWindow
test eax, eax
je 0x406db6
mov ebx, eax
mov dword [0x87e055], esi
mov word [0x87e0e6], 0x139c
call fcn.0040305c
mov byte [0x87e0b5], 0x9b
add edx, 0x9d
inc byte [0x87e096]
mov dword [ebp - 0x180], 0x10e41
mov dword [ebp - 0x184], 0x19922
mov eax, 0x407cd4
mov dword [ebp - 0x188], eax
mov eax, 0x407ce4
mov dword [ebp - 0x18c], eax
mov eax, dword [ebp - 0x18c]
push eax
mov eax, dword [ebp - 0x188]
push eax
mov eax, dword [ebp - 0x184]
push eax
mov eax, dword [ebp - 0x180]
push eax
call sub.user32.dll_CloseWindow
xchg dword [0x87e038], edi
mov dword [0x87e0af], esi
mov dword [0x87e05d], 0x12c87
push eax
call fcn.00403e40
mov dword [ebp - 0x190], 0x1e4ab
mov dword [ebp - 0x194], 0x1f366
mov eax, 0x407ce8
mov dword [ebp - 0x198], eax
mov eax, 0x407d0c
mov dword [ebp - 0x19c], eax
mov eax, dword [ebp - 0x19c]
push eax
mov eax, dword [ebp - 0x198]
push eax
mov eax, dword [ebp - 0x194]
push eax
mov eax, dword [ebp - 0x190]
push eax
call sub.user32.dll_AnyPopup
test eax, eax
jne 0x406e9d
mov dword [0x87e042], ecx
mov dword [0x87e01c], esi
mov byte [0x87e0fc], 0x8e
mov dword [0x87e105], edi
push 0x87e0b8
mov edx, 0x87e0d0
push edi
call fcn.00401544
mov byte [ebp - 0x2c9], 0
mov dword [ebp - 0x1a0], 0x1fd3c
mov dword [ebp - 0x1a4], 0x15af4
mov eax, 0x407d18
mov dword [ebp - 0x1a8], eax
mov eax, 0x407d28
mov dword [ebp - 0x1ac], eax
mov eax, dword [ebp - 0x1ac]
push eax
mov eax, dword [ebp - 0x1a8]
push eax
mov eax, dword [ebp - 0x1a4]
push eax
mov eax, dword [ebp - 0x1a0]
push eax
call sub.user32.dll_CloseWindow
test eax, eax
jne 0x406f39
mov dword [0x87e06b], 0x13f87
mov dword [0x87e025], eax
mov dword [0x87e0fc], esi
test dl, dl
je 0x406f23
mov dword [0x87e0b4], edi
mov esi, dword [0x87e042]
xchg dword [0x87e08d], edx
mov dword [esp - 0x12], edi
mov dword [0x87e092], edx
inc byte [ebp - 0x2c9]
cmp byte [ebp - 0x2c9], 3
jne 0x406eb4
mov dword [0x87e09f], ebx
cmp edx, dword [esp + 0x10]
jge 0x406f60
add esi, 0xc4
jmp 0x406f64
mov dword [esp - 0x28], edx
mov dword [esp - 0x24], edi
mov dword [0x87e088], ecx
mov dword [ebp - 0x1b0], 0x1add4
mov dword [ebp - 0x1b4], 0x1c98d
mov eax, 0x407d38
mov dword [ebp - 0x1b8], eax
mov eax, 0x407d48
mov dword [ebp - 0x1bc], eax
mov eax, dword [ebp - 0x1bc]
push eax
mov eax, dword [ebp - 0x1b8]
push eax
mov eax, dword [ebp - 0x1b4]
push eax
mov eax, dword [ebp - 0x1b0]
push eax
call sub.user32.dll_CloseWindow
test eax, eax
je 0x406fcd
mov dword [esp - 0x18], ebx
sub ecx, edx
mov eax, dword [esp + 0x10]
mov dword [0x87e0b4], ecx
call fcn.0040305c
xchg dword [0x87e038], edi
mov dword [0x87e0af], esi
mov dword [0x87e05d], 0x12c87
push 1
call fcn.00401544
mov dword [ebp - 0x1c0], 0x1eddb
mov dword [ebp - 0x1c4], 0x136ca
mov eax, 0x407d4c
mov dword [ebp - 0x1c8], eax
mov eax, 0x407d54
mov dword [ebp - 0x1cc], eax
mov eax, dword [ebp - 0x1cc]
push eax
mov eax, dword [ebp - 0x1c8]
push eax
mov eax, dword [ebp - 0x1c4]
push eax
mov eax, dword [ebp - 0x1c0]
push eax
call sub.user32.dll_CloseWindow
push 0
push 0
call fcn.00401544
mov dword [0x87e108], ecx
mov dword [0x87e102], edi
mov dword [0x87e0a0], ebx
cmp byte [0x87e05a], 0
jle 0x407073
mov dword [0x87e01e], 0x16c14
mov word [0x87e02a], 0xf58c
jmp 0x407092
mov dword [0x87e02d], edx
mov dword [0x87e0bc], 0x11443
mov dword [0x87e0c9], 0x17b2c
mov esi, 0x2c
push 1
call fcn.00401544
mov dword [0x87e108], ecx
mov dword [0x87e102], edi
mov dword [0x87e0a0], ebx
cmp byte [0x87e05a], 0
jle 0x4070c9
mov dword [0x87e01e], 0x16c14
mov word [0x87e02a], 0xf58c
jmp 0x4070e8
mov dword [0x87e02d], edx
mov dword [0x87e0bc], 0x11443
mov dword [0x87e0c9], 0x17b2c
mov esi, 0x2c
push 0
push ebx
push 0x87e0e5
call fcn.00403e40
mov byte [ebp - 0x2c9], 0
mov byte [0x87e0c8], 9
mov esi, dword [0x87e0c6]
mov ecx, dword [0x87e0fa]
xor eax, eax
mov dword [ebp - 0x1d8], eax
mov eax, dword [ebp - 0x1d8]
push eax
mov eax, dword [ebp - 0x1d4]
push eax
mov eax, dword [ebp - 0x1d0]
push eax
call sub.advapi32.dll_RevertToSelf
test eax, eax
jne 0x407146
mov dword [0x87e041], ebx
mov byte [0x87e0c7], 0xa3
xchg dword [esp - 8], eax
inc byte [ebp - 0x2c9]
cmp byte [ebp - 0x2c9], 2
jne 0x4070fc
add dword [0x87e039], ecx
mov dword [0x87e080], eax
mov edx, dword [0x87e0f3]
mov dword [esp - 0x10], esi
xor eax, eax
mov dword [ebp - 0x1e4], eax
mov eax, dword [ebp - 0x1e4]
push eax
mov eax, dword [ebp - 0x1e0]
push eax
mov eax, dword [ebp - 0x1dc]
push eax
call sub.advapi32.dll_RevertToSelf
xchg dword [0x87e072], ebx
and dword [0x87e065], edi
add dword [0x87e0db], edx
mov dword [0x87e09b], ebx
cmp dword [0x87e053], 0
jge 0x4071c4
mov dword [0x87e048], eax
mov dword [0x87e02c], 0x14ba0
add dword [0x87e091], esi
inc eax
mov dword [0x87e075], ecx
mov dword [0x87e07b], edi
mov dword [0x87e09d], esi
mov dword [ebp - 0x1e8], 0x1fe35
mov dword [ebp - 0x1ec], 0x1c568
mov eax, 0x407d5c
mov dword [ebp - 0x1f0], eax
mov eax, 0x407d6c
mov dword [ebp - 0x1f4], eax
mov eax, dword [ebp - 0x1f4]
push eax
mov eax, dword [ebp - 0x1f0]
push eax
mov eax, dword [ebp - 0x1ec]
push eax
mov eax, dword [ebp - 0x1e8]
push eax
call sub.user32.dll_CloseWindow
test eax, eax
jne 0x407244
xchg dword [esp - 4], edx
mov byte [0x87e06c], 0xa4
xchg dword [0x87e0db], esi
mov byte [0x87e07f], 0xe
mov dword [0x87e0d6], edi
mov dword [ebp - 0x1f8], 0x1d0d0
mov eax, dword [ebp - 0x1f8]
push eax
call sub.advapi32.dll_RevertToSelf_1
test eax, eax
jne 0x407294
mov dword [0x87e049], 0x13327
test edx, edx
jne 0x407274
mov dword [0x87e05f], edi
jmp 0x407288
mov dword [0x87e017], 0x146b5
mov dword [0x87e077], 0x12360
lea ebx, [0x87e084]
mov dword [ebx], 0x35
call fcn.004033a0
mov byte [0x87e0ea], 0xb6
mov dword [0x87e0af], edi
lea esi, [0x87e0f4]
mov dword [esi + 0x20], 0xb0
push edx
push edi
call fcn.00403e40
mov dword [0x87e079], eax
mov dword [0x87e0c6], edx
mov dword [0x87e066], esi
lea edx, [0x87e0d8]
mov dword [edx + 0x28], 0x18
mov ebx, 0x1a6
mov dword [ebp - 0x1fc], 0x10b6e
mov eax, dword [ebp - 0x1fc]
push eax
call sub.advapi32.dll_RevertToSelf_1
mov dword [0x87e039], 0x1519e
mov dword [0x87e05f], edx
mov dword [0x87e01f], ecx
mov dword [0x87e017], edx
inc dword [0x87e090]
mov byte [0x87e0ea], 0xb6
mov dword [0x87e0af], edi
lea esi, [0x87e0f4]
mov dword [esi + 0x20], 0xb0
xor eax, eax
mov dword [ebp - 0x208], eax
mov eax, dword [ebp - 0x208]
push eax
mov eax, dword [ebp - 0x204]
push eax
mov eax, dword [ebp - 0x200]
push eax
call sub.advapi32.dll_RevertToSelf
push 0x87e09a
mov edx, 0x87e063
call fcn.00403e40
lea eax, [ebp - 0x210]
push eax
call sub.kernel32.dll_QueryPerformanceCounter
mov eax, dword [0x87e0c1]
mov dword [0x87e074], esi
mov dword [0x87e0d4], ebx
mov dword [0x87e108], ecx
mov dword [0x87e102], edi
mov dword [0x87e0a0], ebx
cmp byte [0x87e05a], 0
jle 0x4073af
mov dword [0x87e01e], 0x16c14
mov word [0x87e02a], 0xf58c
jmp 0x4073ce
mov dword [0x87e02d], edx
mov dword [0x87e0bc], 0x11443
mov dword [0x87e0c9], 0x17b2c
mov esi, 0x2c
call fcn.00403e40
mov byte [0x87e0ea], 0xb6
mov dword [0x87e0af], edi
lea esi, [0x87e0f4]
mov dword [esi + 0x20], 0xb0
call fcn.00403e40
lea eax, [ebp - 0x218]
push eax
call sub.kernel32.dll_QueryPerformanceCounter
test eax, eax
je 0x40742a
cmp byte [0x87e0d6], al
je 0x407416
lea esi, [0x87e05d]
mov dword [esi + 0x20], edx
inc esi
jmp 0x40741a
xchg dword [esp - 0x18], edi
mov dword [0x87e067], 0x14e5f
add dword [0x87e0c0], edx
call fcn.0040857c
xchg dword [0x87e038], edi
mov dword [0x87e0af], esi
mov dword [0x87e05d], 0x12c87
push 0
call fcn.00403e40
cmp dword [0x87e04b], 0x33
jge 0x407462
mov byte [0x87e05d], 0xd9
mov dword [0x87e0a1], edi
mov dword [0x87e040], eax
mov dword [esp - 0x20], esi
cmp bl, byte [ebp - 4]
jg 0x407489
mov byte [0x87e06f], 0xc8
add dword [0x87e050], ecx
mov edx, dword [esp + 0x1c]
mov dword [0x87e0f1], eax
dec esi
mov dword [0x87e034], 0x1358a
mov dword [0x87e0a2], 0x15f31
mov dword [0x87e075], 0x15080
mov dword [ebp - 0x21c], 0x18750
mov dword [ebp - 0x220], 0x1dd58
mov eax, 0x407d84
mov dword [ebp - 0x224], eax
mov eax, 0x407da4
mov dword [ebp - 0x228], eax
mov eax, dword [ebp - 0x228]
push eax
mov eax, dword [ebp - 0x224]
push eax
mov eax, dword [ebp - 0x220]
push eax
mov eax, dword [ebp - 0x21c]
push eax
call sub.user32.dll_AnyPopup
test eax, eax
jne 0x407511
mov dword [0x87e0c6], ecx
mov dword [0x87e067], 0x124c1
add eax, 0x61
mov edi, esi
and dword [0x87e077], esi
call fcn.0040305c
and dword [0x87e089], edx
mov dword [0x87e0a4], 0x1571b
mov dword [0x87e10a], ecx
mov dword [0x87e0f9], 0x17300
mov dword [0x87e021], edi
mov dword [ebp - 0x22c], 0x1bd4a
mov dword [ebp - 0x230], 0x186cd
mov eax, 0x407dc4
mov dword [ebp - 0x234], eax
mov eax, 0x407dd8
mov dword [ebp - 0x238], eax
mov eax, dword [ebp - 0x238]
push eax
mov eax, dword [ebp - 0x234]
push eax
mov eax, dword [ebp - 0x230]
push eax
mov eax, dword [ebp - 0x22c]
push eax
call sub.user32.dll_CloseWindow
test eax, eax
je 0x40759f
mov ecx, 0xc8
mov word [0x87e07e], 0x8319
mov dword [0x87e0a2], edi
call fcn.004033a0
lea eax, [0x87e025]
add dword [eax + 0x24], 0xf7
test ebx, ebx
je 0x4075be
mov byte [0x87e02e], 0x83
jmp 0x4075c9
mov word [0x87e025], 0x11fd
mov eax, ecx
mov byte [0x87e03c], 0x64
xchg dword [0x87e04c], edi
push eax
push ebx
push edi
call fcn.00401544
cmp dword [0x87e045], 0
je 0x4075ff
add dword [0x87e05a], esi
mov dword [0x87e026], ebx
mov dword [0x87e04b], ecx
mov dword [esp - 0x24], esi
jmp 0x407628
mov dword [0x87e06b], eax
add dword [0x87e109], ebx
mov dword [0x87e062], 0x149f6
mov dword [0x87e07a], 0x11f04
mov word [0x87e0a9], 0x855
mov byte [0x87e077], 0x8f
test al, al
jne 0x407643
mov dword [0x87e059], ebx
mov dword [0x87e070], 0x10e20
mov ebx, 0x3d
mov dword [0x87e07b], esi
mov dword [0x87e047], eax
mov byte [0x87e0bc], 0xa3
mov dword [0x87e039], esi
lea eax, [ebp - 0x240]
push eax
call sub.kernel32.dll_QueryPerformanceCounter
test eax, eax
je 0x407694
mov dword [0x87e0c2], 0x16366
mov dword [0x87e030], edx
lea ecx, [0x87e0d8]
and dword [ecx + 0x20], 0xf3
mov dword [0x87e051], esi
mov eax, 0x87e074
call fcn.00401544
call fcn.00401544
mov dword [ebp - 0x244], 0x1053d
mov dword [ebp - 0x248], 0x15171
mov eax, 0x407de8
mov dword [ebp - 0x24c], eax
mov eax, 0x407e08
mov dword [ebp - 0x250], eax
mov eax, dword [ebp - 0x250]
push eax
mov eax, dword [ebp - 0x24c]
push eax
mov eax, dword [ebp - 0x248]
push eax
mov eax, dword [ebp - 0x244]
push eax
call sub.user32.dll_AnyPopup
mov dword [0x87e0b7], eax
mov word [0x87e02e], 0xab90
mov dword [0x87e0b0], ecx
xor eax, eax
mov dword [ebp - 0x25c], eax
mov eax, dword [ebp - 0x25c]
push eax
mov eax, dword [ebp - 0x258]
push eax
mov eax, dword [ebp - 0x254]
push eax
call sub.advapi32.dll_RevertToSelf
test eax, eax
jne 0x407749
mov dword [0x87e0e3], 0x12978
mov dword [0x87e048], esi
mov dword [0x87e0a9], 0x124ba
xchg dword [0x87e0e7], esi
lea eax, [ebp - 0x268]
push eax
call sub.kernel32.dll_QueryPerformanceCounter
test eax, eax
jne 0x40778f
mov dword [0x87e100], eax
cmp ecx, 0xffffffff
jge 0x40776e
mov byte [0x87e071], 0x14
add eax, 0x5c
mov dword [0x87e0a5], edi
mov dword [0x87e106], esi
mov word [0x87e084], 0x2f5f
lea ecx, [0x87e0ce]
mov dword [ecx], 0x64
mov byte [0x87e0d7], 0x17
mov word [0x87e0f8], 0xb7c6
mov dword [0x87e024], 0x1595d
mov dword [esp - 0x18], ecx
sub esi, 0x5a
mov edx, 0x87e09e
push 0
call fcn.00401544
mov edx, 0x87e060
push ecx
call fcn.00403e40
lea eax, [ebp - 0x270]
push eax
call sub.kernel32.dll_QueryPerformanceCounter
mov byte [ebp - 0x2c9], 0
mov dword [0x87e0fb], ebx
mov dword [0x87e036], ecx
mov dword [0x87e08b], 0x14dc6
mov dword [0x87e0fc], 0x12607
mov dword [ebp - 0x274], 0x1f4a1
mov dword [ebp - 0x278], 0x1b581
mov eax, 0x407e1c
mov dword [ebp - 0x27c], eax
mov eax, 0x407e30
mov dword [ebp - 0x280], eax
mov eax, dword [ebp - 0x280]
push eax
mov eax, dword [ebp - 0x27c]
push eax
mov eax, dword [ebp - 0x278]
push eax
mov eax, dword [ebp - 0x274]
push eax
call sub.user32.dll_CloseWindow
call fcn.0040305c
inc byte [ebp - 0x2c9]
cmp byte [ebp - 0x2c9], 1
jne 0x4077da
xor eax, eax
mov dword [ebp - 0x28c], eax
mov eax, dword [ebp - 0x28c]
push eax
mov eax, dword [ebp - 0x288]
push eax
mov eax, dword [ebp - 0x284]
push eax
call sub.advapi32.dll_RevertToSelf
add dword [0x87e030], edi
mov dword [0x87e09c], ebx
mov dword [0x87e0a0], 0x17425
and edi, dword [0x87e020]
mov dword [0x87e088], 0x11d8c
xchg dword [0x87e038], edi
mov dword [0x87e0af], esi
mov dword [0x87e05d], 0x12c87
call fcn.00403e40
lea eax, [ebp - 0x298]
push eax
call sub.kernel32.dll_QueryPerformanceCounter
test eax, eax
jne 0x407909
cmp edi, 0xffffffff
jge 0x4078ed
mov dword [0x87e0f1], 0x12a8e
add dword [0x87e0db], eax
mov dword [0x87e104], esi
add dword [0x87e096], eax
mov dword [0x87e0f5], edi
dec byte [0x87e048]
mov dword [0x87e0a8], 0x1041e
mov dword [0x87e064], edx
call fcn.00403c3c
mov byte [ebp - 0x2c9], 0
mov dword [ebp - 0x29c], 0x1e0eb
mov dword [ebp - 0x2a0], 0x1024b
mov eax, 0x407e38
mov dword [ebp - 0x2a4], eax
mov eax, 0x407e40
mov dword [ebp - 0x2a8], eax
mov eax, dword [ebp - 0x2a8]
push eax
mov eax, dword [ebp - 0x2a4]
push eax
mov eax, dword [ebp - 0x2a0]
push eax
mov eax, dword [ebp - 0x29c]
push eax
call sub.user32.dll_CloseWindow
inc byte [ebp - 0x2c9]
cmp byte [ebp - 0x2c9], 2
jne 0x407915
xchg dword [0x87e038], edi
mov dword [0x87e0af], esi
mov dword [0x87e05d], 0x12c87
call fcn.00403e40
mov dword [0x87e0a7], 0x10549
inc byte [0x87e076]
mov edx, dword [0x87e011]
mov dword [0x87e0e3], esi
mov dword [0x87e041], ecx
push ecx
push ecx
push eax
call fcn.00401544
mov dword [ebp - 0x2ac], 0x12754
mov dword [ebp - 0x2b0], 0x1b4ea
mov eax, 0x407e48
mov dword [ebp - 0x2b4], eax
mov eax, 0x407e6c
mov dword [ebp - 0x2b8], eax
mov eax, dword [ebp - 0x2b8]
push eax
mov eax, dword [ebp - 0x2b4]
push eax
mov eax, dword [ebp - 0x2b0]
push eax
mov eax, dword [ebp - 0x2ac]
push eax
call sub.user32.dll_AnyPopup
test eax, eax
jne 0x407a1f
mov dword [0x87e080], esi
mov dword [0x87e029], eax
add dword [0x87e0a2], ecx
mov dword [0x87e0e6], 0x140da
mov dword [0x87e026], ecx
add dword [0x87e0c7], eax
mov dword [0x87e04a], esi
and eax, 0x5b
mov dword [ebp - 0x2bc], 0x1551c
mov dword [ebp - 0x2c0], 0x15e52
mov eax, 0x407e84
mov dword [ebp - 0x2c4], eax
mov eax, 0x407e88
mov dword [ebp - 0x2c8], eax
mov eax, dword [ebp - 0x2c8]
push eax
mov eax, dword [ebp - 0x2c4]
push eax
mov eax, dword [ebp - 0x2c0]
push eax
mov eax, dword [ebp - 0x2bc]
push eax
call sub.user32.dll_CloseWindow
test eax, eax
jne 0x407aa1
mov dword [0x87e0ae], ebx
mov dword [0x87e0b4], edi
mov dword [0x87e05d], ebx
sub dword [0x87e079], ecx
and dword [0x87e078], edi
mov dword [0x87e0a7], 0x10549
inc byte [0x87e076]
mov edx, dword [0x87e011]
mov dword [0x87e0e3], esi
mov dword [0x87e041], ecx
mov esp, ebp
pop ebp
ret