Function at 0x4091a0
Capabilities:
Check for foreground window switch
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x465250
mov eax, dword fs:[0]
push eax
sub esp, 0x78
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47a770]
xor eax, esp
push eax
lea eax, [esp + 0x8c]
mov dword fs:[0], eax
mov edi, dword [esp + 0xac]
mov ebx, dword [esp + 0xa4]
mov ebp, dword [esp + 0xa0]
mov dword [esp + 0x94], 0
mov eax, dword [esp + 0x9c]
push ebx
push ecx
add eax, 0xfffffff0
mov dword [esp + 0xa8], esp
mov esi, esp
push eax
call fcn.00429de0
add eax, 0x10
add esp, 4
mov ecx, ebp
mov dword [esi], eax
call fcn.00408690
mov eax, dword [0x47baf8]
add esp, 8
push eax
mov ecx, ebp
call fcn.0042bd60
cmp eax, 0x457
jne 0x40a851
mov eax, dword [esp + 0x9c]
add eax, 0xfffffff0
cmp dword [edi], 3
jle 0x40926d
push ebx
push 0
push ebp
push ecx
mov dword [esp + 0xb4], esp
mov esi, esp
push eax
mov dword [edi], 0
call fcn.00429de0
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.0041df00
add esp, 0x10
jmp 0x40a851
push ecx
mov dword [esp + 0xa4], esp
mov esi, esp
push eax
call fcn.00429de0
add eax, 0x10
lea ecx, [esp + 0x2c]
add esp, 4
mov dword [esi], eax
push ecx
mov eax, ebp
call fcn.004060f0
mov eax, dword [esp + 0xa4]
add esp, 4
add eax, 0xfffffff0
mov dword [esp + 0xa4], esp
mov esi, esp
push eax
call fcn.00429de0
add eax, 0x10
mov dword [esi], eax
add esp, 4
mov eax, ebp
call fcn.004046f0
mov ebx, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
add esp, 4
test al, al
jne 0x4092db
cmp edi, 0x1e2
jne 0x4092db
cmp ebx, 0xa7
je 0x409327
mov eax, dword [esp + 0x9c]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0xa4], esp
mov esi, esp
push eax
call fcn.00429de0
add eax, 0x10
mov dword [esi], eax
add esp, 4
mov eax, ebp
call fcn.004046f0
add esp, 4
test al, al
jne 0x409a06
cmp edi, 0x1f4
jne 0x409a06
cmp ebx, 0x10d
jne 0x409a06
mov eax, dword [esp + 0x9c]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0xa4], esp
mov esi, esp
push eax
call fcn.00429de0
add eax, 0x10
lea edx, [esp + 0x34]
add esp, 4
mov dword [esi], eax
push edx
mov eax, ebp
call fcn.004060f0
mov edi, dword [esp + 0x34]
mov ebx, dword [esp + 0x38]
add esp, 8
cmp edi, 0x1e2
jne 0x409830
cmp ebx, 0xa7
jne 0x409830
mov eax, dword [esp + 0xa4]
mov ecx, dword [eax + 0x64]
push ecx
lea edx, [esp + 0xa4]
push edx
mov ecx, ebp
call fcn.00404c30
add esp, 8
mov byte [esp + 0x94], 1
mov ecx, dword [esp + 0xa0]
cmp dword [ecx - 0xc], 0
jge 0x4093af
or eax, 0xffffffff
jmp 0x4093cf
push 0x46db98
push ecx
call fcn.0044d4ee
mov ecx, dword [esp + 0xa8]
add esp, 8
test eax, eax
jne 0x4093cd
or eax, 0xffffffff
jmp 0x4093cf
sub eax, ecx
cmp dword [ecx - 0xc], 0
mov dword [esp + 0x3c], eax
jge 0x4093de
or eax, 0xffffffff
jmp 0x4093fe
push 0x46dbac
push ecx
call fcn.0044d4ee
mov ecx, dword [esp + 0xa8]
add esp, 8
test eax, eax
jne 0x4093fc
or eax, 0xffffffff
jmp 0x4093fe
sub eax, ecx
cmp dword [ecx - 0xc], 0
mov dword [esp + 0x40], eax
jge 0x40940d
or eax, 0xffffffff
jmp 0x40942d
push 0x46dbb8
push ecx
call fcn.0044d4ee
mov ecx, dword [esp + 0xa8]
add esp, 8
test eax, eax
jne 0x40942b
or eax, 0xffffffff
jmp 0x40942d
sub eax, ecx
cmp dword [ecx - 0xc], 0
mov dword [esp + 0x44], eax
jge 0x40943c
or eax, 0xffffffff
jmp 0x40945c
push 0x46dbd0
push ecx
call fcn.0044d4ee
mov ecx, dword [esp + 0xa8]
add esp, 8
test eax, eax
jne 0x40945a
or eax, 0xffffffff
jmp 0x40945c
sub eax, ecx
cmp dword [ecx - 0xc], 0
mov dword [esp + 0x48], eax
jge 0x40946b
or eax, 0xffffffff
jmp 0x40948b
push 0x46dbe4
push ecx
call fcn.0044d4ee
mov ecx, dword [esp + 0xa8]
add esp, 8
test eax, eax
jne 0x409489
or eax, 0xffffffff
jmp 0x40948b
sub eax, ecx
cmp dword [ecx - 0xc], 0
mov dword [esp + 0x4c], eax
jge 0x40949a
or eax, 0xffffffff
jmp 0x4094ba
push 0x46dbf8
push ecx
call fcn.0044d4ee
mov ecx, dword [esp + 0xa8]
add esp, 8
test eax, eax
jne 0x4094b8
or eax, 0xffffffff
jmp 0x4094ba
sub eax, ecx
cmp dword [ecx - 0xc], 0
mov dword [esp + 0x50], eax
jge 0x4094c9
or eax, 0xffffffff
jmp 0x4094e9
push 0x46dc0c
push ecx
call fcn.0044d4ee
mov ecx, dword [esp + 0xa8]
add esp, 8
test eax, eax
jne 0x4094e7
or eax, 0xffffffff
jmp 0x4094e9
sub eax, ecx
cmp dword [ecx - 0xc], 0
mov dword [esp + 0x54], eax
jge 0x4094f8
or eax, 0xffffffff
jmp 0x409518
push 0x46dc24
push ecx
call fcn.0044d4ee
mov ecx, dword [esp + 0xa8]
add esp, 8
test eax, eax
jne 0x409516
or eax, 0xffffffff
jmp 0x409518
sub eax, ecx
cmp dword [ecx - 0xc], 0
mov dword [esp + 0x58], eax
jge 0x409527
or eax, 0xffffffff
jmp 0x409547
push 0x46dc34
push ecx
call fcn.0044d4ee
mov ecx, dword [esp + 0xa8]
add esp, 8
test eax, eax
jne 0x409545
or eax, 0xffffffff
jmp 0x409547
sub eax, ecx
cmp dword [ecx - 0xc], 0
mov dword [esp + 0x5c], eax
jge 0x409556
or eax, 0xffffffff
jmp 0x409576
push 0x46dc3c
push ecx
call fcn.0044d4ee
mov ecx, dword [esp + 0xa8]
add esp, 8
test eax, eax
jne 0x409574
or eax, 0xffffffff
jmp 0x409576
sub eax, ecx
mov dword [esp + 0x60], eax
mov eax, dword [ecx - 0xc]
test eax, eax
jge 0x409586
or eax, 0xffffffff
jmp 0x4095a6
push 0x46dc48
push ecx
call fcn.0044d4ee
mov ecx, dword [esp + 0xa8]
add esp, 8
test eax, eax
jne 0x4095a4
or eax, 0xffffffff
jmp 0x4095a6
sub eax, ecx
cmp dword [ecx - 0xc], 0
mov dword [esp + 0x64], eax
jge 0x4095b5
or eax, 0xffffffff
jmp 0x4095d5
push 0x46dc54
push ecx
call fcn.0044d4ee
mov ecx, dword [esp + 0xa8]
add esp, 8
test eax, eax
jne 0x4095d3
or eax, 0xffffffff
jmp 0x4095d5
sub eax, ecx
cmp dword [ecx - 0xc], 0
mov dword [esp + 0x68], eax
jge 0x4095e4
or eax, 0xffffffff
jmp 0x409604
push 0x46dc48
push ecx
call fcn.0044d4ee
mov ecx, dword [esp + 0xa8]
add esp, 8
test eax, eax
jne 0x409602
or eax, 0xffffffff
jmp 0x409604
sub eax, ecx
cmp dword [ecx - 0xc], 0
mov dword [esp + 0x6c], eax
jge 0x409613
or eax, 0xffffffff
jmp 0x409633
push 0x46dc64
push ecx
call fcn.0044d4ee
mov ecx, dword [esp + 0xa8]
add esp, 8
test eax, eax
jne 0x409631
or eax, 0xffffffff
jmp 0x409633
sub eax, ecx
cmp dword [ecx - 0xc], 0
mov dword [esp + 0x70], eax
jge 0x409642
or eax, 0xffffffff
jmp 0x409662
push 0x46dc74
push ecx
call fcn.0044d4ee
mov ecx, dword [esp + 0xa8]
add esp, 8
test eax, eax
jne 0x409660
or eax, 0xffffffff
jmp 0x409662
sub eax, ecx
cmp dword [ecx - 0xc], 0
mov dword [esp + 0x74], eax
jge 0x409671
or eax, 0xffffffff
jmp 0x409691
push 0x46dc88
push ecx
call fcn.0044d4ee
mov ecx, dword [esp + 0xa8]
add esp, 8
test eax, eax
jne 0x40968f
or eax, 0xffffffff
jmp 0x409691
sub eax, ecx
cmp dword [ecx - 0xc], 0
mov dword [esp + 0x78], eax
jge 0x4096a0
or eax, 0xffffffff
jmp 0x4096c0
push 0x46dc94
push ecx
call fcn.0044d4ee
mov ecx, dword [esp + 0xa8]
add esp, 8
test eax, eax
jne 0x4096be
or eax, 0xffffffff
jmp 0x4096c0
sub eax, ecx
mov dword [esp + 0x7c], eax
xor bl, bl
xor eax, eax
cmp dword [esp + eax*4 + 0x3c], 0
jg 0x4096d7
inc eax
cmp eax, 0x10
jle 0x4096c8
jmp 0x4096d9
mov bl, 1
cmp dword [ecx - 0xc], 0x28
jle 0x409778
mov eax, dword [esp + 0x9c]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x20], esp
mov esi, esp
push eax
call fcn.00429de0
add eax, 0x10
mov dword [esi], eax
add esp, 4
mov eax, ebp
call fcn.004046f0
add esp, 4
test al, al
jne 0x409778
cmp bl, 1
jne 0x409778
push 0xef
push ecx
lea eax, [esp + 0xa4]
mov esi, esp
mov edi, 0x203
mov dword [esp + 0x24], esp
call fcn.00403870
mov ecx, edi
mov edx, ebp
call fcn.004062f0
mov eax, dword [esp + 0xac]
add esp, 8
push eax
push 1
push ebp
push ecx
lea eax, [esp + 0xac]
mov esi, esp
mov dword [esp + 0xb4], esp
call fcn.00403870
call fcn.0041df00
add esp, 0x10
lea ecx, [esp + 0xa0]
call fcn.004020d0
jmp 0x40a851
push 0x47e5d8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [sym.imp.USER32.dll_GetForegroundWindow]
call esi
cmp eax, ebp
je 0x4097d2
mov edi, dword [sym.imp.USER32.dll_SetForegroundWindow]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4097a0
push ebp
call edi
push 0
call fcn.0044bf56
add esp, 4
push eax
call fcn.0044bf22
add esp, 4
call fcn.0044bf34
cdq
mov ecx, 0x64
idiv ecx
add edx, 0x12c
push edx
call ebx
call esi
cmp eax, ebp
jne 0x4097a0
mov edx, dword [esp + 0xa4]
mov eax, dword [edx + 0x64]
push 1
push eax
mov eax, dword [esp + 0xa4]
push 0xa7
push ecx
add eax, 0xfffffff0
mov dword [esp + 0xb4], esp
mov edi, esp
push eax
mov esi, 3
call fcn.00429de0
add eax, 0x10
mov ecx, esi
add esp, 4
mov esi, ebp
mov dword [edi], eax
call fcn.004026f0
push 0x47e5d8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0xa0]
call fcn.004020d0
jmp 0x40a851
push ecx
lea eax, [esp + 0xa0]
mov esi, esp
mov dword [esp + 0xa4], esp
call fcn.00403870
mov eax, ebp
call fcn.004046f0
add esp, 4
test al, al
jne 0x4099d5
cmp edi, 0x1f4
jne 0x4099d5
cmp ebx, 0x10d
jne 0x4099d5
push ecx
lea eax, [esp + 0xa0]
mov esi, esp
mov dword [esp + 0xa4], esp
call fcn.00403870
lea ecx, [esp + 0x30]
push ecx
mov eax, ebp
call fcn.00405d80
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x34]
add esp, 8
lea edx, [edi + 0x38]
push edx
push ecx
lea eax, [esp + 0xa4]
mov esi, esp
mov dword [esp + 0xa8], esp
call fcn.00403870
lea ecx, [ebx + 0x133]
mov edx, ebp
call fcn.004062f0
add esp, 8
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0xa4]
push eax
push ecx
lea eax, [esp + 0xa4]
mov esi, esp
mov dword [esp + 0xa8], esp
call fcn.00403870
mov ecx, ebp
call fcn.00408690
add esp, 8
add edi, 0xee
push edi
push ecx
lea eax, [esp + 0xa4]
mov esi, esp
add ebx, 0x6e
mov dword [esp + 0xa8], esp
call fcn.00403870
mov ecx, ebx
mov edx, ebp
call fcn.004062f0
mov ecx, dword [esp + 0xb4]
mov eax, dword [ecx]
inc eax
add esp, 8
mov dword [ecx], eax
xor edi, edi
mov ecx, dword [esp + 0xa4]
push ecx
push ecx
lea eax, [esp + 0xa4]
mov esi, esp
mov dword [esp + 0xa8], esp
call fcn.00403870
mov ecx, ebp
call fcn.00408690
add esp, 4
lea eax, [esp + 0xa0]
mov esi, esp
mov dword [esp + 0xa4], esp
call fcn.00403870
lea edx, [esp + 0x30]
push edx
mov eax, ebp
call fcn.004060f0
add esp, 4
lea eax, [esp + 0xa0]
mov esi, esp
mov dword [esp + 0xa4], esp
call fcn.00403870
mov eax, ebp
call fcn.004046f0
add esp, 4
test al, al
je 0x4099bb
cmp dword [esp + 0x2c], 0x1e2
jne 0x4099bb
cmp dword [esp + 0x30], 0xa7
je 0x40a851
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0xe
jle 0x409934
jmp 0x40a851
push 0x147
push ecx
lea eax, [esp + 0xa4]
mov esi, esp
mov edi, 0x13e
mov dword [esp + 0xac], esp
call fcn.00403870
mov ecx, edi
mov edx, ebp
call fcn.00405370
add esp, 8
jmp 0x40a851
call fcn.0044bf34
call fcn.0044bf34
cdq
mov ecx, 0xa0
idiv ecx
mov eax, 0x50
push ecx
mov dword [esp + 0xa4], esp
mov esi, esp
sub eax, edx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0xa0]
add eax, 0xfffffff0
push eax
call fcn.00429de0
add eax, 0x10
mov dword [esi], eax
add esp, 4
mov esi, ebp
lea edi, [esp + 0x30]
call fcn.004045c0
mov eax, dword [esp + 0xa0]
add eax, 0xfffffff0
mov dword [esp + 0xa4], esp
mov esi, esp
push eax
call fcn.00429de0
add eax, 0x10
mov dword [esi], eax
add esp, 4
mov eax, ebp
call fcn.00403f70
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0xa0]
add eax, 0xfffffff0
xor ebx, ebx
mov dword [esp + 0x24], esp
mov esi, esp
push eax
mov dword [esp + 0xa8], ebx
call fcn.00429de0
add eax, 0x10
mov dword [esi], eax
add esp, 4
mov esi, ebp
lea edi, [esp + 0x38]
call fcn.004045c0
mov eax, dword [esp + 0xa0]
add esp, 4
push 0x7a
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x28], esp
mov esi, esp
push eax
call fcn.00429de0
add eax, 0x10
mov dword [esi], eax
add esp, 4
mov esi, ebp
call fcn.00405540
mov eax, dword [esp + 0x1c]
add eax, 0xfffffbed
cmp eax, 0x68
ja case.0x409af2.1044
movzx edx, byte [eax + 0x40a8dc]
jmp dword [edx*4 + 0x40a89c]
cmp dword [esp + 0x34], 0x1b
jle 0x409b31
mov eax, dword [esp + 0xa4]
push 0xe
push 0x18
push eax
push ecx
lea eax, [esp + 0xac]
mov esi, esp
mov dword [esp + 0xb4], esp
call fcn.00403870
mov ecx, ebp
call fcn.00407a80
add esp, 0x10
jmp case.0x409af2.1044
push 0x7a
push ecx
lea eax, [esp + 0xa4]
mov esi, esp
mov dword [esp + 0xac], esp
call fcn.00403870
mov esi, ebp
call fcn.00405540
push 0xf
push ecx
lea eax, [esp + 0xa4]
mov esi, esp
mov dword [esp + 0xac], esp
call fcn.00403870
mov edi, ebp
call fcn.004054b0
add esp, 8
push 0x13
push ecx
lea eax, [esp + 0xa4]
mov esi, esp
mov edi, 0x12
mov dword [esp + 0xac], esp
call fcn.00403870
mov ecx, edi
mov esi, ebp
call fcn.00407980
add esp, 8
xor edi, edi
lea ecx, [ecx]
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
push ecx
lea eax, [esp + 0xa0]
mov esi, esp
mov dword [esp + 0xa8], esp
call fcn.00403870
lea ecx, [esp + 0x38]
push ecx
mov eax, ebp
call fcn.004060f0
add esp, 4
lea eax, [esp + 0xa0]
mov esi, esp
mov dword [esp + 0xa8], esp
call fcn.00403870
mov eax, ebp
call fcn.004046f0
add esp, 4
test al, al
jne 0x409c0b
cmp dword [esp + 0x24], 0x1f4
jne 0x409c0b
cmp dword [esp + 0x28], 0x10d
je case.0x409af2.1044
inc edi
cmp edi, 8
jle 0x409ba0
jmp case.0x409af2.1044
push 0x7a
push ecx
lea eax, [esp + 0xa4]
mov esi, esp
mov dword [esp + 0xac], esp
call fcn.00403870
mov esi, ebp
call fcn.00405540
push 0xf
push ecx
lea eax, [esp + 0xa4]
mov esi, esp
mov dword [esp + 0xac], esp
call fcn.00403870
mov edi, ebp
call fcn.004054b0
add esp, 8
push 0x23
push ecx
lea eax, [esp + 0xa4]
mov esi, esp
mov edi, 0x17
mov dword [esp + 0xac], esp
call fcn.00403870
mov ecx, edi
mov esi, ebp
call fcn.00407980
add esp, 8
xor edi, edi
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
push ecx
lea eax, [esp + 0xa0]
mov esi, esp
mov dword [esp + 0xa8], esp
call fcn.00403870
lea edx, [esp + 0x38]
push edx
mov eax, ebp
call fcn.004060f0
add esp, 4
lea eax, [esp + 0xa0]
mov esi, esp
mov dword [esp + 0xa8], esp
call fcn.00403870
mov eax, ebp
call fcn.004046f0
add esp, 4
test al, al
jne 0x409ced
cmp dword [esp + 0x24], 0x1f4
jne 0x409ced
cmp dword [esp + 0x28], 0x10d
je case.0x409af2.1044
inc edi
cmp edi, 8
jle 0x409c82
jmp case.0x409af2.1044
push 0x7a
push ecx
lea eax, [esp + 0xa4]
mov esi, esp
mov dword [esp + 0xac], esp
call fcn.00403870
mov esi, ebp
call fcn.00405540
push 0xf
push ecx
lea eax, [esp + 0xa4]
mov esi, esp
mov dword [esp + 0xac], esp
call fcn.00403870
mov edi, ebp
call fcn.004054b0
add esp, 8
mov edi, 0x11
push edi
push ecx
lea eax, [esp + 0xa4]
mov esi, esp
mov dword [esp + 0xac], esp
call fcn.00403870
mov ecx, edi
mov esi, ebp
call fcn.00407980
add esp, 8
xor edi, edi
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
push ecx
lea eax, [esp + 0xa0]
mov esi, esp
mov dword [esp + 0xa8], esp
call fcn.00403870
lea eax, [esp + 0x38]
push eax
mov eax, ebp
call fcn.004060f0
add esp, 4
lea eax, [esp + 0xa0]
mov esi, esp
mov dword [esp + 0xa8], esp
call fcn.00403870
mov eax, ebp
call fcn.004046f0
add esp, 4
test al, al
jne 0x409dce
cmp dword [esp + 0x24], 0x1f4
jne 0x409dce
cmp dword [esp + 0x28], 0x10d
je case.0x409af2.1044
inc edi
cmp edi, 8
jle 0x409d63
jmp case.0x409af2.1044
push 0x7a
push ecx
lea eax, [esp + 0xa4]
mov esi, esp
mov dword [esp + 0xac], esp
call fcn.00403870
mov esi, ebp
call fcn.00405540
push 0xf
push ecx
lea eax, [esp + 0xa4]
mov esi, esp
mov dword [esp + 0xac], esp
call fcn.00403870
mov edi, ebp
call fcn.004054b0
add esp, 8
push 0x16
push ecx
lea eax, [esp + 0xa4]
mov esi, esp
mov edi, 0xf
mov dword [esp + 0xac], esp
call fcn.00403870
mov ecx, edi
mov esi, ebp
call fcn.00407980
add esp, 8
xor edi, edi
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
push ecx
lea eax, [esp + 0xa0]
mov esi, esp
mov dword [esp + 0xa8], esp
call fcn.00403870
lea ecx, [esp + 0x38]
push ecx
mov eax, ebp
call fcn.004060f0
add esp, 4
lea eax, [esp + 0xa0]
mov esi, esp
mov dword [esp + 0xa8], esp
call fcn.00403870
mov eax, ebp
call fcn.004046f0
add esp, 4
test al, al
jne 0x409eb0
cmp dword [esp + 0x24], 0x1f4
jne 0x409eb0
cmp dword [esp + 0x28], 0x10d
je case.0x409af2.1044
inc edi
cmp edi, 8
jle 0x409e45
jmp case.0x409af2.1044
push 0x7a
push ecx
lea eax, [esp + 0xa4]
mov esi, esp
mov dword [esp + 0xac], esp
call fcn.00403870
mov esi, ebp
call fcn.00405540
push 0xf
push ecx
lea eax, [esp + 0xa4]
mov esi, esp
mov dword [esp + 0xac], esp
call fcn.00403870
mov edi, ebp
call fcn.004054b0
add esp, 8
push 0xc
push ecx
lea eax, [esp + 0xa4]
mov esi, esp
mov edi, 0xe
mov dword [esp + 0xac], esp
call fcn.00403870
mov ecx, edi
mov esi, ebp
call fcn.00407980
add esp, 8
xor edi, edi
jmp 0x409f30
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
push ecx
lea eax, [esp + 0xa0]
mov esi, esp
mov dword [esp + 0xa8], esp
call fcn.00403870
lea edx, [esp + 0x38]
push edx
mov eax, ebp
call fcn.004060f0
add esp, 4
lea eax, [esp + 0xa0]
mov esi, esp
mov dword [esp + 0xa8], esp
call fcn.00403870
mov eax, ebp
call fcn.004046f0
add esp, 4
test al, al
jne 0x409f9b
cmp dword [esp + 0x24], 0x1f4
jne 0x409f9b
cmp dword [esp + 0x28], 0x10d
je case.0x409af2.1044
inc edi
cmp edi, 8
jle 0x409f30
jmp case.0x409af2.1044
mov eax, dword [esp + 0x2c]
cmp eax, 0xf
jge 0x409fbd
mov ebx, 0xf
sub ebx, eax
lea ebx, [ebx + ebx*4]
add ebx, ebx
add ebx, ebx
mov ecx, dword [esp + 0x30]
cmp ecx, 0xd
jge 0x409fdb
mov edx, 0xc
sub edx, ecx
lea edx, [edx + edx*4]
add edx, edx
add edx, edx
mov dword [esp + 0xa0], edx
lea eax, [eax + eax*4]
add eax, eax
add eax, eax
mov edx, eax
lea ecx, [ecx + ecx*4 - 0x2d]
add ecx, ecx
mov eax, 0x339
sub eax, edx
mov edx, dword [esp + 0xa0]
add ecx, ecx
add ecx, edx
add ecx, dword [esp + 0x18]
sub eax, ebx
jmp 0x40a71c
push 0x7a
push ecx
lea eax, [esp + 0xa4]
mov esi, esp
mov dword [esp + 0xac], esp
call fcn.00403870
mov esi, ebp
call fcn.00405540
push 0xf
push ecx
lea eax, [esp + 0xa4]
mov esi, esp
mov dword [esp + 0xac], esp
call fcn.00403870
mov edi, ebp
call fcn.004054b0
add esp, 8
push 9
push ecx
lea eax, [esp + 0xa4]
mov esi, esp
mov edi, 0x24
mov dword [esp + 0xac], esp
call fcn.00403870
mov ecx, edi
mov esi, ebp
call fcn.00407980
add esp, 8
xor edi, edi
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
push ecx
lea eax, [esp + 0xa0]
mov esi, esp
mov dword [esp + 0xa8], esp
call fcn.00403870
lea eax, [esp + 0x38]
push eax
mov eax, ebp
call fcn.004060f0
add esp, 4
lea eax, [esp + 0xa0]
mov esi, esp
mov dword [esp + 0xa8], esp
call fcn.00403870
mov eax, ebp
call fcn.004046f0
add esp, 4
test al, al
jne 0x40a0de
cmp dword [esp + 0x24], 0x1f4
jne 0x40a0de
cmp dword [esp + 0x28], 0x10d
je case.0x409af2.1044
inc edi
cmp edi, 8
jle 0x40a073
jmp case.0x409af2.1044
push 0x7a
push ecx
lea eax, [esp + 0xa4]
mov esi, esp
mov dword [esp + 0xac], esp
call fcn.00403870
mov esi, ebp
call fcn.00405540
push 0xf
push ecx
lea eax, [esp + 0xa4]
mov esi, esp
mov dword [esp + 0xac], esp
call fcn.00403870
mov edi, ebp
call fcn.004054b0
add esp, 8
push 0x18
push ecx
lea eax, [esp + 0xa4]
mov esi, esp
mov edi, 0xf
mov dword [esp + 0xac], esp
call fcn.00403870
mov ecx, edi
mov esi, ebp
call fcn.00407980
add esp, 8
xor edi, edi
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
push ecx
lea eax, [esp + 0xa0]
mov esi, esp
mov dword [esp + 0xa8], esp
call fcn.00403870
lea ecx, [esp + 0x38]
push ecx
mov eax, ebp
call fcn.004060f0
add esp, 4
lea eax, [esp + 0xa0]
mov esi, esp
mov dword [esp + 0xa8], esp
call fcn.00403870
mov eax, ebp
call fcn.004046f0
add esp, 4
test al, al
jne 0x40a1c0
cmp dword [esp + 0x24], 0x1f4
jne 0x40a1c0
cmp dword [esp + 0x28], 0x10d
je case.0x409af2.1044
inc edi
cmp edi, 8
jle 0x40a155
jmp case.0x409af2.1044
cmp dword [esp + 0xa8], 1
jne 0x40a234
mov eax, dword [esp + 0x2c]
cmp eax, 0xf
jge 0x40a1ec
mov ebx, 0xf
sub ebx, eax
lea ebx, [ebx + ebx*4]
add ebx, ebx
add ebx, ebx
mov ecx, dword [esp + 0x30]
cmp ecx, 0xd
jge 0x40a20a
mov edx, 0xc
sub edx, ecx
lea edx, [edx + edx*4]
add edx, edx
add edx, edx
mov dword [esp + 0xa0], edx
lea edx, [eax + eax*4]
add edx, edx
lea ecx, [ecx + ecx*4 - 0x1e]
add edx, edx
add ecx, ecx
mov eax, 0x2d5
sub eax, edx
mov edx, dword [esp + 0xa0]
add ecx, ecx
add ecx, edx
add ecx, dword [esp + 0x18]
sub eax, ebx
jmp 0x40a71c
mov eax, dword [esp + 0xa4]
push eax
push ecx
lea eax, [esp + 0xa4]
mov esi, esp
mov dword [esp + 0xac], esp
call fcn.00403870
mov ecx, ebp
call fcn.00408690
add esp, 8
push 0x7a
push ecx
lea eax, [esp + 0xa4]
mov esi, esp
mov dword [esp + 0xac], esp
call fcn.00403870
mov esi, ebp
call fcn.00405540
push 0xf
push ecx
lea eax, [esp + 0xa4]
mov esi, esp
mov dword [esp + 0xac], esp
call fcn.00403870
mov edi, ebp
call fcn.004054b0
add esp, 8
push 0x19
push ecx
lea eax, [esp + 0xa4]
mov esi, esp
mov edi, 0x2d
mov dword [esp + 0xac], esp
call fcn.00403870
mov ecx, edi
mov esi, ebp
call fcn.00407980
add esp, 8
xor edi, edi
jmp 0x40a2d0
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
push ecx
lea eax, [esp + 0xa0]
mov esi, esp
mov dword [esp + 0xa8], esp
call fcn.00403870
lea ecx, [esp + 0x38]
push ecx
mov eax, ebp
call fcn.004060f0
add esp, 4
lea eax, [esp + 0xa0]
mov esi, esp
mov dword [esp + 0xa8], esp
call fcn.00403870
mov eax, ebp
call fcn.004046f0
add esp, 4
test al, al
jne 0x40a33b
cmp dword [esp + 0x24], 0x1f4
jne 0x40a33b
cmp dword [esp + 0x28], 0x10d
je case.0x409af2.1044
inc edi
cmp edi, 8
jle 0x40a2d0
jmp case.0x409af2.1044
mov edx, dword [esp + 0xa4]
push edx
push ecx
lea eax, [esp + 0xa4]
mov esi, esp
mov dword [esp + 0xac], esp
call fcn.00403870
mov ecx, ebp
call fcn.00408690
add esp, 8
push 0xf
push ecx
lea eax, [esp + 0xa4]
mov esi, esp
mov dword [esp + 0xac], esp
call fcn.00403870
mov edi, ebp
call fcn.004054b0
add esp, 8
push 0x15
push ecx
lea eax, [esp + 0xa4]
mov esi, esp
mov edi, 0x12
mov dword [esp + 0xac], esp
call fcn.00403870
mov ecx, edi
mov esi, ebp
call fcn.00407980
add esp, 8
xor edi, edi
jmp 0x40a3c0
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
push ecx
lea eax, [esp + 0xa0]
mov esi, esp
mov dword [esp + 0xa8], esp
call fcn.00403870
lea eax, [esp + 0x38]
push eax
mov eax, ebp
call fcn.004060f0
add esp, 4
lea eax, [esp + 0xa0]
mov esi, esp
mov dword [esp + 0xa8], esp
call fcn.00403870
mov eax, ebp
call fcn.004046f0
add esp, 4
test al, al
jne 0x40a42b
cmp dword [esp + 0x24], 0x1f4
jne 0x40a42b
cmp dword [esp + 0x28], 0x10d
je case.0x409af2.1044
inc edi
cmp edi, 8
jle 0x40a3c0
jmp case.0x409af2.1044
mov eax, dword [esp + 0x2c]
cmp eax, 0xf
jge 0x40a44d
mov ebx, 0xf
sub ebx, eax
lea ebx, [ebx + ebx*4]
add ebx, ebx
add ebx, ebx
mov ecx, dword [esp + 0x30]
cmp ecx, 0xd
jge 0x40a46b
mov edx, 0xc
sub edx, ecx
lea edx, [edx + edx*4]
add edx, edx
add edx, edx
mov dword [esp + 0xa0], edx
lea edx, [eax + eax*4]
add edx, edx
lea ecx, [ecx + ecx*4 - 0x1e]
add edx, edx
add ecx, ecx
mov eax, 0x339
sub eax, edx
mov edx, dword [esp + 0xa0]
add ecx, ecx
add ecx, edx
add ecx, dword [esp + 0x18]
sub eax, ebx
jmp 0x40a71c
mov eax, dword [esp + 0x2c]
cmp eax, 0xf
jge 0x40a4ac
mov ebx, 0xf
sub ebx, eax
lea ebx, [ebx + ebx*4]
add ebx, ebx
add ebx, ebx
mov ecx, dword [esp + 0x30]
cmp ecx, 0xd
jge 0x40a4ca
mov edx, 0xc
sub edx, ecx
lea edx, [edx + edx*4]
add edx, edx
add edx, edx
mov dword [esp + 0xa0], edx
lea eax, [eax + eax*4]
add eax, eax
add eax, eax
mov edx, eax
lea ecx, [ecx + ecx*4 - 0xf]
add ecx, ecx
mov eax, 0x2fd
sub eax, edx
mov edx, dword [esp + 0xa0]
add ecx, ecx
add ecx, edx
add ecx, dword [esp + 0x18]
sub eax, ebx
jmp 0x40a71c
push ecx
lea eax, [esp + 0xa0]
mov esi, esp
mov dword [esp + 0xa8], esp
call fcn.00403870
lea eax, [esp + 0x38]
push eax
mov eax, ebp
call fcn.00405d80
add esp, 8
push 0x7a
push ecx
lea eax, [esp + 0xa4]
mov esi, esp
mov dword [esp + 0xac], esp
call fcn.00403870
mov esi, ebp
call fcn.00405540
push 0xf
push ecx
lea eax, [esp + 0xa4]
mov esi, esp
mov dword [esp + 0xac], esp
call fcn.00403870
mov edi, ebp
call fcn.004054b0
add esp, 8
push 0x19
push ecx
lea eax, [esp + 0xa4]
mov esi, esp
mov edi, 0xe
mov dword [esp + 0xac], esp
call fcn.00403870
mov ecx, edi
mov esi, ebp
call fcn.00407980
add esp, 8
xor edi, edi
jmp 0x40a590
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
push ecx
lea eax, [esp + 0xa0]
mov esi, esp
mov dword [esp + 0xa8], esp
call fcn.00403870
lea ecx, [esp + 0x38]
push ecx
mov eax, ebp
call fcn.004060f0
add esp, 4
lea eax, [esp + 0xa0]
mov esi, esp
mov dword [esp + 0xa8], esp
call fcn.00403870
mov eax, ebp
call fcn.004046f0
add esp, 4
test al, al
jne 0x40a5fb
cmp dword [esp + 0x24], 0x1f4
jne 0x40a5fb
cmp dword [esp + 0x28], 0x10d
je case.0x409af2.1044
inc edi
cmp edi, 8
jle 0x40a590
jmp case.0x409af2.1044
push 0x7a
push ecx
lea eax, [esp + 0xa4]
mov esi, esp
mov dword [esp + 0xac], esp
call fcn.00403870
mov esi, ebp
call fcn.00405540
push 0xf
push ecx
lea eax, [esp + 0xa4]
mov esi, esp
mov dword [esp + 0xac], esp
call fcn.00403870
mov edi, ebp
call fcn.004054b0
add esp, 8
push 0x2e
push ecx
lea eax, [esp + 0xa4]
mov esi, esp
mov edi, 0x1e
mov dword [esp + 0xac], esp
call fcn.00403870
mov ecx, edi
mov esi, ebp
call fcn.00407980
add esp, 8
xor edi, edi
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
push ecx
lea eax, [esp + 0xa0]
mov esi, esp
mov dword [esp + 0xa8], esp
call fcn.00403870
lea edx, [esp + 0x38]
push edx
mov eax, ebp
call fcn.004060f0
add esp, 4
lea eax, [esp + 0xa0]
mov esi, esp
mov dword [esp + 0xa8], esp
call fcn.00403870
mov eax, ebp
call fcn.004046f0
add esp, 4
test al, al
jne 0x40a6dd
cmp dword [esp + 0x24], 0x1f4
jne 0x40a6dd
cmp dword [esp + 0x28], 0x10d
je case.0x409af2.1044
inc edi
cmp edi, 8
jle 0x40a672
jmp case.0x409af2.1044
cmp dword [esp + 0xa8], 1
jne 0x40a76b
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
lea eax, [eax + eax*4]
add eax, eax
add eax, eax
mov ecx, eax
mov eax, 0x591
sub eax, ecx
mov ecx, dword [esp + 0x30]
lea ecx, [ecx + ecx*4 - 0x46]
add ecx, ecx
add ecx, ecx
add ecx, edx
push ecx
push eax
push ebp
push ecx
lea eax, [esp + 0xac]
mov esi, esp
mov dword [esp + 0xb4], esp
call fcn.00403870
call fcn.00404ee0
add esp, 0x10
push 0xf
push ecx
lea eax, [esp + 0xa4]
mov esi, esp
mov dword [esp + 0xac], esp
call fcn.00403870
mov edi, ebp
call fcn.004054b0
add esp, 8
mov esi, ebp
call fcn.0042bd30
jmp case.0x409af2.1044
push 0x7a
push ecx
lea eax, [esp + 0xa4]
mov esi, esp
mov dword [esp + 0xac], esp
call fcn.00403870
mov esi, ebp
call fcn.00405540
push 0xf
push ecx
lea eax, [esp + 0xa4]
mov esi, esp
mov dword [esp + 0xac], esp
call fcn.00403870
mov edi, ebp
call fcn.004054b0
add esp, 8
push 0x1e
push ecx
lea eax, [esp + 0xa4]
mov esi, esp
mov edi, 0x25
mov dword [esp + 0xac], esp
call fcn.00403870
mov ecx, edi
mov esi, ebp
call fcn.00407980
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 8
xor edi, edi
lea ecx, [ecx]
push 0x12c
call ebx
push ecx
lea eax, [esp + 0xa0]
mov esi, esp
mov dword [esp + 0xa8], esp
call fcn.00403870
lea eax, [esp + 0x38]
push eax
mov eax, ebp
call fcn.004060f0
add esp, 4
lea eax, [esp + 0xa0]
mov esi, esp
mov dword [esp + 0xa8], esp
call fcn.00403870
mov eax, ebp
call fcn.004046f0
add esp, 4
test al, al
jne 0x40a843
cmp dword [esp + 0x24], 0x1f4
jne 0x40a843
cmp dword [esp + 0x28], 0x10d
je case.0x409af2.1044
inc edi
cmp edi, 8
jle 0x40a7e0
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [esp + 0x94], 0xffffffff
mov eax, dword [esp + 0x9c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a87f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x8c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84
ret