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

Disassembly:
push 0xffffffffffffffff
push 0x4654c3
mov eax, dword fs:[0]
push eax
sub esp, 0xec
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47a770]
xor eax, esp
push eax
lea eax, [esp + 0x100]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x114]
mov ecx, dword [esp + 0x118]
mov edx, dword [esp + 0x11c]
xor eax, eax
mov dword [esp + 0x108], eax
push eax
mov dword [ecx + 0x60], edx
mov dword [esp + 0x34], eax
call fcn.0044bf56
add esp, 4
push eax
call fcn.0044bf22
add esp, 4
call fcn.0044bf34
cdq
idiv dword [0x480c2c]
mov dword [esp + 0x8c], edx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ecx]
mov eax, dword [esp + 0x118]
mov esi, dword [esp + 0x110]
push eax
push ecx
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add esi, 0xfffffff0
mov dword [esp + 0x1c], esp
mov dword [esp + 0x20], esp
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x41475f
cmp eax, dword [esi]
jne 0x41475f
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x414793
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x415c89
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
inc eax
push eax
add esi, 0x10
push esi
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.0044b46f
add esp, 0x10
mov edx, dword [esp + 0x20]
add edi, 0x10
mov ecx, ebp
mov dword [edx], edi
call fcn.00408690
mov esi, dword [esp + 0x118]
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
add esi, 0xfffffff0
add esp, 4
mov dword [esp + 0x18], esp
mov dword [esp + 0x1c], esp
call edx
cmp dword [esi + 0xc], 0
lea edx, [esi + 0xc]
jl 0x4147dc
cmp eax, dword [esi]
jne 0x4147dc
mov edi, esi
mov eax, 1
lock xadd dword [edx], eax
jmp 0x414810
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x415c89
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
inc eax
push eax
add esi, 0x10
push esi
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.0044b46f
add esp, 0x10
mov edx, dword [esp + 0x1c]
add edi, 0x10
mov dword [edx], edi
mov edi, ebp
call fcn.00407850
mov eax, dword [0x47baf4]
mov esi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
add esp, 4
lea ecx, [esp + 0x84]
push ecx
push ebp
mov dword [esp + 0x20], eax
call esi
mov edx, dword [esp + 0x84]
push edx
push 0
push 0x1fffff
mov dword [esp + 0x44], 0
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edx, dword [esp + 0x18]
mov edi, eax
lea eax, [esp + 0xf0]
push eax
push 4
lea ecx, [esp + 0x40]
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x47baf8]
lea ecx, [esp + 0x88]
push ecx
push ebp
mov dword [esp + 0x20], eax
call esi
mov edx, dword [esp + 0x88]
push edx
push 0
push 0x1fffff
mov dword [esp + 0x48], 0
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edx, dword [esp + 0x18]
mov edi, eax
lea eax, [esp + 0xe0]
push eax
push 4
lea ecx, [esp + 0x44]
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x38], 0
jne 0x414720
cmp dword [esp + 0x3c], 0x457
jne 0x414720
mov eax, dword [0x480c28]
push eax
call ebx
push 0
call fcn.0044bf56
add esp, 4
push eax
call fcn.0044bf22
add esp, 4
call fcn.0044bf34
mov ecx, dword [0x480c2c]
cdq
idiv ecx
mov eax, ecx
mov edi, edx
cdq
sub eax, edx
sar eax, 1
sub eax, edi
mov dword [esp + 0x1c], eax
call fcn.0044bf34
mov ecx, dword [0x480c2c]
cdq
idiv ecx
mov eax, ecx
mov edi, edx
cdq
sub eax, edx
sar eax, 1
sub eax, edi
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x110]
add eax, 0xfffffff0
push eax
call fcn.00429de0
mov ecx, dword [0x47bb0c]
add esp, 4
lea edx, [esp + 0xa0]
push edx
push ebp
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
call esi
mov eax, dword [esp + 0xa0]
push eax
push 0
push 0x1fffff
mov dword [esp + 0x64], 0
call dword [sym.imp.KERNEL32.dll_OpenProcess]
lea ecx, [esp + 0xe4]
push ecx
push 4
mov edi, eax
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x60]
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x58]
lea edx, [esp + 0x80]
push edx
push ebp
mov dword [esp + 0x20], ecx
call esi
mov eax, dword [esp + 0x80]
push eax
push 0
push 0x1fffff
mov dword [esp + 0x50], 0
call dword [sym.imp.KERNEL32.dll_OpenProcess]
lea ecx, [esp + 0xe8]
push ecx
mov edi, eax
mov eax, dword [esp + 0x1c]
push 4
lea edx, [esp + 0x4c]
push edx
add eax, 0x1ec
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], ecx
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x414a2c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x110]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x18], esp
mov esi, esp
push eax
call fcn.00429de0
add eax, 0x10
mov dword [esi], eax
add esp, 4
mov esi, ebp
lea edi, [esp + 0x2c]
call fcn.004045c0
mov edi, dword [esp + 0x2c]
add esp, 4
cmp dword [esp + 0x50], edi
jne 0x414af4
mov esi, dword [esp + 0x1c]
add esi, 0x13e
cmp dword [esp + 0x18], 0x456
jne 0x414ab9
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x110]
add ecx, 0x133
push ecx
push ecx
mov dword [esp + 0x1c], esp
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
push eax
call fcn.00429de0
mov edx, dword [esp + 0x20]
add eax, 0x10
mov dword [edx], eax
add esp, 4
mov ecx, esi
mov edx, ebp
call fcn.004062f0
add esp, 8
jmp 0x414b09
mov eax, dword [esp + 0x20]
add eax, 0xe3
push eax
mov eax, dword [esp + 0x114]
push ecx
mov dword [esp + 0x1c], esp
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
push eax
call fcn.00429de0
mov ecx, dword [esp + 0x20]
add eax, 0x10
mov dword [ecx], eax
add esp, 4
mov ecx, esi
mov edx, ebp
call fcn.004062f0
add esp, 8
mov eax, dword [esp + 0x18]
cmp eax, 0x478
jg 0x415826
je 0x4156e6
mov eax, dword [esp + 0x18]
sub eax, 0x3e9
je 0x41529c
sub eax, 0x17
je 0x414dd3
sub eax, 0x56
jne 0x414720
lea edx, [edi - 3]
cmp edx, 0x16
ja 0x414c45
mov eax, dword [esp + 0x2c]
add eax, 0xffffffba
mov dword [esp + 0x14], eax
cmp eax, 0x10
ja 0x414c45
xor esi, esi
mov dword [esp + 0x18], esi
call fcn.0044bf34
cmp edi, 0xf
jge 0x414b6c
mov eax, 0xf
sub eax, edi
lea eax, [eax + eax*4]
add eax, eax
add eax, eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x2c]
cmp eax, 0xd
jge 0x414b83
mov esi, 0xc
sub esi, eax
lea esi, [esi + esi*4]
add esi, esi
add esi, esi
lea eax, [edi + edi*4]
add eax, eax
add eax, eax
mov ecx, eax
mov eax, 0x159
sub eax, ecx
mov ecx, dword [esp + 0x14]
sub eax, dword [esp + 0x18]
lea edx, [ecx + ecx*4]
lea ecx, [esi + edx*4]
mov edx, dword [esp + 0x20]
add ecx, edx
push ecx
mov ecx, dword [esp + 0x20]
push ecx
lea edi, [eax + ecx]
lea eax, [esp + 0x118]
mov esi, esp
mov dword [esp + 0x1c], esp
call fcn.00403870
mov ecx, edi
mov edx, ebp
call fcn.004062f0
add esp, 8
push 0x578
call ebx
xor edi, edi
push 0x12c
call ebx
push ecx
lea eax, [esp + 0x114]
mov esi, esp
mov dword [esp + 0x18], esp
call fcn.00403870
mov eax, ebp
call fcn.00403f70
add esp, 4
cmp eax, 0x495
je 0x414c39
cmp edi, 0xf
jne 0x414c2e
push 0xf0
push ecx
lea eax, [esp + 0x118]
mov esi, esp
mov dword [esp + 0x1c], esp
call fcn.00403870
mov ecx, 0x205
mov edx, ebp
call fcn.004062f0
add esp, 8
inc edi
cmp edi, 0xf
jle 0x414bd7
jmp 0x414720
push 0x3e8
call ebx
jmp 0x414720
mov eax, dword [esp + 0x110]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x18], esp
mov esi, esp
push eax
call fcn.00429de0
add eax, 0x10
lea edx, [esp + 0xb0]
add esp, 4
mov dword [esi], eax
push edx
mov eax, ebp
call fcn.004060f0
mov eax, dword [esp + 0x118]
add esp, 4
add eax, 0xfffffff0
mov dword [esp + 0x18], 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 0x415c59
cmp dword [esp + 0xa8], 0x195
jne 0x415c59
cmp dword [esp + 0xac], 0x1a3
jne 0x415c59
push ecx
lea eax, [esp + 0x114]
mov esi, esp
mov dword [esp + 0x18], esp
call fcn.00403870
lea eax, [esp + 0x70]
push eax
mov eax, ebp
call fcn.00405d80
add esp, 8
cmp dword [esp + 0x6c], 0
jne 0x414cf9
mov eax, dword [esp + 0x70]
test eax, eax
je 0x414d2f
push 0
push 0
push ecx
lea eax, [esp + 0x11c]
mov esi, esp
mov dword [esp + 0x20], esp
call fcn.00403870
mov esi, ebp
call fcn.00405f00
add esp, 0xc
push 0x12c
call ebx
xor eax, eax
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], eax
add eax, 0x178
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fsub qword [0x46f288]
call fcn.00450dd0
mov edi, eax
call fcn.0044bf34
cdq
mov ecx, 0xa
idiv ecx
mov esi, 5
sub esi, edx
call fcn.0044bf34
cdq
mov ecx, 0xa
idiv ecx
mov eax, 5
sub eax, edx
add eax, edi
lea edi, [esi + 0xb5]
push eax
push ecx
lea eax, [esp + 0x118]
mov esi, esp
mov dword [esp + 0x1c], esp
call fcn.00403870
mov ecx, edi
mov edx, ebp
call fcn.004062f0
add esp, 8
push 0x12c
call ebx
push 0x18
push ecx
lea eax, [esp + 0x118]
mov esi, esp
mov dword [esp + 0x1c], esp
call fcn.00403870
mov edi, ebp
call fcn.004054b0
add esp, 8
push 0x12c
call ebx
mov dword [esp + 0x50], 0
jmp 0x414720
mov eax, dword [0x480c2c]
cdq
sub eax, edx
sar eax, 1
cmp dword [esp + 0x8c], eax
jle 0x415033
cmp edi, 9
jle 0x414e9d
cmp dword [esp + 0x2c], 0xa
jle 0x414e9d
xor esi, esi
mov dword [esp + 0x14], esi
call fcn.0044bf34
cmp edi, 0xf
jge 0x414e1c
mov eax, 0xf
sub eax, edi
lea esi, [eax + eax*4]
add esi, esi
add esi, esi
mov ecx, dword [esp + 0x2c]
cmp ecx, 0xd
jge 0x414e35
mov eax, 0xc
sub eax, ecx
lea eax, [eax + eax*4]
add eax, eax
add eax, eax
jmp 0x414e39
mov eax, dword [esp + 0x14]
cmp edi, 0x21
jle 0x414e4c
mov esi, 0x21
sub esi, edi
lea esi, [esi + esi*4]
add esi, esi
add esi, esi
lea edx, [edi + edi*4]
add edx, edx
add edx, edx
lea ecx, [ecx + ecx*4 + 0x23]
mov edi, 0x34d
sub edi, edx
push 0x5a
push ecx
lea edx, [eax + ecx*4]
sub edi, esi
lea eax, [esp + 0x118]
mov esi, esp
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], esp
call fcn.00403870
mov esi, ebp
call fcn.00405540
push 0x32
call ebx
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
add ecx, eax
push ecx
add edi, edx
jmp 0x4150e7
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
add eax, 0x1ae
push eax
push ecx
lea eax, [esp + 0x118]
mov esi, esp
add edi, 0xd6
mov dword [esp + 0x1c], esp
call fcn.00403870
mov ecx, edi
mov edx, ebp
call fcn.004062f0
add esp, 8
xor edi, edi
push 0xc8
call ebx
mov eax, dword [esp + 0x110]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x18], 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
add esp, 4
cmp eax, 0x3e9
je 0x414f0f
inc edi
cmp edi, 7
jle 0x414ed2
mov dword [esp + 0x18], 0
push 0xc8
call ebx
mov eax, dword [esp + 0x110]
add eax, 0xfffffff0
push eax
call fcn.00429de0
mov ecx, dword [0x47bb0c]
add esp, 4
lea edx, [esp + 0x9c]
push edx
mov esi, eax
push ebp
add esi, 0x10
mov dword [esp + 0x1c], ecx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [esp + 0x9c]
push eax
push 0
push 0x1fffff
mov dword [esp + 0x40], 0
call dword [sym.imp.KERNEL32.dll_OpenProcess]
lea ecx, [esp + 0xf8]
push ecx
push 4
mov edi, eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x3c]
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0xa4]
push edx
push ebp
mov dword [esp + 0x1c], ecx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [esp + 0xa4]
push eax
push 0
push 0x1fffff
mov dword [esp + 0x58], 0
call dword [sym.imp.KERNEL32.dll_OpenProcess]
lea ecx, [esp + 0xec]
push ecx
mov edi, eax
mov eax, dword [esp + 0x18]
push 4
lea edx, [esp + 0x54]
push edx
add eax, 0x1ec
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x4c]
add esi, 0xfffffff0
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41500d
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
cmp edi, 0x3e9
je 0x415027
mov eax, dword [esp + 0x18]
inc eax
cmp eax, 7
mov dword [esp + 0x18], eax
jle 0x414f17
push 0xc8
call ebx
jmp 0x414720
cmp edi, 0xd
jle 0x415112
cmp dword [esp + 0x2c], 0xb
jge 0x415112
xor esi, esi
mov dword [esp + 0x18], esi
call fcn.0044bf34
cmp edi, 0xf
jge 0x415065
mov eax, 0xf
sub eax, edi
lea esi, [eax + eax*4]
add esi, esi
add esi, esi
mov ecx, dword [esp + 0x2c]
cmp ecx, 0xd
jge 0x415080
mov eax, 0xc
sub eax, ecx
lea eax, [eax + eax*4]
add eax, eax
add eax, eax
mov dword [esp + 0x18], eax
cmp edi, 0x21
jle 0x415093
mov eax, 0x21
sub eax, edi
lea esi, [eax + eax*4]
add esi, esi
add esi, esi
mov edx, dword [esp + 0x18]
lea eax, [edi + edi*4]
add eax, eax
add eax, eax
mov edi, 0x20d
sub edi, eax
mov eax, dword [esp + 0x2c]
lea ecx, [eax + eax*4 - 0xa]
lea eax, [edx + ecx*4]
push 0x5a
push ecx
mov dword [esp + 0x20], eax
sub edi, esi
lea eax, [esp + 0x118]
mov esi, esp
mov dword [esp + 0x1c], esp
call fcn.00403870
mov esi, ebp
call fcn.00405540
push 0x32
call ebx
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
add edx, ecx
push edx
add edi, eax
push ecx
lea eax, [esp + 0x118]
mov esi, esp
mov dword [esp + 0x1c], esp
call fcn.00403870
mov ecx, edi
mov edx, ebp
call fcn.004062f0
add esp, 8
push 0x4b0
call ebx
jmp 0x414720
mov ecx, dword [esp + 0x20]
add ecx, 0xe6
push ecx
push ecx
lea eax, [esp + 0x118]
mov esi, esp
mov dword [esp + 0x1c], esp
call fcn.00403870
mov ecx, dword [esp + 0x24]
mov edx, ebp
call fcn.004062f0
add esp, 8
xor edi, edi
push 0xc8
call ebx
mov eax, dword [esp + 0x110]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x18], 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
add esp, 4
cmp eax, 0x3e9
je 0x41517d
inc edi
cmp edi, 7
jle 0x415140
mov dword [esp + 0x18], 0
push 0xc8
call ebx
mov eax, dword [esp + 0x110]
add eax, 0xfffffff0
push eax
call fcn.00429de0
mov edx, dword [0x47bb0c]
mov esi, eax
add esp, 4
lea eax, [esp + 0x98]
push eax
push ebp
add esi, 0x10
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ecx, dword [esp + 0x98]
push ecx
push 0
push 0x1fffff
mov dword [esp + 0x54], 0
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0xf4]
push edx
mov edi, eax
push 4
lea eax, [esp + 0x50]
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x48]
lea eax, [esp + 0x7c]
push eax
push ebp
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ecx, dword [esp + 0x7c]
push ecx
push 0
push 0x1fffff
mov dword [esp + 0x4c], 0
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0xfc]
push edx
mov edi, eax
push 4
lea eax, [esp + 0x48]
push eax
add ecx, 0x1ec
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x40]
add esi, 0xfffffff0
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x415276
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
cmp edi, 0x3e9
je 0x415290
mov eax, dword [esp + 0x18]
inc eax
cmp eax, 7
mov dword [esp + 0x18], eax
jle 0x415185
push 0xc8
call ebx
jmp 0x414720
lea ecx, [edi - 0x111]
cmp ecx, 0xf
ja 0x4155ad
mov edx, dword [esp + 0x2c]
add edx, 0xffffffdd
cmp edx, 0x14
ja 0x4155ad
push ecx
lea eax, [esp + 0x114]
mov esi, esp
mov dword [esp + 0x18], esp
call fcn.00403870
lea eax, [esp + 0xc4]
push eax
mov eax, ebp
call fcn.00405d80
add esp, 4
lea eax, [esp + 0x114]
mov esi, esp
mov dword [esp + 0x18], esp
call fcn.00403870
mov eax, ebp
call fcn.004046f0
add esp, 4
test al, al
jne 0x41540a
cmp dword [esp + 0xc0], 0x32
jne 0x41540a
cmp dword [esp + 0xc4], 0xe6
jne 0x41540a
push 0x47e5d8
mov byte [esp + 0x2b], al
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [sym.imp.USER32.dll_GetForegroundWindow]
call esi
cmp eax, ebp
je 0x415355
mov edi, dword [sym.imp.USER32.dll_SetForegroundWindow]
push ebp
call edi
call fcn.00408120
push eax
call ebx
call esi
cmp eax, ebp
jne 0x415344
push ecx
lea eax, [esp + 0x114]
mov esi, esp
mov dword [esp + 0x18], esp
call fcn.00403870
mov eax, ebp
call fcn.00406270
add esp, 4
cmp al, 1
je 0x4153aa
push 0x113
push ecx
lea eax, [esp + 0x118]
mov esi, esp
mov edi, 0x56
mov dword [esp + 0x1c], esp
call fcn.00403870
mov ecx, edi
mov edx, ebp
call fcn.004062f0
add esp, 8
push 0x578
call ebx
mov bl, 1
jmp 0x4153ae
mov bl, byte [esp + 0x27]
push 0x47e5d8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp bl, 1
jne 0x4155a0
xor edi, edi
push ecx
lea eax, [esp + 0x114]
mov esi, esp
mov dword [esp + 0x18], esp
call fcn.00403870
mov eax, ebp
call fcn.00403f70
add esp, 4
cmp eax, 0x456
je 0x4155a0
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0xa
jle 0x4153c4
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x414717
push 0x514
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x7a
push ecx
lea eax, [esp + 0x118]
mov esi, esp
mov dword [esp + 0x1c], esp
call fcn.00403870
mov esi, ebp
call fcn.00405540
mov ecx, dword [esp + 0x118]
mov ebx, dword [ecx + 0x64]
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x46d09c
call fcn.0042a2b0
push ecx
lea eax, [esp + 0x118]
mov esi, esp
mov byte [esp + 0x110], 1
mov dword [esp + 0x20], esp
call fcn.00403870
lea edx, [esp + 0x98]
push edx
mov esi, ebp
mov byte [esp + 0x114], 0
call fcn.00408500
mov ebx, dword [esp + 0x9c]
add esp, 0xc
test ebx, ebx
je 0x41559c
mov eax, dword [esp + 0x94]
test eax, eax
je 0x41559c
push ebx
push ecx
lea edi, [eax + 1]
lea eax, [esp + 0x118]
mov esi, esp
mov dword [esp + 0x1c], esp
call fcn.00403870
mov ecx, edi
mov esi, ebp
call fcn.00407980
add esp, 8
push ebx
push ecx
lea eax, [esp + 0x118]
mov esi, esp
mov dword [esp + 0x1c], esp
call fcn.00403870
mov ecx, dword [esp + 0x9c]
mov esi, ebp
call fcn.00407980
add esp, 8
xor ebx, ebx
lea esp, [esp]
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
push ecx
lea eax, [esp + 0x114]
mov esi, esp
mov dword [esp + 0x18], esp
call fcn.00403870
lea eax, [esp + 0xb4]
push eax
mov eax, ebp
call fcn.00405d80
add esp, 4
lea eax, [esp + 0x114]
mov esi, esp
mov dword [esp + 0x18], esp
call fcn.00403870
mov eax, ebp
call fcn.004046f0
add esp, 4
test al, al
jne 0x415557
cmp dword [esp + 0xb0], 0x32
jne 0x415557
cmp dword [esp + 0xb4], 0xe6
je 0x4155a0
cmp ebx, 8
jne 0x415585
push 0x115
push ecx
lea eax, [esp + 0x118]
mov esi, esp
mov edi, 0x8e
mov dword [esp + 0x1c], esp
call fcn.00403870
mov ecx, edi
mov edx, ebp
call fcn.004062f0
add esp, 8
inc ebx
cmp ebx, 8
jle 0x4154f0
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x414717
mov dword [esp + 0x50], edi
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x414717
mov eax, dword [esp + 0x110]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x18], esp
mov esi, esp
push eax
call fcn.00429de0
add eax, 0x10
lea ecx, [esp + 0xc0]
add esp, 4
mov dword [esi], eax
push ecx
mov eax, ebp
call fcn.004060f0
mov eax, dword [esp + 0x118]
add esp, 4
add eax, 0xfffffff0
mov dword [esp + 0x18], 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 0x415c59
cmp dword [esp + 0xb8], 0x295
jne 0x415c59
cmp dword [esp + 0xbc], 0x1a3
jne 0x415c59
push ecx
lea eax, [esp + 0x114]
mov esi, esp
mov dword [esp + 0x18], esp
call fcn.00403870
lea edx, [esp + 0x68]
push edx
mov eax, ebp
call fcn.00405d80
add esp, 8
cmp dword [esp + 0x64], 0
jne 0x415661
mov eax, dword [esp + 0x68]
test eax, eax
je 0x415697
push 0
push 0
push ecx
lea eax, [esp + 0x11c]
mov esi, esp
mov dword [esp + 0x20], esp
call fcn.00403870
mov esi, ebp
call fcn.00405f00
add esp, 0xc
push 0x12c
call ebx
xor eax, eax
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], eax
add eax, 0x178
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fsub qword [0x46f290]
call fcn.00450dd0
mov edi, eax
call fcn.0044bf34
cdq
mov ecx, 0xa
idiv ecx
mov esi, 5
sub esi, edx
call fcn.0044bf34
cdq
mov ecx, 0xa
idiv ecx
mov eax, 5
sub eax, edx
add eax, edi
lea edi, [esi + 0x147]
jmp 0x414d79
cmp dword [esp + 0x11c], 1
jne 0x41572c
lea edx, [esp + 0x30]
push edx
push 1
mov eax, dword [esp + 0x120]
push eax
mov eax, dword [esp + 0x11c]
push ebp
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x28], esp
mov esi, esp
push eax
call fcn.00429de0
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.004091a0
add esp, 0x14
jmp 0x414720
mov eax, dword [esp + 0x110]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x18], esp
mov esi, esp
push eax
call fcn.00429de0
add eax, 0x10
lea ecx, [esp + 0xd0]
add esp, 4
mov dword [esi], eax
push ecx
mov eax, ebp
call fcn.00405d80
add esp, 8
cmp dword [esp + 0xc8], 0x32
jne 0x4157d1
cmp dword [esp + 0xcc], 0xe6
jne 0x4157d1
mov eax, dword [esp + 0x110]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x18], 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 0x4157d1
mov eax, dword [esp + 0x118]
lea edx, [esp + 0x30]
push edx
push 2
push eax
push ebp
push ecx
lea eax, [esp + 0x124]
mov esi, esp
mov dword [esp + 0x28], esp
call fcn.00403870
call fcn.004091a0
add esp, 0x14
jmp 0x414720
cmp dword [esp + 0x2c], 0x23
jg 0x41581a
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x110]
mov esi, dword [esp + 0x1c]
add ecx, 0x59
push ecx
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
mov edi, esp
push eax
add esi, 0x248
call fcn.00429de0
add eax, 0x10
add esp, 4
mov ecx, esi
mov edx, ebp
mov dword [edi], eax
call fcn.004062f0
add esp, 8
jmp 0x414720
lea edx, [esp + 0x30]
push edx
push 2
jmp 0x4156f7
cmp eax, 0x495
je 0x4159e0
cmp eax, 0x5e9
jne 0x414720
mov ecx, dword [esp + 0x118]
mov eax, dword [esp + 0x110]
push ecx
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
mov esi, esp
push eax
call fcn.00429de0
add eax, 0x10
add esp, 4
mov ecx, ebp
mov dword [esi], eax
call fcn.00409040
lea edx, [edi - 0xaf]
add esp, 8
cmp edx, 0x11
ja 0x4158a7
mov esi, dword [esp + 0x2c]
lea eax, [esi - 0x7e]
cmp eax, 0xe
ja 0x4158a7
call fcn.0044bf34
lea ecx, [edi + edi*4]
add ecx, ecx
add ecx, ecx
mov eax, 0x1059
sub eax, ecx
lea ecx, [esi + esi*4 - 0x26c]
add ecx, ecx
add ecx, ecx
jmp 0x415a75
mov eax, dword [esp + 0x110]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x18], esp
mov esi, esp
push eax
call fcn.00429de0
add eax, 0x10
lea edx, [esp + 0xe0]
add esp, 4
mov dword [esi], eax
push edx
mov eax, ebp
call fcn.004060f0
mov eax, dword [esp + 0x118]
add esp, 4
add eax, 0xfffffff0
mov dword [esp + 0x18], 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 0x415c59
cmp dword [esp + 0xd8], 0x1e5
jne 0x415c59
cmp dword [esp + 0xdc], 0x1a3
jne 0x415c59
push ecx
lea eax, [esp + 0x114]
mov esi, esp
mov dword [esp + 0x18], esp
call fcn.00403870
lea eax, [esp + 0x78]
push eax
mov eax, ebp
call fcn.00405d80
add esp, 8
cmp dword [esp + 0x74], 0
jne 0x41595b
mov eax, dword [esp + 0x78]
test eax, eax
je 0x415991
push 0
push 0
push ecx
lea eax, [esp + 0x11c]
mov esi, esp
mov dword [esp + 0x20], esp
call fcn.00403870
mov esi, ebp
call fcn.00405f00
add esp, 0xc
push 0x12c
call ebx
xor eax, eax
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], eax
add eax, 0x175
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fsub qword [0x46f2b0]
call fcn.00450dd0
mov edi, eax
call fcn.0044bf34
cdq
mov ecx, 0xa
idiv ecx
mov esi, 5
sub esi, edx
call fcn.0044bf34
cdq
mov ecx, 0xa
idiv ecx
mov eax, 5
sub eax, edx
add eax, edi
lea edi, [esi + 0x1e2]
jmp 0x414d79
mov edx, dword [esp + 0x118]
mov eax, dword [esp + 0x110]
push edx
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
mov esi, esp
push eax
call fcn.00429de0
add eax, 0x10
add esp, 4
mov ecx, ebp
mov dword [esi], eax
call fcn.00409040
add esp, 8
push 0x514
call ebx
lea eax, [edi - 0x20e]
cmp eax, 0x10
ja 0x415aae
mov esi, dword [esp + 0x2c]
lea ecx, [esi - 0x6e]
cmp ecx, 0xa
ja 0x415aae
mov dword [esp + 0x14], 0
call fcn.0044bf34
cmp esi, 0x6d
jle 0x415a59
mov eax, 0x6d
sub eax, esi
lea ecx, [eax + eax*4]
add ecx, ecx
add ecx, ecx
jmp 0x415a5d
mov ecx, dword [esp + 0x14]
lea edx, [edi + edi*4]
add edx, edx
add edx, edx
mov eax, 0x2a71
sub eax, edx
lea edx, [esi + esi*4 - 0x217]
lea ecx, [ecx + edx*4]
mov edx, dword [esp + 0x20]
add ecx, edx
push ecx
mov ecx, dword [esp + 0x20]
push ecx
lea edi, [eax + ecx]
lea eax, [esp + 0x118]
mov esi, esp
mov dword [esp + 0x1c], esp
call fcn.00403870
mov ecx, edi
mov edx, ebp
call fcn.004062f0
add esp, 8
push 0x578
call ebx
jmp 0x414720
mov eax, dword [esp + 0x110]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x18], esp
mov esi, esp
push eax
call fcn.00429de0
add eax, 0x10
lea edx, [esp + 0xd8]
add esp, 4
mov dword [esi], eax
push edx
mov eax, ebp
call fcn.004060f0
mov eax, dword [esp + 0x118]
add esp, 4
add eax, 0xfffffff0
mov dword [esp + 0x18], 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 0x415c59
cmp dword [esp + 0xd0], 0x2bb
jne 0x415c59
cmp dword [esp + 0xd4], 0xfb
jne 0x415c59
mov eax, dword [esp + 0x110]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x18], esp
mov esi, esp
push eax
call fcn.00429de0
add eax, 0x10
mov dword [esi], eax
lea eax, [esp + 0x64]
add esp, 4
push eax
mov eax, ebp
call fcn.00405d80
add esp, 8
cmp dword [esp + 0x5c], 0
jne 0x415b6e
mov eax, dword [esp + 0x60]
test eax, eax
je 0x415ba4
push 0
push 0
push ecx
lea eax, [esp + 0x11c]
mov esi, esp
mov dword [esp + 0x20], esp
call fcn.00403870
mov esi, ebp
call fcn.00405f00
add esp, 0xc
push 0x12c
call ebx
xor eax, eax
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], eax
add eax, 0x127
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fsub qword [0x46f2a8]
call fcn.00450dd0
mov edi, eax
call fcn.0044bf34
cdq
mov ecx, 0xa
idiv ecx
mov esi, 5
sub esi, edx
call fcn.0044bf34
cdq
mov ecx, 0xa
idiv ecx
mov eax, 5
add esi, 0x1fe
sub eax, edx
add eax, edi
push eax
mov eax, dword [esp + 0x114]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
mov edi, esp
push eax
call fcn.00429de0
add eax, 0x10
add esp, 4
mov ecx, esi
mov edx, ebp
mov dword [edi], eax
call fcn.004062f0
add esp, 8
push 0x514
call ebx
mov eax, dword [esp + 0x110]
push 0x18
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
mov esi, esp
push eax
call fcn.00429de0
add eax, 0x10
add esp, 4
mov edi, ebp
mov dword [esi], eax
call fcn.004054b0
add esp, 8
mov dword [esp + 0x50], 0
jmp 0x414720
mov eax, dword [esp + 0x110]
push 0x18
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
mov esi, esp
push eax
call fcn.00429de0
add eax, 0x10
add esp, 4
mov edi, ebp
mov dword [esi], eax
call fcn.004054b0
add esp, 8
jmp 0x414720
call fcn.00401ea0
int3