Function at 0x495260
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x635b87
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x6cd400]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push esi
push edi
mov eax, dword [0x6cd400]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [case.0x79a990.0]
xor bl, bl
test al, 1
jne 0x4952e3
or eax, 1
mov dword [case.0x79a990.0], eax
mov dword [esp + 0xb8], 0
push ecx
call fcn.004015a0
call fcn.0042d900
push 0x639710
call fcn.005e9ef6
add esp, 4
mov dword [esp + 0xb8], 0xffffffff
mov ecx, dword [0x6d6d54]
call fcn.00452140
mov eax, dword [case.0x79a990.0]
test al, 1
jne 0x495332
or eax, 1
mov dword [case.0x79a990.0], eax
mov dword [esp + 0xb8], 1
push ecx
call fcn.004015a0
call fcn.0042d900
push 0x639710
call fcn.005e9ef6
add esp, 4
mov dword [esp + 0xb8], 0xffffffff
mov eax, dword [case.0x79a990.0]
cmp byte [0x6d6b9c], 0
je 0x495753
push 0x676964
lea ecx, [esp + 0x34]
call fcn.004035b0
mov dword [esp + 0xb8], 2
mov eax, dword [case.0x79a990.0]
test al, 1
jne 0x495391
or eax, 1
mov dword [case.0x79a990.0], eax
mov byte [esp + 0xb8], 3
push ecx
call fcn.004015a0
call fcn.0042d900
push 0x639710
call fcn.005e9ef6
add esp, 4
mov byte [esp + 0xb8], 2
xor eax, eax
push 0xffffffffffffffff
push eax
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
push 0x6d6af0
lea ecx, [esp + 0x6c]
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], 0
mov word [esp + 0x6c], ax
call fcn.00403b10
mov byte [esp + 0xb8], 4
push 0xb
push 0x67cf20
push dword [esp + 0x78]
lea ecx, [esp + 0x6c]
push 0
call fcn.004048b0
test eax, eax
jne 0x495400
push 5
push 0x68d7c0
lea ecx, [esp + 0x38]
call fcn.00403c30
jmp 0x495450
push 0xd
push 0x67cccc
push dword [esp + 0x78]
lea ecx, [esp + 0x6c]
push 0
call fcn.004048b0
test eax, eax
jne 0x49542c
push 8
push 0x68d864
lea ecx, [esp + 0x38]
call fcn.00403c30
jmp 0x495450
lea eax, [esp + 0x60]
push 0x67cec8
push eax
call fcn.00404800
add esp, 8
test al, al
je 0x495450
push 0x68d878
lea ecx, [esp + 0x34]
call fcn.00403800
mov eax, dword [case.0x79a990.0]
mov byte [esp + 0x12], 0
mov byte [esp + 0x13], 0
test al, 1
jne 0x495498
or eax, 1
mov dword [case.0x79a990.0], eax
mov byte [esp + 0xb8], 5
push ecx
call fcn.004015a0
call fcn.0042d900
push 0x639710
call fcn.005e9ef6
add esp, 4
mov byte [esp + 0xb8], 4
mov eax, dword [case.0x79a990.0]
mov esi, dword [0x6d6898]
test al, 1
jne 0x4954d2
or eax, 1
mov dword [case.0x79a990.0], eax
mov byte [esp + 0xb8], 6
push ecx
call fcn.004015a0
call fcn.0042d900
push 0x639710
call fcn.005e9ef6
add esp, 4
mov byte [esp + 0xb8], 4
test esi, esi
je 0x4954eb
cmp esi, 3
je 0x4954eb
cmp esi, 0x411
je 0x4954eb
cmp esi, 0x414
jne 0x4954f0
mov byte [esp + 0x12], 1
movzx eax, byte [esp + 0x13]
cmp dword [0x6d689c], 0
mov ecx, 1
cmove eax, ecx
push 0x67a354
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], eax
call fcn.004035b0
mov byte [esp + 0xb8], 7
cmp byte [esp + 0x12], 0
lea ecx, [esp + 0x18]
je 0x495545
cmp byte [esp + 0x14], 0
je 0x49553e
push 1
push 0x677708
call fcn.00403c30
jmp 0x49555d
push 0x6776c4
jmp 0x495558
cmp byte [esp + 0x14], 0
je 0x495553
push 0x67a534
jmp 0x495558
push 0x67a538
call fcn.00403800
mov eax, dword [case.0x79a990.0]
test al, 1
jne 0x495596
or eax, 1
mov dword [case.0x79a990.0], eax
mov byte [esp + 0xb8], 8
push ecx
call fcn.004015a0
call fcn.0042d900
push 0x639710
call fcn.005e9ef6
add esp, 4
mov byte [esp + 0xb8], 7
cmp dword [esp + 0x2c], 8
lea eax, [esp + 0x18]
cmovae eax, dword [esp + 0x18]
push eax
mov eax, dword [0x6d66e8]
push 0x68d7ec
push 0x6d66e8
call dword [eax + 0x14]
add esp, 0xc
lea ecx, [esp + 0x78]
push 0x67c968
mov dword [esp + 0x18], 4
call fcn.004035b0
mov byte [esp + 0xb8], 9
mov eax, dword [case.0x79a990.0]
test al, 1
jne 0x495611
or eax, 1
mov dword [case.0x79a990.0], eax
mov byte [esp + 0xb8], 0xa
push ecx
call fcn.004015a0
call fcn.0042d900
push 0x639710
call fcn.005e9ef6
add esp, 4
mov byte [esp + 0xb8], 9
mov ecx, dword [0x6d6d54]
lea eax, [esp + 0x30]
cmp byte [ecx + 0xb8], 0
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x84]
push eax
je 0x495643
call fcn.00414430
test al, al
setne al
jmp 0x495648
call fcn.00413220
test al, al
sete al
mov byte [esp + 0x13], al
mov byte [esp + 0xb8], 7
cmp dword [esp + 0x8c], 8
jb 0x495673
push dword [esp + 0x78]
call fcn.004c56c2
mov al, byte [esp + 0x17]
add esp, 4
xor ecx, ecx
mov dword [esp + 0x8c], 7
mov dword [esp + 0x88], 0
mov word [esp + 0x78], cx
test al, al
je 0x4956b5
call fcn.00401520
mov ecx, dword [eax + 0xf8]
add eax, 0xf8
push 0x68d810
push 0x6796b0
push eax
call dword [ecx + 0x24]
add esp, 0xc
mov byte [esp + 0xb8], 4
cmp dword [esp + 0x2c], 8
jb 0x4956d0
push dword [esp + 0x18]
call fcn.004c56c2
add esp, 4
xor eax, eax
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
mov byte [esp + 0xb8], 2
cmp dword [esp + 0x74], 8
jb 0x495702
push dword [esp + 0x60]
call fcn.004c56c2
add esp, 4
xor eax, eax
mov dword [esp + 0x74], 7
mov dword [esp + 0x70], 0
mov word [esp + 0x60], ax
mov dword [esp + 0xb8], 0xffffffff
cmp dword [esp + 0x44], 8
jb 0x495737
push dword [esp + 0x30]
call fcn.004c56c2
add esp, 4
xor eax, eax
mov word [esp + 0x30], ax
mov eax, dword [case.0x79a990.0]
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], 0
test al, 1
jne 0x49578d
or eax, 1
mov dword [case.0x79a990.0], eax
mov dword [esp + 0xb8], 0xb
push ecx
call fcn.004015a0
call fcn.0042d900
push 0x639710
call fcn.005e9ef6
add esp, 4
mov dword [esp + 0xb8], 0xffffffff
mov eax, dword [0x6d66e8]
push 0x68d8b0
push 0x6d66e8
call dword [eax + 0x14]
mov eax, dword [case.0x79a990.0]
add esp, 8
test al, 1
jne 0x4957e1
or eax, 1
mov dword [case.0x79a990.0], eax
mov dword [esp + 0xb8], 0xc
push ecx
call fcn.004015a0
call fcn.0042d900
push 0x639710
call fcn.005e9ef6
add esp, 4
mov dword [esp + 0xb8], 0xffffffff
mov eax, dword [0x6d66d8]
push 0
push 0
push 0xbcb
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_PostMessageW]
xor esi, esi
lea ebx, [ebx]
cmp byte [edi + 0xb8], 0
je 0x495812
cmp byte [edi + 0xb9], 0
jne 0x49582d
cmp esi, 0x1388
jg 0x49582d
push 0xfa
add esi, 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x495800
call fcn.00496a00
cmp byte [edi + 0xb8], 0
mov esi, eax
jne 0x495935
test esi, esi
je 0x495935
push 0x67ed20
lea ecx, [esp + 0x34]
call fcn.004035b0
mov dword [esp + 0xb8], 0xd
lea eax, [esp + 0x30]
push eax
lea ecx, [esi + 0x40c]
call fcn.00417cd0
push 2
push 0x67a354
push dword [eax + 0x10]
mov ecx, eax
push 0
call fcn.004048b0
test eax, eax
sete al
mov byte [esp + 0x13], al
mov dword [esp + 0xb8], 0xffffffff
cmp dword [esp + 0x44], 8
jb 0x4958b0
push dword [esp + 0x30]
call fcn.004c56c2
mov al, byte [esp + 0x17]
add esp, 4
xor ecx, ecx
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], 0
mov word [esp + 0x30], cx
test al, al
je 0x495935
push 0x67ed20
lea ecx, [esp + 0x34]
call fcn.004035b0
mov dword [esp + 0xb8], 0xe
push 0x68d904
lea eax, [esp + 0x34]
push eax
lea ecx, [esi + 0x40c]
call fcn.00417cd0
mov ecx, eax
call fcn.00403800
mov dword [esp + 0xb8], 0xffffffff
cmp dword [esp + 0x44], 8
jb 0x49591e
push dword [esp + 0x30]
call fcn.004c56c2
add esp, 4
xor eax, eax
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], 0
mov word [esp + 0x30], ax
mov ecx, edi
call fcn.00489e60
mov eax, dword [case.0x79a990.0]
test al, 1
jne 0x49597b
or eax, 1
mov dword [case.0x79a990.0], eax
mov dword [esp + 0xb8], 0xf
push ecx
call fcn.004015a0
call fcn.0042d900
push 0x639710
call fcn.005e9ef6
add esp, 4
mov dword [esp + 0xb8], 0xffffffff
mov ecx, dword [0x6d6d50]
call fcn.00492080
call fcn.00405290
lea esi, [eax + 4]
mov ecx, esi
mov eax, dword [esi]
push dword [eax + 4]
call fcn.00438c00
mov eax, dword [esi]
mov ecx, dword [case.0x79a990.0]
mov dword [eax + 4], eax
mov eax, dword [esi]
mov dword [eax], eax
mov eax, dword [esi]
mov dword [eax + 8], eax
mov dword [esi + 4], 0
test cl, 1
jne 0x4959f7
or ecx, 1
mov dword [case.0x79a990.0], ecx
mov dword [esp + 0xb8], 0x10
push ecx
call fcn.004015a0
call fcn.0042d900
push 0x639710
call fcn.005e9ef6
add esp, 4
mov dword [esp + 0xb8], 0xffffffff
mov ecx, dword [case.0x79a990.0]
mov eax, dword [0x6d6d4c]
xor esi, esi
mov eax, dword [eax + 0xc0]
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x5c], 7
mov dword [esp + 0x58], esi
mov word [esp + 0x48], ax
mov dword [esp + 0xb8], 0x11
mov byte [edi + 0x114], al
mov byte [esp + 0x12], al
test cl, 1
jne 0x495a74
or ecx, 1
mov dword [case.0x79a990.0], ecx
mov byte [esp + 0xb8], 0x12
push ecx
call fcn.004015a0
call fcn.0042d900
push 0x639710
call fcn.005e9ef6
add esp, 4
mov byte [esp + 0xb8], 0x11
mov ecx, dword [case.0x79a990.0]
cmp byte [0x6d6812], 0
jne 0x495ad5
mov ecx, edi
call fcn.0047ce20
mov eax, dword [case.0x79a990.0]
test al, 1
jne 0x495abd
or eax, 1
mov dword [case.0x79a990.0], eax
mov byte [esp + 0xb8], 0x13
push ecx
call fcn.004015a0
call fcn.0042d900
push 0x639710
call fcn.005e9ef6
add esp, 4
mov byte [esp + 0xb8], 0x11
push 0xffffffffffffffff
push 0
push 0x6d6a84
lea ecx, [esp + 0x54]
call fcn.00403b10
mov ecx, dword [case.0x79a990.0]
cmp dword [esp + 0x58], 0
jne 0x495b3c
test cl, 1
jne 0x495b18
or ecx, 1
mov dword [case.0x79a990.0], ecx
mov byte [esp + 0xb8], 0x14
push ecx
call fcn.004015a0
call fcn.0042d900
push 0x639710
call fcn.005e9ef6
add esp, 4
mov byte [esp + 0xb8], 0x11
mov ecx, dword [case.0x79a990.0]
mov eax, dword [0x6d6d4c]
add eax, 0x78
lea edx, [esp + 0x48]
cmp edx, eax
je 0x495b43
push 0xffffffffffffffff
push 0
push eax
mov ecx, edx
call fcn.00403b10
mov ecx, dword [case.0x79a990.0]
jmp 0x495b43
mov byte [edi + 0x114], 1
cmp dword [esp + 0x58], 0
jne 0x495ba3
test cl, 1
jne 0x495b80
or ecx, 1
mov dword [case.0x79a990.0], ecx
mov byte [esp + 0xb8], 0x15
push ecx
call fcn.004015a0
call fcn.0042d900
push 0x639710
call fcn.005e9ef6
add esp, 4
mov byte [esp + 0xb8], 0x11
push 0xffffffffffffffff
push 0
push 0x6d6b68
lea ecx, [esp + 0x54]
call fcn.00403b10
cmp dword [esp + 0x58], 0
mov ecx, dword [case.0x79a990.0]
je 0x49660a
test cl, 1
jne 0x495bdf
or ecx, 1
mov dword [case.0x79a990.0], ecx
mov byte [esp + 0xb8], 0x16
push ecx
call fcn.004015a0
call fcn.0042d900
push 0x639710
call fcn.005e9ef6
add esp, 4
mov byte [esp + 0xb8], 0x11
mov ecx, dword [case.0x79a990.0]
cmp byte [0x6d6638], 0
jne 0x49660a
push 0x676964
lea ecx, [esp + 0x64]
call fcn.004035b0
mov byte [esp + 0xb8], 0x17
call fcn.00401520
mov ecx, dword [eax + 0xf8]
add eax, 0xf8
push 0x68d88c
push eax
call dword [ecx]
add esp, 8
call fcn.00401520
push 0xa
push 0x677694
push dword [eax + 0x1fc]
lea ecx, [eax + 0x1ec]
push 0
call fcn.004048b0
test eax, eax
jne 0x495c6f
call fcn.00401520
cmp byte [eax + 0x5b3], 0
jne 0x495c6f
call fcn.00401520
cmp byte [eax + 0x21c], 0
jne 0x495c6f
push 0x68d8a0
lea ecx, [esp + 0x64]
call fcn.004036d0
jmp 0x495e65
push 6
push 0x68d97c
lea ecx, [esp + 0x68]
call fcn.004039e0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x495c90
cmp byte [eax + 0x45a], 0
jne 0x495d0a
call fcn.00401520
cmp byte [eax + 0x5ac], 0
jne 0x495d0a
push 0x679cb0
call fcn.00401520
add eax, 0x1ec
push eax
call fcn.00408cb0
add esp, 8
test al, al
je 0x495d0a
push 0x67791c
call fcn.00401520
add eax, 0x1ec
push eax
call fcn.00408cb0
add esp, 8
test al, al
je 0x495d0a
push 0x6778f8
call fcn.00401520
add eax, 0x1ec
push eax
call fcn.00408cb0
add esp, 8
test al, al
je 0x495d0a
push 0x6776c4
lea ecx, [esp + 0x64]
mov byte [esp + 0x16], 1
call fcn.004036d0
jmp 0x495e65
call fcn.00401520
cmp byte [eax + 0x21c], 0
je 0x495d27
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x420]
mov esi, dword [eax + 0x40]
jmp 0x495d5b
call fcn.00401520
cmp byte [eax + 0x21d], 0
je 0x495d42
call fcn.00401520
mov esi, dword [eax + 0x2ac]
jmp 0x495d5b
call fcn.00401520
cmp byte [eax + 0x220], 0
je 0x495d5b
call fcn.00401520
mov esi, dword [eax + 0x2b4]
xor eax, eax
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
mov byte [esp + 0xb8], 0x18
call fcn.00401520
cmp byte [eax + 0x2d4], 0
je 0x495d9f
push 0x6776c4
jmp 0x495e18
test esi, esi
je 0x495dcd
cmp esi, 3
je 0x495dcd
cmp esi, 0x411
je 0x495dcd
cmp esi, 0x414
je 0x495dcd
push 0x6776c4
lea ecx, [esp + 0x1c]
call fcn.00403800
mov byte [esp + 0x12], 1
jmp 0x495e21
push 0x677694
call fcn.00401520
add eax, 0x1ec
push eax
call fcn.00404800
add esp, 8
test al, al
je 0x495df0
push 0x67a538
jmp 0x495e18
push 0x679cb0
call fcn.00401520
add eax, 0x1ec
push eax
call fcn.00404800
add esp, 8
test al, al
je 0x495e13
push 0x68d98c
jmp 0x495e18
push 0x67a534
lea ecx, [esp + 0x1c]
call fcn.00403800
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x6c]
call fcn.00403f80
mov byte [esp + 0xb8], 0x17
cmp dword [esp + 0x2c], 8
jb 0x495e4e
push dword [esp + 0x18]
call fcn.004c56c2
add esp, 4
xor eax, eax
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
call fcn.00401520
push 8
push 0x67791c
push dword [eax + 0x1fc]
lea ecx, [eax + 0x1ec]
push 0
call fcn.004048b0
test eax, eax
jne 0x495e9c
call fcn.00401520
mov eax, dword [eax + 0x760]
cmp dword [eax + 0x108], 0x1e
jne 0x495edb
call fcn.00401520
push 0xe
push 0x677930
push dword [eax + 0x1fc]
lea ecx, [eax + 0x1ec]
push 0
call fcn.004048b0
test eax, eax
je 0x495edb
push 0x6778f8
call fcn.00401520
add eax, 0x1ec
push eax
call fcn.00404800
add esp, 8
test al, al
je 0x495eeb
push 0
push 0x676964
lea ecx, [esp + 0x68]
call fcn.00403c30
cmp dword [esp + 0x70], 0
je 0x496041
cmp byte [edi + 0x114], 0
mov al, byte [esp + 0x12]
je 0x495f0b
cmp al, 1
jne 0x496041
test al, al
je 0x495f1e
call fcn.00401520
mov dword [eax + 0x4ac], 4
call fcn.00401520
add eax, 0x578
lea ecx, [esp + 0x48]
cmp ecx, eax
je 0x495f3a
push 0xffffffffffffffff
push 0
push eax
call fcn.00403b10
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
mov byte [esp + 0xb8], 0x19
cmp dword [esp + 0x74], 8
lea ecx, [esp + 0x60]
cmovae ecx, dword [esp + 0x60]
push 0
lea edx, [esp + 0x1c]
call fcn.00499490
add esp, 4
lea edx, [esp + 0x18]
lea ecx, [esp + 0x90]
call fcn.00423290
mov byte [esp + 0xb8], 0x1a
push eax
lea ecx, [esp + 0x1c]
call fcn.004083e0
mov byte [esp + 0xb8], 0x19
cmp dword [esp + 0xa4], 0x10
jb 0x495fc6
push dword [esp + 0x90]
call fcn.004c56c2
add esp, 4
cmp dword [esp + 0x2c], 0x10
lea ecx, [esp + 0x18]
cmovae ecx, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x64]
mov dword [esp + 0xa8], 0xf
mov dword [esp + 0xa4], 0
mov byte [esp + 0x94], 0
call fcn.00499580
add esp, 4
lea eax, [esp + 0x60]
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x54]
call fcn.00403f80
mov byte [esp + 0xb8], 0x17
cmp dword [esp + 0x2c], 0x10
jb 0x49602c
push dword [esp + 0x18]
call fcn.004c56c2
add esp, 4
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
lea ecx, [esp + 0x30]
call fcn.0040e1e0
mov byte [esp + 0xb8], 0x1b
call fcn.00401520
xor ecx, ecx
push 0xffffffffffffffff
push ecx
add eax, 0x30
mov word [esp + 0x80], cx
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
push eax
lea ecx, [esp + 0x84]
mov dword [esp + 0x98], 7
mov dword [esp + 0x94], 0
call fcn.00403b10
mov byte [esp + 0xb8], 0x1c
cmp dword [esp + 0x40], 0
je 0x496126
push 0
push 0x67b36c
lea ecx, [esp + 0x38]
call fcn.0040ca20
push eax
push 0
lea eax, [esp + 0x98]
push eax
lea ecx, [esp + 0x3c]
call fcn.0040ca70
mov byte [esp + 0xb8], 0x1d
push eax
lea ecx, [esp + 0x34]
call fcn.00403640
mov byte [esp + 0xb8], 0x1c
cmp dword [esp + 0xa4], 8
jb 0x496106
push dword [esp + 0x90]
call fcn.004c56c2
add esp, 4
xor eax, eax
mov dword [esp + 0xa4], 7
mov dword [esp + 0xa0], 0
mov word [esp + 0x90], ax
mov ecx, dword [esp + 0x88]
test ecx, ecx
je 0x4961b9
push 0
push 0x67b36c
lea ecx, [esp + 0x80]
call fcn.0040ca20
push eax
push 0
lea eax, [esp + 0x98]
push eax
lea ecx, [esp + 0x84]
call fcn.0040ca70
mov byte [esp + 0xb8], 0x1e
push eax
lea ecx, [esp + 0x7c]
call fcn.00403640
mov byte [esp + 0xb8], 0x1c
cmp dword [esp + 0xa4], 8
jb 0x496192
push dword [esp + 0x90]
call fcn.004c56c2
add esp, 4
mov ecx, dword [esp + 0x88]
xor eax, eax
mov dword [esp + 0xa4], 7
mov dword [esp + 0xa0], 0
mov word [esp + 0x90], ax
cmp dword [esp + 0x44], 8
push dword [esp + 0x40]
lea eax, [esp + 0x34]
cmovae eax, dword [esp + 0x34]
push eax
push ecx
push 0
lea ecx, [esp + 0x88]
call fcn.004048b0
test eax, eax
sete byte [esp + 0x12]
call fcn.00401520
cmp byte [eax + 0x222], 0
jne 0x496565
call fcn.00401520
mov esi, eax
call fcn.00401520
cmp byte [eax + 0x590], 0
je 0x4962a9
push 0x6776c4
call fcn.00401520
add eax, 0x42c
push eax
call fcn.00404800
add esp, 8
test al, al
movzx ebx, bl
mov eax, 1
cmovne ebx, eax
mov eax, dword [esi + 0x760]
cmp dword [eax + 0x108], 5
je 0x496253
mov eax, dword [eax + 0x90]
cmp eax, 3
je 0x496251
cmp eax, 2
jne 0x496253
xor bl, bl
call fcn.00401520
cmp byte [eax + 0x5ac], 0
je 0x496270
xor ecx, ecx
cmp dword [edi + 0xc4], 0xffffffff
movzx ebx, bl
cmove ebx, ecx
mov eax, dword [esi + 0x760]
cmp dword [eax + 0x108], 0xc
jne 0x4962a9
lea eax, [esi + 0x444]
push 0x6776c4
push eax
call fcn.00404800
add esp, 8
test al, al
je 0x4962a9
mov eax, dword [esi + 0x33c]
cmp eax, 1
je 0x4962a7
cmp eax, 2
jne 0x4962a9
mov bl, 1
mov eax, dword [esi + 0x760]
mov eax, dword [eax + 0x108]
cmp eax, 0x16
je 0x4962c4
cmp eax, 0x1e
je 0x4962c4
cmp eax, 0x17
jne 0x4962ee
cmp dword [esi + 0x33c], 1
jne 0x4962ec
push 0x6776c4
call fcn.00401520
add eax, 0x42c
push eax
call fcn.00404800
add esp, 8
test al, al
setne bl
jmp 0x4962ee
xor bl, bl
cmp byte [esi + 0x6a8], 0
je 0x496306
xor ecx, ecx
cmp dword [esi + 0x4ac], 2
movzx ebx, bl
cmove ebx, ecx
mov eax, dword [esi + 0x760]
cmp dword [eax + 0x108], 1
jne 0x496324
xor ecx, ecx
cmp dword [esi + 0x33c], 1
movzx ebx, bl
cmove ebx, ecx
push 0x677694
call fcn.00401520
add eax, 0x1ec
push eax
call fcn.00404800
add esp, 8
test al, al
je 0x4963d1
lea eax, [esi + 0x474]
push 0x677708
push eax
call fcn.00404800
add esp, 8
test al, al
je 0x49639e
cmp dword [esi + 0x33c], 1
jne 0x49639e
mov eax, dword [esi + 0x760]
mov eax, dword [eax + 0x108]
cmp eax, 5
je 0x49637b
cmp eax, 6
jne 0x49639e
call fcn.00401520
mov ecx, dword [eax + 0xf8]
add eax, 0xf8
push 0x68d910
push eax
call dword [ecx + 0x14]
add esp, 8
xor bl, bl
jmp 0x4964fa
test bl, bl
je 0x4963b4
call fcn.00401520
cmp byte [eax + 0x21c], 1
je 0x4964ed
call fcn.00401520
cmp byte [eax + 0x5b3], 0
jne 0x4963ca
test bl, bl
jne 0x4964ed
xor bl, bl
jmp 0x4964fa
push 0x6777b4
call fcn.00401520
add eax, 0x1ec
push eax
call fcn.00404800
add esp, 8
test al, al
je 0x496490
mov eax, dword [esi + 0x33c]
cmp eax, 2
je 0x4963ca
cmp eax, 1
je 0x4963ca
mov eax, dword [esi + 0x760]
mov eax, dword [eax + 0x90]
cmp eax, 3
je 0x4963ca
cmp eax, 2
je 0x4963ca
mov bl, 1
call fcn.00401520
add eax, 0x678
push eax
lea ecx, [esp + 0x94]
call fcn.00408490
mov byte [esp + 0xb8], 0x1f
lea eax, [esp + 0x90]
push 0x68d970
push eax
call fcn.00404800
add esp, 8
test al, al
je 0x49646d
call fcn.00401520
add eax, 0x578
lea ecx, [esp + 0x48]
cmp ecx, eax
je 0x49646d
push 0xffffffffffffffff
push 0
push eax
call fcn.00403b10
mov dl, byte [esp + 0x12]
lea ecx, [esp + 0x48]
call fcn.00425cc0
mov byte [esp + 0xb8], 0x1c
lea ecx, [esp + 0x90]
call fcn.00403680
jmp 0x4964fa
push 0x677930
call fcn.00401520
add eax, 0x1ec
push eax
call fcn.00404800
add esp, 8
test al, al
je 0x4964e9
mov eax, dword [esi + 0x33c]
cmp eax, 2
je 0x4964bc
cmp eax, 1
jne 0x4964d8
lea eax, [esi + 0x444]
push 0x6776c4
push eax
call fcn.00408cb0
add esp, 8
test al, al
je 0x4964d8
xor bl, bl
jmp 0x4964fa
cmp dword [esi + 0x33c], 7
jne 0x4964e5
xor bl, bl
jmp 0x4964fa
mov bl, 1
jmp 0x4964ed
test bl, bl
je 0x4964fa
mov dl, byte [esp + 0x12]
lea ecx, [esp + 0x48]
call fcn.00425cc0
call fcn.00401520
mov edi, dword [eax + 0xf8]
lea esi, [eax + 0xf8]
call fcn.00401520
movzx eax, byte [eax + 0x590]
push eax
push 0x68da20
push esi
call dword [edi + 4]
add esp, 0xc
call fcn.00401520
mov ecx, dword [eax + 0xf8]
add eax, 0xf8
lea edx, [esp + 0x48]
test bl, bl
je 0x49654e
cmp dword [esp + 0x5c], 8
cmovae edx, dword [esp + 0x48]
push edx
push 0x68be38
jmp 0x49655e
cmp dword [esp + 0x5c], 8
cmovae edx, dword [esp + 0x48]
push edx
push 0x68bda8
push eax
call dword [ecx + 4]
add esp, 0xc
mov byte [esp + 0xb8], 0x1b
cmp dword [esp + 0x8c], 8
jb 0x496583
push dword [esp + 0x78]
call fcn.004c56c2
add esp, 4
xor eax, eax
mov dword [esp + 0x8c], 7
mov dword [esp + 0x88], 0
mov word [esp + 0x78], ax
mov byte [esp + 0xb8], 0x17
cmp dword [esp + 0x44], 8
jb 0x4965bb
push dword [esp + 0x30]
call fcn.004c56c2
add esp, 4
xor eax, eax
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], 0
mov word [esp + 0x30], ax
mov byte [esp + 0xb8], 0x11
cmp dword [esp + 0x74], 8
jb 0x4965ed
push dword [esp + 0x60]
call fcn.004c56c2
add esp, 4
mov ecx, dword [case.0x79a990.0]
xor eax, eax
mov dword [esp + 0x74], 7
mov dword [esp + 0x70], 0
mov word [esp + 0x60], ax
test cl, 1
jne 0x496640
or ecx, 1
mov dword [case.0x79a990.0], ecx
mov byte [esp + 0xb8], 0x20
push ecx
call fcn.004015a0
call fcn.0042d900
push 0x639710
call fcn.005e9ef6
add esp, 4
mov byte [esp + 0xb8], 0x11
push 0xb
push 0x6776ac
push dword [0x6d67ec]
mov ecx, 0x6d67dc
push 0
call fcn.004048b0
test eax, eax
je 0x49678b
mov eax, dword [case.0x79a990.0]
test al, 1
jne 0x49669a
or eax, 1
mov dword [case.0x79a990.0], eax
mov byte [esp + 0xb8], 0x21
push ecx
call fcn.004015a0
call fcn.0042d900
push 0x639710
call fcn.005e9ef6
add esp, 4
mov byte [esp + 0xb8], 0x11
push 0xd
push 0x6777c8
push dword [0x6d67ec]
mov ecx, 0x6d67dc
push 0
call fcn.004048b0
test eax, eax
je 0x49678b
call fcn.00401520
push 9
push 0x6777b4
push dword [eax + 0x1fc]
lea ecx, [eax + 0x1ec]
push 0
call fcn.004048b0
test eax, eax
je 0x49678b
push 0x67c628
call fcn.00401520
add eax, 0x1ec
push eax
call fcn.00404800
add esp, 8
test al, al
jne 0x49678b
push 0x67c5e8
call fcn.00401520
add eax, 0x1ec
push eax
call fcn.00404800
add esp, 8
test al, al
jne 0x49678b
push 0x67c664
call fcn.00401520
add eax, 0x1ec
push eax
call fcn.00404800
add esp, 8
test al, al
jne 0x49678b
push 0x67791c
call fcn.00401520
add eax, 0x1ec
push eax
call fcn.00404800
add esp, 8
test al, al
jne 0x49678b
test bl, bl
je 0x496768
call fcn.00401520
cmp byte [eax + 0x48d], 0
jne 0x4967d9
call fcn.00401520
mov ecx, dword [eax + 0xf8]
add eax, 0xf8
push 0x68d990
push eax
call dword [ecx + 0x14]
add esp, 8
call fcn.00421980
jmp 0x4967d9
mov eax, dword [case.0x79a990.0]
test al, 1
jne 0x4967c4
or eax, 1
mov dword [case.0x79a990.0], eax
mov byte [esp + 0xb8], 0x22
push ecx
call fcn.004015a0
call fcn.0042d900
push 0x639710
call fcn.005e9ef6
add esp, 4
mov byte [esp + 0xb8], 0x11
mov eax, dword [0x6d66e8]
push 0x68da68
push 0x6d66e8
call dword [eax + 0x14]
add esp, 8
mov eax, dword [case.0x79a990.0]
test bl, bl
je 0x496828
test al, 1
jne 0x49681b
or eax, 1
mov dword [case.0x79a990.0], eax
mov byte [esp + 0xb8], 0x23
push ecx
call fcn.004015a0
call fcn.0042d900
push 0x639710
call fcn.005e9ef6
add esp, 4
mov byte [esp + 0xb8], 0x11
mov eax, dword [case.0x79a990.0]
cmp byte [0x6d6a7d], 0
jne 0x4968f7
test al, 1
jne 0x496861
or eax, 1
mov dword [case.0x79a990.0], eax
mov byte [esp + 0xb8], 0x24
push ecx
call fcn.004015a0
call fcn.0042d900
push 0x639710
call fcn.005e9ef6
add esp, 4
mov byte [esp + 0xb8], 0x11
mov eax, dword [case.0x79a990.0]
mov byte [0x6d65f0], 1
test al, 1
jne 0x49689c
or eax, 1
mov dword [case.0x79a990.0], eax
mov byte [esp + 0xb8], 0x25
push ecx
call fcn.004015a0
call fcn.0042d900
push 0x639710
call fcn.005e9ef6
add esp, 4
mov byte [esp + 0xb8], 0x11
mov ecx, dword [0x6d6d54]
call fcn.00456420
mov eax, dword [case.0x79a990.0]
test al, 1
jne 0x4968e0
or eax, 1
mov dword [case.0x79a990.0], eax
mov byte [esp + 0xb8], 0x26
push ecx
call fcn.004015a0
call fcn.0042d900
push 0x639710
call fcn.005e9ef6
add esp, 4
mov byte [esp + 0xb8], 0x11
mov eax, dword [0x6d66d8]
push 0
push 0
push 0xbcc
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_PostMessageW]
mov dword [esp + 0xb8], 0xffffffff
cmp dword [esp + 0x5c], 8
jb 0x496915
push dword [esp + 0x48]
call fcn.004c56c2
add esp, 4
xor eax, eax
mov dword [esp + 0x5c], 7
mov dword [esp + 0x58], 0
mov word [esp + 0x48], ax
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.005e96ad
mov esp, ebp
pop ebp
ret