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

Disassembly:
push 0xffffffffffffffff
push 0x465543
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47a770]
xor eax, esp
push eax
lea eax, [esp + 0xf0]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x104]
mov ecx, dword [esp + 0x108]
mov edx, dword [esp + 0x10c]
xor eax, eax
mov dword [esp + 0xf8], eax
push eax
mov dword [ecx + 0x60], edx
mov dword [esp + 0x3c], 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 + 0x88], edx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ecx]
mov eax, dword [esp + 0x108]
mov esi, dword [esp + 0x100]
push eax
push ecx
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add esi, 0xfffffff0
mov dword [esp + 0x20], esp
mov dword [esp + 0x24], esp
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x41196f
cmp eax, dword [esi]
jne 0x41196f
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x4119a3
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 0x41308d
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 + 0x24]
add edi, 0x10
mov ecx, ebp
mov dword [edx], edi
call fcn.00408690
mov esi, dword [esp + 0x108]
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
add esi, 0xfffffff0
add esp, 4
mov dword [esp + 0x1c], esp
mov dword [esp + 0x20], esp
call edx
cmp dword [esi + 0xc], 0
lea edx, [esi + 0xc]
jl 0x4119ec
cmp eax, dword [esi]
jne 0x4119ec
mov edi, esi
mov eax, 1
lock xadd dword [edx], eax
jmp 0x411a20
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 0x41308d
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 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 + 0x7c]
push ecx
push ebp
mov dword [esp + 0x24], eax
call esi
mov edx, dword [esp + 0x7c]
push edx
push 0
push 0x1fffff
mov dword [esp + 0x48], 0
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edx, dword [esp + 0x1c]
mov edi, eax
lea eax, [esp + 0xec]
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]
mov eax, dword [0x47baf8]
lea ecx, [esp + 0x8c]
push ecx
push ebp
mov dword [esp + 0x24], eax
call esi
mov edx, dword [esp + 0x8c]
push edx
push 0
push 0x1fffff
mov dword [esp + 0x4c], 0
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edx, dword [esp + 0x1c]
mov edi, eax
lea eax, [esp + 0xe4]
push eax
push 4
lea ecx, [esp + 0x48]
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 + 0x3c], 0
jne case.0x411d06.1002
cmp dword [esp + 0x40], 0x457
jne case.0x411d06.1002
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 + 0x24], 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 + 0x28], eax
mov eax, dword [esp + 0x100]
add eax, 0xfffffff0
push eax
call fcn.00429de0
mov ecx, dword [0x47bb0c]
add esp, 4
lea edx, [esp + 0x80]
push edx
push ebp
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
call esi
mov eax, dword [esp + 0x80]
push eax
push 0
push 0x1fffff
mov dword [esp + 0x54], 0
call dword [sym.imp.KERNEL32.dll_OpenProcess]
lea ecx, [esp + 0xe0]
push ecx
push 4
mov edi, eax
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x50]
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 + 0x48]
lea edx, [esp + 0x84]
push edx
push ebp
mov dword [esp + 0x24], ecx
call esi
mov eax, dword [esp + 0x84]
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 + 0x20]
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 + 0x18]
mov dword [esp + 0x20], ecx
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x411c36
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x100]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x1c], 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 + 0x34]
call fcn.004045c0
mov edi, dword [esp + 0x34]
add esp, 4
cmp dword [esp + 0x4c], edi
jne 0x411ceb
mov esi, dword [esp + 0x24]
add esi, 0x13e
cmp dword [esp + 0x20], 0x456
jne 0x411cb0
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x100]
add ecx, 0x133
push ecx
push ecx
mov dword [esp + 0x20], esp
add eax, 0xfffffff0
mov dword [esp + 0x20], esp
push eax
call fcn.00429de0
mov edx, dword [esp + 0x24]
add eax, 0x10
mov dword [edx], eax
jmp 0x411cdc
mov eax, dword [esp + 0x28]
add eax, 0xe3
push eax
mov eax, dword [esp + 0x104]
push ecx
mov dword [esp + 0x20], esp
add eax, 0xfffffff0
mov dword [esp + 0x20], esp
push eax
call fcn.00429de0
mov ecx, dword [esp + 0x24]
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 + 0x20]
add eax, 0xfffffc17
cmp eax, 0xac
ja case.0x411d06.1002
movzx edx, byte [eax + 0x4130b8]
jmp dword [edx*4 + 0x413094]
mov eax, dword [0x480c2c]
cdq
sub eax, edx
sar eax, 1
cmp dword [esp + 0x88], eax
jle 0x411ecf
cmp edi, 9
jle 0x411dd7
cmp dword [esp + 0x34], 0xa
jle 0x411dd7
xor esi, esi
mov dword [esp + 0x18], esi
call fcn.0044bf34
cmp edi, 0xf
jge 0x411d56
mov eax, 0xf
sub eax, edi
lea esi, [eax + eax*4]
add esi, esi
add esi, esi
mov ecx, dword [esp + 0x34]
cmp ecx, 0xd
jge 0x411d6f
mov eax, 0xc
sub eax, ecx
lea eax, [eax + eax*4]
add eax, eax
add eax, eax
jmp 0x411d73
mov eax, dword [esp + 0x18]
cmp edi, 0x21
jle 0x411d86
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 + 0x108]
mov esi, esp
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], esp
call fcn.00403870
mov esi, ebp
call fcn.00405540
push 0x32
call ebx
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
add ecx, eax
push ecx
add edi, edx
jmp 0x411f83
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
add eax, 0x1ae
push eax
push ecx
lea eax, [esp + 0x108]
mov esi, esp
add edi, 0xd6
mov dword [esp + 0x20], esp
call fcn.00403870
mov ecx, edi
mov edx, ebp
call fcn.004062f0
add esp, 8
xor edi, edi
lea esp, [esp]
push 0xc8
call ebx
mov eax, dword [esp + 0x100]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x1c], 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 0x411e4d
inc edi
cmp edi, 7
jle 0x411e10
mov dword [esp + 0x20], 0
push 0xc8
call ebx
mov eax, dword [esp + 0x100]
add eax, 0xfffffff0
push eax
call fcn.00429de0
mov ecx, dword [0x47bb0c]
add esp, 4
mov esi, eax
push ecx
mov ecx, ebp
add esi, 0x10
call fcn.0042bd60
add eax, 0x1ec
push eax
mov ecx, ebp
call fcn.0042bd60
mov edi, eax
lea eax, [esi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x411ead
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp edi, 0x3e9
je 0x411ec3
mov eax, dword [esp + 0x20]
inc eax
cmp eax, 7
mov dword [esp + 0x20], eax
jle 0x411e55
push 0xc8
call ebx
jmp case.0x411d06.1002
cmp edi, 0xd
jle 0x411fae
cmp dword [esp + 0x34], 0xb
jge 0x411fae
xor esi, esi
mov dword [esp + 0x20], esi
call fcn.0044bf34
cmp edi, 0xf
jge 0x411f01
mov eax, 0xf
sub eax, edi
lea esi, [eax + eax*4]
add esi, esi
add esi, esi
mov ecx, dword [esp + 0x34]
cmp ecx, 0xd
jge 0x411f1c
mov eax, 0xc
sub eax, ecx
lea eax, [eax + eax*4]
add eax, eax
add eax, eax
mov dword [esp + 0x20], eax
cmp edi, 0x21
jle 0x411f2f
mov eax, 0x21
sub eax, edi
lea esi, [eax + eax*4]
add esi, esi
add esi, esi
mov eax, dword [esp + 0x34]
lea ecx, [edi + edi*4]
add ecx, ecx
lea edx, [eax + eax*4 - 0xa]
mov eax, dword [esp + 0x20]
add ecx, ecx
mov edi, 0x20d
sub edi, ecx
lea ecx, [eax + edx*4]
push 0x5a
push ecx
sub edi, esi
lea eax, [esp + 0x108]
mov esi, esp
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], esp
call fcn.00403870
mov esi, ebp
call fcn.00405540
push 0x32
call ebx
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
add eax, edx
push eax
add edi, ecx
push ecx
lea eax, [esp + 0x108]
mov esi, esp
mov dword [esp + 0x20], esp
call fcn.00403870
mov ecx, edi
mov edx, ebp
call fcn.004062f0
add esp, 8
push 0x4b0
call ebx
jmp case.0x411d06.1002
mov edx, dword [esp + 0x28]
add edx, 0xe6
push edx
push ecx
lea eax, [esp + 0x108]
mov esi, esp
mov dword [esp + 0x20], esp
call fcn.00403870
mov ecx, dword [esp + 0x2c]
mov edx, ebp
call fcn.004062f0
add esp, 8
xor edi, edi
lea esp, [esp]
push 0xc8
call ebx
mov eax, dword [esp + 0x100]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x1c], 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 0x41201d
inc edi
cmp edi, 7
jle 0x411fe0
mov dword [esp + 0x20], 0
push 0xc8
call ebx
mov eax, dword [esp + 0x100]
add eax, 0xfffffff0
push eax
call fcn.00429de0
mov esi, eax
mov eax, dword [0x47bb0c]
add esp, 4
push eax
mov ecx, ebp
add esi, 0x10
call fcn.0042bd60
add eax, 0x1ec
push eax
mov ecx, ebp
call fcn.0042bd60
mov edi, eax
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41207c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp edi, 0x3e9
je 0x412092
mov eax, dword [esp + 0x20]
inc eax
cmp eax, 7
mov dword [esp + 0x20], eax
jle 0x412025
push 0xc8
call ebx
jmp case.0x411d06.1002
lea ecx, [edi - 0x111]
cmp ecx, 0xf
ja 0x41238d
mov edx, dword [esp + 0x34]
add edx, 0xffffffdd
cmp edx, 0x14
ja 0x41238d
push ecx
lea eax, [esp + 0x104]
mov esi, esp
mov dword [esp + 0x1c], esp
call fcn.00403870
lea eax, [esp + 0x9c]
push eax
mov eax, ebp
call fcn.00405d80
add esp, 4
lea eax, [esp + 0x104]
mov esi, esp
mov dword [esp + 0x1c], esp
call fcn.00403870
mov eax, ebp
call fcn.004046f0
add esp, 4
test al, al
jne 0x41220c
cmp dword [esp + 0x98], 0x32
jne 0x41220c
cmp dword [esp + 0x9c], 0xe6
jne 0x41220c
push 0x47e5d8
mov byte [esp + 0x33], al
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [sym.imp.USER32.dll_GetForegroundWindow]
call esi
cmp eax, ebp
je 0x412157
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 0x412146
push ecx
lea eax, [esp + 0x104]
mov esi, esp
mov dword [esp + 0x1c], esp
call fcn.00403870
mov eax, ebp
call fcn.00406270
add esp, 4
cmp al, 1
je 0x4121ac
push 0x113
push ecx
lea eax, [esp + 0x108]
mov esi, esp
mov edi, 0x56
mov dword [esp + 0x20], esp
call fcn.00403870
mov ecx, edi
mov edx, ebp
call fcn.004062f0
add esp, 8
push 0x578
call ebx
mov bl, 1
jmp 0x4121b0
mov bl, byte [esp + 0x2f]
push 0x47e5d8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp bl, 1
jne 0x412380
xor edi, edi
push ecx
lea eax, [esp + 0x104]
mov esi, esp
mov dword [esp + 0x1c], esp
call fcn.00403870
mov eax, ebp
call fcn.00403f70
add esp, 4
cmp eax, 0x456
je 0x412380
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0xa
jle 0x4121c6
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x411927
push 0x514
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x7a
push ecx
lea eax, [esp + 0x108]
mov esi, esp
mov dword [esp + 0x20], esp
call fcn.00403870
mov esi, ebp
call fcn.00405540
mov ecx, dword [esp + 0x108]
mov ebx, dword [ecx + 0x64]
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x46d09c
call fcn.0042a2b0
push ecx
lea eax, [esp + 0x108]
mov esi, esp
mov byte [esp + 0x100], 1
mov dword [esp + 0x24], esp
call fcn.00403870
lea edx, [esp + 0xb8]
push edx
mov esi, ebp
mov byte [esp + 0x104], 0
call fcn.00408500
mov eax, dword [esp + 0xbc]
add esp, 0xc
test eax, eax
je 0x41237c
mov ecx, dword [esp + 0xb4]
test ecx, ecx
je 0x41237c
push eax
push ecx
lea eax, [esp + 0x108]
mov esi, esp
lea edi, [ecx + 1]
mov dword [esp + 0x20], esp
call fcn.00403870
mov ecx, edi
mov esi, ebp
call fcn.00407980
add esp, 8
xor ebx, ebx
jmp 0x4122d0
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
push ecx
lea eax, [esp + 0x104]
mov esi, esp
mov dword [esp + 0x1c], esp
call fcn.00403870
lea eax, [esp + 0xd4]
push eax
mov eax, ebp
call fcn.00405d80
add esp, 4
lea eax, [esp + 0x104]
mov esi, esp
mov dword [esp + 0x1c], esp
call fcn.00403870
mov eax, ebp
call fcn.004046f0
add esp, 4
test al, al
jne 0x412337
cmp dword [esp + 0xd0], 0x32
jne 0x412337
cmp dword [esp + 0xd4], 0xe6
je 0x412380
cmp ebx, 8
jne 0x412365
push 0x115
push ecx
lea eax, [esp + 0x108]
mov esi, esp
mov edi, 0x8e
mov dword [esp + 0x20], esp
call fcn.00403870
mov ecx, edi
mov edx, ebp
call fcn.004062f0
add esp, 8
inc ebx
cmp ebx, 8
jle 0x4122d0
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x411927
mov dword [esp + 0x4c], edi
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x411927
mov eax, dword [esp + 0x100]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
mov esi, esp
push eax
call fcn.00429de0
add eax, 0x10
lea ecx, [esp + 0xa8]
add esp, 4
mov dword [esi], eax
push ecx
mov eax, ebp
call fcn.004060f0
mov eax, dword [esp + 0x108]
add esp, 4
add eax, 0xfffffff0
mov dword [esp + 0x1c], 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 0x41251b
cmp dword [esp + 0xa0], 0x295
jne 0x41251b
cmp dword [esp + 0xa4], 0x1a3
jne 0x41251b
push ecx
lea eax, [esp + 0x104]
mov esi, esp
mov dword [esp + 0x1c], esp
call fcn.00403870
lea edx, [esp + 0x58]
push edx
mov eax, ebp
call fcn.00405d80
add esp, 8
cmp dword [esp + 0x54], 0
jne 0x412441
mov eax, dword [esp + 0x58]
test eax, eax
je 0x412477
push 0
push 0
push ecx
lea eax, [esp + 0x10c]
mov esi, esp
mov dword [esp + 0x24], esp
call fcn.00403870
mov esi, ebp
call fcn.00405f00
add esp, 0xc
push 0x12c
call ebx
xor eax, eax
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], eax
add eax, 0x178
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
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]
push eax
push ecx
lea eax, [esp + 0x108]
mov esi, esp
mov dword [esp + 0x20], 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 + 0x108]
mov esi, esp
mov dword [esp + 0x20], esp
call fcn.00403870
mov edi, ebp
call fcn.004054b0
add esp, 8
push 0x12c
call ebx
mov dword [esp + 0x4c], 0
jmp case.0x411d06.1002
mov eax, dword [esp + 0x100]
push 0x18
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x20], 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 case.0x411d06.1002
lea edx, [edi - 3]
cmp edx, 0x16
ja 0x412666
mov eax, dword [esp + 0x34]
add eax, 0xffffffba
mov dword [esp + 0x18], eax
cmp eax, 0x10
ja 0x412666
xor esi, esi
mov dword [esp + 0x20], esi
call fcn.0044bf34
cmp edi, 0xf
jge 0x41258d
mov eax, 0xf
sub eax, edi
lea eax, [eax + eax*4]
add eax, eax
add eax, eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x34]
cmp eax, 0xd
jge 0x4125a4
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 + 0x18]
sub eax, dword [esp + 0x20]
lea edx, [ecx + ecx*4]
lea ecx, [esi + edx*4]
mov edx, dword [esp + 0x28]
add ecx, edx
push ecx
mov ecx, dword [esp + 0x28]
push ecx
lea edi, [eax + ecx]
lea eax, [esp + 0x108]
mov esi, esp
mov dword [esp + 0x20], 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 + 0x104]
mov esi, esp
mov dword [esp + 0x1c], esp
call fcn.00403870
mov eax, ebp
call fcn.00403f70
add esp, 4
cmp eax, 0x495
je 0x41265a
cmp edi, 0xf
jne 0x41264f
push 0xf0
push ecx
lea eax, [esp + 0x108]
mov esi, esp
mov dword [esp + 0x20], esp
call fcn.00403870
mov ecx, 0x205
mov edx, ebp
call fcn.004062f0
add esp, 8
inc edi
cmp edi, 0xf
jle 0x4125f8
jmp case.0x411d06.1002
push 0x3e8
call ebx
jmp case.0x411d06.1002
mov eax, dword [esp + 0x100]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x1c], 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 + 0x108]
add esp, 4
add eax, 0xfffffff0
mov dword [esp + 0x1c], 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 0x41251b
cmp dword [esp + 0xa8], 0x195
jne 0x41251b
cmp dword [esp + 0xac], 0x1a3
jne 0x41251b
push ecx
lea eax, [esp + 0x104]
mov esi, esp
mov dword [esp + 0x1c], esp
call fcn.00403870
lea eax, [esp + 0x94]
push eax
mov eax, ebp
call fcn.00405d80
mov ecx, dword [esp + 0x98]
add ecx, 0xae
mov dword [esp + 0x20], ecx
fild dword [esp + 0x20]
add esp, 8
fadd qword [0x46f2e8]
call fcn.00450dd0
mov edx, dword [esp + 0x94]
add edx, 0x178
mov dword [esp + 0x18], edx
fild dword [esp + 0x18]
mov edi, eax
fsub qword [0x46f288]
call fcn.00450dd0
mov dword [esp + 0x18], 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 edi, esi
sub eax, edx
mov edx, dword [esp + 0x18]
add eax, edx
push eax
push ecx
lea eax, [esp + 0x108]
mov esi, esp
mov dword [esp + 0x20], 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 + 0x108]
mov esi, esp
mov dword [esp + 0x20], esp
call fcn.00403870
mov edi, ebp
call fcn.004054b0
add esp, 8
push 0x12c
call ebx
mov eax, dword [esp + 0x90]
mov dword [esp + 0x4c], eax
jmp case.0x411d06.1002
push 0x4b0
call ebx
mov ecx, dword [esp + 0x108]
mov eax, dword [esp + 0x100]
push ecx
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x20], 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 - 3]
add esp, 8
cmp edx, 0xd
ja 0x41292e
mov esi, dword [esp + 0x34]
lea eax, [esi - 0x2e]
cmp eax, 0x16
ja 0x41292e
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
call fcn.0044bf34
cmp edi, 0xf
jge 0x41285b
mov eax, 0xf
sub eax, edi
lea eax, [eax + eax*4]
add eax, eax
add eax, eax
mov dword [esp + 0x20], eax
cmp esi, 0xd
jge 0x412872
mov eax, 0xc
sub eax, esi
lea eax, [eax + eax*4]
add eax, eax
add eax, eax
mov dword [esp + 0x1c], eax
lea ecx, [edi + edi*4]
add ecx, ecx
add ecx, ecx
mov eax, 0x159
sub eax, ecx
mov ecx, dword [esp + 0x1c]
sub eax, dword [esp + 0x20]
lea edx, [esi + esi*4 - 0xb4]
lea ecx, [ecx + edx*4]
mov edx, dword [esp + 0x28]
add ecx, edx
push ecx
mov ecx, dword [esp + 0x28]
push ecx
lea edi, [eax + ecx]
lea eax, [esp + 0x108]
mov esi, esp
mov dword [esp + 0x20], 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 + 0x104]
mov esi, esp
mov dword [esp + 0x1c], esp
call fcn.00403870
mov eax, ebp
call fcn.00403f70
add esp, 4
cmp eax, 0x46b
je case.0x411d06.1002
cmp edi, 0xf
jne 0x412923
push 0xf0
push ecx
lea eax, [esp + 0x108]
mov esi, esp
mov dword [esp + 0x20], esp
call fcn.00403870
mov ecx, 0x205
mov edx, ebp
call fcn.004062f0
add esp, 8
inc edi
cmp edi, 0xf
jle 0x4128c8
jmp case.0x411d06.1002
mov eax, dword [esp + 0x100]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
mov esi, esp
push eax
call fcn.00429de0
add eax, 0x10
lea edx, [esp + 0xc0]
add esp, 4
mov dword [esi], eax
push edx
mov eax, ebp
call fcn.004060f0
mov eax, dword [esp + 0x108]
add esp, 4
add eax, 0xfffffff0
mov dword [esp + 0x1c], 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 0x41251b
cmp dword [esp + 0xb8], 0x2bb
jne 0x41251b
cmp dword [esp + 0xbc], 0xfb
jne 0x41251b
push ecx
lea eax, [esp + 0x104]
mov esi, esp
mov dword [esp + 0x1c], esp
call fcn.00403870
lea eax, [esp + 0x68]
push eax
mov eax, ebp
call fcn.00405d80
add esp, 8
cmp dword [esp + 0x64], 0
jne 0x4129e2
mov eax, dword [esp + 0x68]
test eax, eax
je 0x412a18
push 0
push 0
push ecx
lea eax, [esp + 0x10c]
mov esi, esp
mov dword [esp + 0x24], 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, 0x127
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fsub qword [0x46f2e0]
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
push eax
push ecx
lea edi, [esi + 0x25]
lea eax, [esp + 0x108]
mov esi, esp
mov dword [esp + 0x20], 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 + 0x108]
mov esi, esp
mov dword [esp + 0x20], esp
call fcn.00403870
mov edi, ebp
call fcn.004054b0
add esp, 8
mov dword [esp + 0x4c], 0
jmp case.0x411d06.1002
mov edx, dword [esp + 0x108]
mov eax, dword [esp + 0x100]
push edx
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x20], 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
mov eax, dword [esp + 0x114]
add esp, 8
cmp eax, 1
jne 0x412ca9
lea eax, [edi - 0x6b]
cmp eax, 0x15
ja 0x412b70
mov edx, dword [esp + 0x34]
lea ecx, [edx - 0x12]
cmp ecx, 0xc
ja 0x412b70
xor ecx, ecx
xor esi, esi
cmp edi, 0xf
jge 0x412b1e
mov eax, 0xf
sub eax, edi
lea ecx, [eax + eax*4]
add ecx, ecx
add ecx, ecx
cmp edx, 0xd
jge 0x412b31
mov eax, 0xc
sub eax, edx
lea esi, [eax + eax*4]
add esi, esi
add esi, esi
cmp edi, 0x76
jle 0x412b44
mov eax, 0x76
sub eax, edi
lea ecx, [eax + eax*4]
add ecx, ecx
add ecx, ecx
lea eax, [edi + edi*4]
add eax, eax
add eax, eax
mov edi, eax
mov eax, 0xa7d
sub eax, edi
sub eax, ecx
lea ecx, [edx + edx*4 - 0x55]
mov edx, dword [esp + 0x28]
lea ecx, [esi + ecx*4]
add ecx, edx
push ecx
mov ecx, dword [esp + 0x28]
lea edi, [eax + ecx]
jmp 0x412e9d
mov eax, dword [esp + 0x100]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
mov esi, esp
push eax
call fcn.00429de0
add eax, 0x10
lea edx, [esp + 0xd0]
add esp, 4
mov dword [esi], eax
push edx
mov eax, ebp
call fcn.004060f0
mov eax, dword [esp + 0x108]
add esp, 4
add eax, 0xfffffff0
mov dword [esp + 0x1c], 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 0x41300b
cmp dword [esp + 0xc8], 0x1e5
jne 0x41300b
cmp dword [esp + 0xcc], 0x1a3
jne 0x41300b
push ecx
lea eax, [esp + 0x104]
mov esi, esp
mov dword [esp + 0x1c], 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 0x412c24
mov eax, dword [esp + 0x78]
test eax, eax
je 0x412c5a
push 0
push 0
push ecx
lea eax, [esp + 0x10c]
mov esi, esp
mov dword [esp + 0x24], 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, 0x178
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fsub qword [0x46f2d8]
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 + 0x1ca]
jmp 0x4124c1
cmp eax, 2
jne 0x412e2b
lea edx, [edi - 0x10]
cmp edx, 0x10
ja 0x412d0a
mov ecx, dword [esp + 0x34]
lea eax, [ecx - 0x4c]
cmp eax, 0xe
ja 0x412d0a
xor esi, esi
xor edx, edx
cmp edi, 0xf
jge 0x412cdd
mov eax, 0xf
sub eax, edi
lea esi, [eax + eax*4]
add esi, esi
add esi, esi
cmp ecx, 0xd
jge 0x412cf0
mov eax, 0xc
sub eax, ecx
lea edx, [eax + eax*4]
add edx, edx
add edx, edx
lea eax, [edi + edi*4]
add eax, eax
add eax, eax
mov edi, eax
mov eax, 0x361
lea ecx, [ecx + ecx*4 - 0x172]
jmp 0x412e86
push ecx
lea eax, [esp + 0x104]
mov esi, esp
mov dword [esp + 0x1c], esp
call fcn.00403870
lea eax, [esp + 0xdc]
push eax
mov eax, ebp
call fcn.004060f0
add esp, 4
lea eax, [esp + 0x104]
mov esi, esp
mov dword [esp + 0x1c], esp
call fcn.00403870
mov eax, ebp
call fcn.004046f0
add esp, 4
test al, al
jne 0x41300b
cmp dword [esp + 0xd8], 0x1e5
jne 0x41300b
cmp dword [esp + 0xdc], 0x1a3
jne 0x41300b
push ecx
lea eax, [esp + 0x104]
mov esi, esp
mov dword [esp + 0x1c], esp
call fcn.00403870
lea ecx, [esp + 0x70]
push ecx
mov eax, ebp
call fcn.00405d80
add esp, 8
cmp dword [esp + 0x6c], 0
jne 0x412da6
mov eax, dword [esp + 0x70]
test eax, eax
je 0x412ddc
push 0
push 0
push ecx
lea eax, [esp + 0x10c]
mov esi, esp
mov dword [esp + 0x24], 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 + 0x18], eax
fild dword [esp + 0x18]
fsub qword [0x46f2d0]
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 + 0xd1]
jmp 0x412fe4
lea edx, [edi - 0xb]
cmp edx, 0x13
ja 0x412ec8
mov ecx, dword [esp + 0x34]
lea eax, [ecx - 0x23]
cmp eax, 0xf
ja 0x412ec8
xor esi, esi
xor edx, edx
cmp edi, 0xf
jge 0x412e5e
mov eax, 0xf
sub eax, edi
lea esi, [eax + eax*4]
add esi, esi
add esi, esi
cmp ecx, 0xd
jge 0x412e71
mov eax, 0xc
sub eax, ecx
lea edx, [eax + eax*4]
add edx, edx
add edx, edx
lea eax, [edi + edi*4]
add eax, eax
add eax, eax
mov edi, eax
mov eax, 0x2ad
lea ecx, [ecx + ecx*4 - 0xa5]
lea ecx, [edx + ecx*4]
mov edx, dword [esp + 0x28]
sub eax, edi
lea ecx, [ecx + edx - 0x14]
mov edx, dword [esp + 0x24]
sub eax, esi
push ecx
lea edi, [eax + edx]
push ecx
lea eax, [esp + 0x108]
mov esi, esp
mov dword [esp + 0x20], esp
call fcn.00403870
mov ecx, edi
mov edx, ebp
call fcn.004062f0
add esp, 8
push 0x578
call ebx
jmp case.0x411d06.1002
push ecx
lea eax, [esp + 0x104]
mov esi, esp
mov dword [esp + 0x1c], esp
call fcn.00403870
lea eax, [esp + 0xc4]
push eax
mov eax, ebp
call fcn.004060f0
add esp, 4
lea eax, [esp + 0x104]
mov esi, esp
mov dword [esp + 0x1c], esp
call fcn.00403870
mov eax, ebp
call fcn.004046f0
add esp, 4
test al, al
jne 0x41300b
cmp dword [esp + 0xc0], 0x1e5
jne 0x41300b
cmp dword [esp + 0xc4], 0x1a3
jne 0x41300b
push ecx
lea eax, [esp + 0x104]
mov esi, esp
mov dword [esp + 0x1c], esp
call fcn.00403870
lea ecx, [esp + 0x60]
push ecx
mov eax, ebp
call fcn.00405d80
add esp, 8
cmp dword [esp + 0x5c], 0
jne 0x412f64
mov eax, dword [esp + 0x60]
test eax, eax
je 0x412f9a
push 0
push 0
push ecx
lea eax, [esp + 0x10c]
mov esi, esp
mov dword [esp + 0x24], 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, 0x178
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fsub qword [0x46f2c8]
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 + 0x108]
mov esi, esp
mov dword [esp + 0x20], 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 + 0x108]
mov esi, esp
mov dword [esp + 0x20], esp
call fcn.00403870
mov edi, ebp
call fcn.004054b0
add esp, 8
jmp case.0x411d06.1002
mov eax, dword [esp + 0x108]
lea edx, [esp + 0x38]
push edx
push 1
push eax
jmp 0x413060
mov edx, dword [esp + 0x108]
lea ecx, [esp + 0x38]
push ecx
push 2
push edx
jmp 0x413060
mov ecx, dword [esp + 0x108]
lea eax, [esp + 0x38]
push eax
push 3
push ecx
mov eax, dword [esp + 0x10c]
push ebp
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x2c], 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 case.0x411d06.1002
call fcn.00401ea0
mov edi, edi
sahf
and byte [ecx], al
or eax, 0x4b00411d
and eax, 716308545
inc ecx
add byte [eax + 0x30], al
inc ecx
add byte [ecx + 0x30], dl
inc ecx
add byte [edi], ch
xor byte [ecx], al
loope 0x4130d9
inc ecx
add byte [eax], dh
sbb dword [ecx], eax
add byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [ecx], al
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [edx], al
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
add eax, dword [eax + 134744070]
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [edi], al
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
add cl, byte [eax]
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [ebx], al
add al, 5
push es
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
pop es
int3