Function at 0x415c90
Capabilities:
Check for foreground window switch

Disassembly:
push 0xffffffffffffffff
push 0x46548e
mov eax, dword fs:[0]
push eax
sub esp, 0x13c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47a770]
xor eax, esp
push eax
lea eax, [esp + 0x150]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x164]
mov ecx, dword [esp + 0x16c]
mov edx, dword [esp + 0x168]
xor eax, eax
mov dword [esp + 0x158], eax
push eax
mov dword [esp + 0x5c], eax
mov byte [esp + 0x27], al
mov dword [edx + 0x60], ecx
call fcn.0044bf56
add esp, 4
push eax
call fcn.0044bf22
add esp, 4
call fcn.0044bf34
cdq
idiv dword [0x480c2c]
mov dword [esp + 0xa0], edx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x168]
mov esi, dword [esp + 0x160]
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 0x415d50
cmp eax, dword [esi]
jne 0x415d50
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x415d84
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 0x417db3
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 + 0x168]
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 0x415dcd
cmp eax, dword [esi]
jne 0x415dcd
mov edi, esi
mov eax, 1
lock xadd dword [edx], eax
jmp 0x415e01
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 0x417db3
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 + 0xb8]
push ecx
push ebp
mov dword [esp + 0x24], eax
call esi
mov edx, dword [esp + 0xb8]
push edx
push 0
push 0x1fffff
mov dword [esp + 0x5c], 0
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edx, dword [esp + 0x1c]
mov edi, eax
lea eax, [esp + 0x138]
push eax
push 4
lea ecx, [esp + 0x58]
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 + 0xbc]
push ecx
push ebp
mov dword [esp + 0x24], eax
call esi
mov edx, dword [esp + 0xbc]
push edx
push 0
push 0x1fffff
mov dword [esp + 0x60], 0
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edx, dword [esp + 0x1c]
mov edi, eax
lea eax, [esp + 0x128]
push eax
push 4
lea ecx, [esp + 0x5c]
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 + 0x50], 0
jne case.0x4160ed.1002
cmp dword [esp + 0x54], 0x457
jne case.0x4160ed.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 + 0x160]
add eax, 0xfffffff0
push eax
call fcn.00429de0
mov ecx, dword [0x47bb0c]
add esp, 4
lea edx, [esp + 0xb0]
push edx
push ebp
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
call esi
mov eax, dword [esp + 0xb0]
push eax
push 0
push 0x1fffff
mov dword [esp + 0x50], 0
call dword [sym.imp.KERNEL32.dll_OpenProcess]
lea ecx, [esp + 0x120]
push ecx
push 4
mov edi, eax
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x4c]
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 + 0x44]
lea edx, [esp + 0xa8]
push edx
push ebp
mov dword [esp + 0x24], ecx
call esi
mov eax, dword [esp + 0xa8]
push eax
push 0
push 0x1fffff
mov dword [esp + 0x58], 0
call dword [sym.imp.KERNEL32.dll_OpenProcess]
lea ecx, [esp + 0x130]
push ecx
mov edi, eax
mov eax, dword [esp + 0x20]
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 ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], ecx
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41601d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x160]
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 + 0x30]
call fcn.004045c0
mov edi, dword [esp + 0x30]
add esp, 4
cmp dword [esp + 0x38], edi
jne 0x4160d2
mov esi, dword [esp + 0x24]
add esi, 0x13e
cmp dword [esp + 0x1c], 0x456
jne 0x416097
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x160]
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 0x4160c3
mov eax, dword [esp + 0x28]
add eax, 0xe3
push eax
mov eax, dword [esp + 0x164]
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 + 0x1c]
add eax, 0xfffffc17
cmp eax, 0xac
ja case.0x4160ed.1002
movzx edx, byte [eax + 0x417dd8]
jmp dword [edx*4 + 0x417db8]
mov eax, dword [0x480c2c]
cdq
sub eax, edx
sar eax, 1
cmp dword [esp + 0xa0], eax
jle 0x416354
cmp edi, 9
jle 0x4161be
cmp dword [esp + 0x30], 0xa
jle 0x4161be
xor esi, esi
mov dword [esp + 0x18], esi
call fcn.0044bf34
cmp edi, 0xf
jge 0x41613d
mov eax, 0xf
sub eax, edi
lea esi, [eax + eax*4]
add esi, esi
add esi, esi
mov ecx, dword [esp + 0x30]
cmp ecx, 0xd
jge 0x416156
mov eax, 0xc
sub eax, ecx
lea eax, [eax + eax*4]
add eax, eax
add eax, eax
jmp 0x41615a
mov eax, dword [esp + 0x18]
cmp edi, 0x21
jle 0x41616d
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 + 0x168]
mov esi, esp
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], esp
call fcn.00403870
mov esi, ebp
call fcn.00405540
push 0x32
call ebx
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
add ecx, eax
push ecx
add edi, edx
jmp 0x416408
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
add eax, 0x1ae
push eax
push ecx
lea eax, [esp + 0x168]
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
push 0xc8
call ebx
mov eax, dword [esp + 0x160]
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 0x416230
inc edi
cmp edi, 7
jle 0x4161f3
mov dword [esp + 0x1c], 0
push 0xc8
call ebx
mov eax, dword [esp + 0x160]
add eax, 0xfffffff0
push eax
call fcn.00429de0
mov ecx, dword [0x47bb0c]
add esp, 4
lea edx, [esp + 0xa4]
push edx
mov esi, eax
push ebp
add esi, 0x10
mov dword [esp + 0x20], ecx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [esp + 0xa4]
push eax
push 0
push 0x1fffff
mov dword [esp + 0x54], 0
call dword [sym.imp.KERNEL32.dll_OpenProcess]
lea ecx, [esp + 0x13c]
push ecx
push 4
mov edi, eax
mov eax, dword [esp + 0x20]
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 + 0x9c]
push edx
push ebp
mov dword [esp + 0x20], ecx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [esp + 0x9c]
push eax
push 0
push 0x1fffff
mov dword [esp + 0x68], 0
call dword [sym.imp.KERNEL32.dll_OpenProcess]
lea ecx, [esp + 0x124]
push ecx
mov edi, eax
mov eax, dword [esp + 0x1c]
push 4
lea edx, [esp + 0x64]
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 + 0x5c]
add esi, 0xfffffff0
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41632e
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
cmp edi, 0x3e9
je 0x416348
mov eax, dword [esp + 0x1c]
inc eax
cmp eax, 7
mov dword [esp + 0x1c], eax
jle 0x416238
push 0xc8
call ebx
jmp case.0x4160ed.1002
cmp edi, 0xd
jle 0x416433
cmp dword [esp + 0x30], 0xb
jge 0x416433
xor esi, esi
mov dword [esp + 0x1c], esi
call fcn.0044bf34
cmp edi, 0xf
jge 0x416386
mov eax, 0xf
sub eax, edi
lea esi, [eax + eax*4]
add esi, esi
add esi, esi
mov ecx, dword [esp + 0x30]
cmp ecx, 0xd
jge 0x4163a1
mov eax, 0xc
sub eax, ecx
lea eax, [eax + eax*4]
add eax, eax
add eax, eax
mov dword [esp + 0x1c], eax
cmp edi, 0x21
jle 0x4163b4
mov eax, 0x21
sub eax, edi
lea esi, [eax + eax*4]
add esi, esi
add esi, esi
mov edx, dword [esp + 0x1c]
lea eax, [edi + edi*4]
add eax, eax
add eax, eax
mov edi, 0x20d
sub edi, eax
mov eax, dword [esp + 0x30]
lea ecx, [eax + eax*4 - 0xa]
lea eax, [edx + ecx*4]
push 0x5a
push ecx
mov dword [esp + 0x24], eax
sub edi, esi
lea eax, [esp + 0x168]
mov esi, esp
mov dword [esp + 0x20], esp
call fcn.00403870
mov esi, ebp
call fcn.00405540
push 0x32
call ebx
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
add edx, ecx
push edx
add edi, eax
push ecx
lea eax, [esp + 0x168]
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.0x4160ed.1002
mov ecx, dword [esp + 0x28]
add ecx, 0xe6
push ecx
push ecx
lea eax, [esp + 0x168]
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
push 0xc8
call ebx
mov eax, dword [esp + 0x160]
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 0x41649e
inc edi
cmp edi, 7
jle 0x416461
mov dword [esp + 0x1c], 0
push 0xc8
call ebx
mov eax, dword [esp + 0x160]
add eax, 0xfffffff0
push eax
call fcn.00429de0
mov edx, dword [0x47bb0c]
mov esi, eax
add esp, 4
lea eax, [esp + 0xac]
push eax
push ebp
add esi, 0x10
mov dword [esp + 0x20], edx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ecx, dword [esp + 0xac]
push ecx
push 0
push 0x1fffff
mov dword [esp + 0x4c], 0
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x12c]
push edx
mov edi, eax
push 4
lea eax, [esp + 0x48]
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 + 0x40]
lea eax, [esp + 0xb4]
push eax
push ebp
mov dword [esp + 0x20], edx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ecx, dword [esp + 0xb4]
push ecx
push 0
push 0x1fffff
mov dword [esp + 0x74], 0
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x134]
push edx
mov edi, eax
push 4
lea eax, [esp + 0x70]
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 + 0x68]
add esi, 0xfffffff0
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x41659d
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
cmp edi, 0x3e9
je 0x4165b7
mov eax, dword [esp + 0x1c]
inc eax
cmp eax, 7
mov dword [esp + 0x1c], eax
jle 0x4164a6
push 0xc8
call ebx
jmp case.0x4160ed.1002
lea ecx, [edi - 0x111]
cmp ecx, 0xf
ja 0x4168ad
mov edx, dword [esp + 0x30]
add edx, 0xffffffdd
cmp edx, 0x14
ja 0x4168ad
push ecx
lea eax, [esp + 0x164]
mov esi, esp
mov dword [esp + 0x1c], esp
call fcn.00403870
lea eax, [esp + 0xc4]
push eax
mov eax, ebp
call fcn.00405d80
add esp, 4
lea eax, [esp + 0x164]
mov esi, esp
mov dword [esp + 0x1c], esp
call fcn.00403870
mov eax, ebp
call fcn.004046f0
add esp, 4
test al, al
jne 0x416736
cmp dword [esp + 0xc0], 0x32
jne 0x416736
cmp dword [esp + 0xc4], 0xe6
jne 0x416736
push 0x47e5d8
mov byte [esp + 0x26], al
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [sym.imp.USER32.dll_GetForegroundWindow]
call esi
cmp eax, ebp
je 0x416681
mov edi, dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp 0x416670
push ebp
call edi
call fcn.00408120
push eax
call ebx
call esi
cmp eax, ebp
jne 0x416670
push ecx
lea eax, [esp + 0x164]
mov esi, esp
mov dword [esp + 0x1c], esp
call fcn.00403870
mov eax, ebp
call fcn.00406270
add esp, 4
cmp al, 1
je 0x4166d7
push 0x113
push ecx
lea eax, [esp + 0x168]
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 byte [esp + 0x22], 1
push 0x47e5d8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [esp + 0x22], 1
jne 0x4168a0
xor edi, edi
nop
push ecx
lea eax, [esp + 0x164]
mov esi, esp
mov dword [esp + 0x1c], esp
call fcn.00403870
mov eax, ebp
call fcn.00403f70
add esp, 4
cmp eax, 0x456
je 0x4168a0
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0xa
jle 0x4166f0
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x415d0b
push 0x514
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x7a
push ecx
lea eax, [esp + 0x168]
mov esi, esp
mov dword [esp + 0x20], esp
call fcn.00403870
mov esi, ebp
call fcn.00405540
mov ecx, dword [esp + 0x168]
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 + 0x168]
mov esi, esp
mov byte [esp + 0x160], 1
mov dword [esp + 0x24], esp
call fcn.00403870
lea edx, [esp + 0x118]
push edx
mov esi, ebp
mov byte [esp + 0x164], 0
call fcn.00408500
mov eax, dword [esp + 0x11c]
add esp, 0xc
test eax, eax
je 0x41689c
mov ecx, dword [esp + 0x114]
test ecx, ecx
je 0x41689c
push eax
push ecx
lea eax, [esp + 0x168]
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
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
push ecx
lea eax, [esp + 0x164]
mov esi, esp
mov dword [esp + 0x1c], esp
call fcn.00403870
lea eax, [esp + 0xe4]
push eax
mov eax, ebp
call fcn.00405d80
add esp, 4
lea eax, [esp + 0x164]
mov esi, esp
mov dword [esp + 0x1c], esp
call fcn.00403870
mov eax, ebp
call fcn.004046f0
add esp, 4
test al, al
jne 0x416857
cmp dword [esp + 0xe0], 0x32
jne 0x416857
cmp dword [esp + 0xe4], 0xe6
je 0x4168a0
cmp ebx, 8
jne 0x416885
push 0x115
push ecx
lea eax, [esp + 0x168]
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 0x4167f0
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x415d0b
mov dword [esp + 0x38], edi
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x415d0b
mov eax, dword [esp + 0x160]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
mov esi, esp
push eax
call fcn.00429de0
add eax, 0x10
lea ecx, [esp + 0x108]
add esp, 4
mov dword [esi], eax
push ecx
mov eax, ebp
call fcn.004060f0
mov eax, dword [esp + 0x168]
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 0x416a44
cmp dword [esp + 0x100], 0x295
jne 0x416a44
cmp dword [esp + 0x104], 0x1a3
jne 0x416a44
push ecx
lea eax, [esp + 0x164]
mov esi, esp
mov dword [esp + 0x1c], esp
call fcn.00403870
lea edx, [esp + 0x80]
push edx
mov eax, ebp
call fcn.00405d80
add esp, 8
cmp dword [esp + 0x7c], 0
jne 0x416967
mov eax, dword [esp + 0x80]
test eax, eax
je 0x4169a0
push 0
push 0
push ecx
lea eax, [esp + 0x16c]
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 + 0x7c], 0
mov dword [esp + 0x80], 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 + 0x168]
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 + 0x168]
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 + 0x38], 0
jmp case.0x4160ed.1002
mov eax, dword [esp + 0x160]
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.0x4160ed.1002
lea edx, [edi - 3]
cmp edx, 0x16
ja 0x416b86
mov eax, dword [esp + 0x30]
add eax, 0xffffffba
mov dword [esp + 0x18], eax
cmp eax, 0x10
ja 0x416b86
xor esi, esi
mov dword [esp + 0x1c], esi
call fcn.0044bf34
cmp edi, 0xf
jge 0x416ab6
mov eax, 0xf
sub eax, edi
lea eax, [eax + eax*4]
add eax, eax
add eax, eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x30]
cmp eax, 0xd
jge 0x416acd
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 + 0x1c]
lea edx, [ecx + ecx*4]
mov ecx, dword [esp + 0x28]
lea esi, [esi + edx*4]
mov edx, dword [esp + 0x24]
add esi, ecx
push esi
push ecx
lea edi, [eax + edx]
lea eax, [esp + 0x168]
mov esi, esp
mov dword [esp + 0x20], esp
call fcn.00403870
mov ecx, edi
mov edx, ebp
call fcn.004062f0
add esp, 8
xor edi, edi
lea ebx, [ebx]
push 0x12c
call ebx
push ecx
lea eax, [esp + 0x164]
mov esi, esp
mov dword [esp + 0x1c], esp
call fcn.00403870
mov eax, ebp
call fcn.00403f70
add esp, 4
cmp eax, 0x495
je case.0x4160ed.1002
cmp edi, 0xf
jne 0x416b7b
push 0xf0
push ecx
lea eax, [esp + 0x168]
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 0x416b20
jmp case.0x4160ed.1002
mov eax, dword [esp + 0x160]
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
lea eax, [esp + 0xf8]
add esp, 4
push eax
mov eax, ebp
call fcn.004060f0
mov eax, dword [esp + 0x168]
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 0x416a44
cmp dword [esp + 0xf0], 0x195
jne 0x416a44
cmp dword [esp + 0xf4], 0x1a3
jne 0x416a44
push ecx
lea eax, [esp + 0x164]
mov esi, esp
mov dword [esp + 0x1c], esp
call fcn.00403870
lea ecx, [esp + 0x90]
push ecx
mov eax, ebp
call fcn.00405d80
add esp, 8
cmp dword [esp + 0x8c], 0
jne 0x416c43
mov eax, dword [esp + 0x90]
test eax, eax
je 0x416c7f
push 0
push 0
push ecx
lea eax, [esp + 0x16c]
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 + 0x8c], 0
mov dword [esp + 0x90], eax
add eax, 0x178
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
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]
jmp 0x4169ea
push 0x4b0
call ebx
add edi, 0xffffffd3
cmp edi, 0xf
ja 0x416f81
mov edx, dword [esp + 0x30]
add edx, 0xfffffff6
cmp edx, 0x11
ja 0x416f81
push ecx
lea eax, [esp + 0x164]
mov esi, esp
mov dword [esp + 0x1c], esp
call fcn.00403870
lea eax, [esp + 0xcc]
push eax
mov eax, ebp
call fcn.00405d80
add esp, 4
lea eax, [esp + 0x164]
mov esi, esp
mov dword [esp + 0x1c], esp
call fcn.00403870
mov eax, ebp
call fcn.004046f0
add esp, 4
test al, al
jne 0x416e3e
cmp dword [esp + 0xc8], 0x32
jne 0x416e3e
cmp dword [esp + 0xcc], 0xe6
jne 0x416e3e
push 0x47e5d8
mov byte [esp + 0x26], al
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [sym.imp.USER32.dll_GetForegroundWindow]
call esi
cmp eax, ebp
je 0x416d91
mov edi, dword [sym.imp.USER32.dll_SetForegroundWindow]
lea ebx, [ebx]
push ebp
call edi
call fcn.00408120
push eax
call ebx
call esi
cmp eax, ebp
jne 0x416d80
push ecx
lea eax, [esp + 0x164]
mov esi, esp
mov dword [esp + 0x1c], esp
call fcn.00403870
mov eax, ebp
call fcn.00406270
add esp, 4
cmp al, 1
je 0x416de7
push 0x113
push ecx
lea eax, [esp + 0x168]
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 byte [esp + 0x22], 1
push 0x47e5d8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [esp + 0x22], 1
jne 0x416f78
xor edi, edi
nop
push ecx
lea eax, [esp + 0x164]
mov esi, esp
mov dword [esp + 0x1c], esp
call fcn.00403870
mov eax, ebp
call fcn.00403f70
add esp, 4
cmp eax, 0x443
je 0x416f78
push 0x12c
call ebx
inc edi
cmp edi, 0xa
jle 0x416e00
push 5
call ebx
jmp case.0x4160ed.1002
push ecx
lea eax, [esp + 0x164]
mov esi, esp
mov dword [esp + 0x1c], esp
call fcn.00403870
mov eax, ebp
call fcn.00406270
add esp, 4
cmp al, 1
je 0x416f78
push 0x7a
push ecx
lea eax, [esp + 0x168]
mov esi, esp
mov dword [esp + 0x20], esp
call fcn.00403870
mov esi, ebp
call fcn.00405540
push 0x34
push ecx
lea eax, [esp + 0x168]
mov esi, esp
mov edi, 0x11
mov dword [esp + 0x20], esp
call fcn.00403870
mov ecx, edi
mov esi, ebp
call fcn.00407980
add esp, 8
xor edi, edi
mov dword [esp + 0x1c], edi
jmp 0x416eb0
push 0x12c
call ebx
push ecx
lea eax, [esp + 0x164]
mov esi, esp
mov dword [esp + 0x1c], esp
call fcn.00403870
lea ecx, [esp + 0xdc]
push ecx
mov eax, ebp
call fcn.00405d80
add esp, 4
lea eax, [esp + 0x164]
mov esi, esp
mov dword [esp + 0x1c], esp
call fcn.00403870
mov eax, ebp
call fcn.004046f0
add esp, 4
test al, al
jne 0x416f13
cmp dword [esp + 0xd8], 0x32
jne 0x416f13
cmp dword [esp + 0xdc], 0xe6
je 0x416f78
cmp edi, 0xa
jne 0x416f6a
mov edx, dword [esp + 0x168]
push edx
push ecx
lea eax, [esp + 0x168]
mov esi, esp
mov dword [esp + 0x20], esp
call fcn.00403870
mov ecx, ebp
call fcn.00408690
add esp, 8
push 0x147
push ecx
lea eax, [esp + 0x168]
mov esi, esp
mov edi, 0x13e
mov dword [esp + 0x20], esp
call fcn.00403870
mov ecx, edi
mov edx, ebp
call fcn.004062f0
mov edi, dword [esp + 0x24]
add esp, 8
inc edi
cmp edi, 0xa
mov dword [esp + 0x1c], edi
jle 0x416eb0
push 5
call ebx
jmp case.0x4160ed.1002
mov eax, dword [esp + 0x160]
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
lea eax, [esp + 0xf0]
add esp, 4
push eax
mov eax, ebp
call fcn.004060f0
mov eax, dword [esp + 0x168]
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 0x416a44
cmp dword [esp + 0xe8], 0x2bb
jne 0x416a44
cmp dword [esp + 0xec], 0xfb
jne 0x416a44
push ecx
lea eax, [esp + 0x164]
mov esi, esp
mov dword [esp + 0x1c], esp
call fcn.00403870
lea ecx, [esp + 0x78]
push ecx
mov eax, ebp
call fcn.00405d80
add esp, 8
cmp dword [esp + 0x74], 0
jne 0x417035
mov eax, dword [esp + 0x78]
test eax, eax
je 0x41706b
push 0
push 0
push ecx
lea eax, [esp + 0x16c]
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, 0x127
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fsub qword [0x46f280]
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 + 0x4d]
lea eax, [esp + 0x168]
mov esi, esp
mov dword [esp + 0x20], esp
call fcn.00403870
mov ecx, edi
mov edx, ebp
call fcn.004062f0
add esp, 8
push 0x514
call ebx
push 0x18
push ecx
lea eax, [esp + 0x168]
mov esi, esp
mov dword [esp + 0x20], esp
call fcn.00403870
mov edi, ebp
call fcn.004054b0
add esp, 8
mov dword [esp + 0x38], 0
jmp case.0x4160ed.1002
cmp byte [esp + 0x23], 0
jne 0x417525
add edi, 0xffffffcc
cmp edi, 9
ja 0x4173f2
mov edx, dword [esp + 0x30]
add edx, 0xffffffea
cmp edx, 0xa
ja 0x4173f2
push ecx
lea eax, [esp + 0x164]
mov esi, esp
mov dword [esp + 0x1c], esp
call fcn.00403870
mov eax, ebp
call fcn.00406270
add esp, 4
cmp al, 1
je case.0x4160ed.1002
push ecx
lea eax, [esp + 0x164]
mov esi, esp
mov dword [esp + 0x1c], esp
call fcn.00403870
lea eax, [esp + 0x64]
push eax
mov eax, ebp
call fcn.00405d80
add esp, 4
lea eax, [esp + 0x164]
mov esi, esp
mov dword [esp + 0x1c], esp
call fcn.00403870
mov eax, ebp
call fcn.004046f0
add esp, 4
test al, al
jne 0x41733a
cmp dword [esp + 0x60], 0x32
jne 0x41733a
cmp dword [esp + 0x64], 0xe6
jne 0x41733a
push 0x47e5d8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [sym.imp.USER32.dll_GetForegroundWindow]
call esi
cmp eax, ebp
je 0x4171e1
mov edi, dword [sym.imp.USER32.dll_SetForegroundWindow]
lea ecx, [ecx]
push ebp
call edi
call fcn.00408120
push eax
call ebx
call esi
cmp eax, ebp
jne 0x4171d0
push ecx
lea eax, [esp + 0x164]
mov esi, esp
mov dword [esp + 0x1c], esp
call fcn.00403870
mov eax, ebp
call fcn.00406270
add esp, 4
cmp al, 1
je 0x417232
push 0x153
push ecx
lea eax, [esp + 0x168]
mov esi, esp
mov edi, 0x8f
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 dword [esp + 0x1c], 0
lea ebx, [ebx]
push 0x12c
call ebx
push ecx
lea eax, [esp + 0x164]
mov esi, esp
mov dword [esp + 0x1c], esp
call fcn.00403870
mov eax, ebp
call fcn.00406270
add esp, 4
cmp al, 1
je 0x4172c9
push ecx
lea eax, [esp + 0x164]
mov esi, esp
mov dword [esp + 0x1c], esp
call fcn.00403870
lea ecx, [esp + 0x144]
push ecx
mov eax, ebp
call fcn.00405d80
mov edi, dword [eax]
mov edx, dword [eax + 4]
add esp, 4
lea eax, [esp + 0x164]
mov esi, esp
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], edx
mov dword [esp + 0x1c], esp
call fcn.00403870
mov eax, ebp
call fcn.004046f0
add esp, 4
test al, al
jne 0x4172c9
cmp edi, 0x32
jne 0x4172c9
cmp dword [esp + 0x64], 0xe6
je 0x4172db
mov eax, dword [esp + 0x1c]
inc eax
cmp eax, 0xa
mov dword [esp + 0x1c], eax
jle 0x417240
push ecx
lea eax, [esp + 0x164]
mov esi, esp
mov dword [esp + 0x1c], esp
call fcn.00403870
mov eax, ebp
call fcn.00406270
add esp, 4
cmp al, 1
je 0x41732a
push 0xf0
push ecx
lea eax, [esp + 0x168]
mov esi, esp
mov edi, 0x203
mov dword [esp + 0x20], esp
call fcn.00403870
mov ecx, edi
mov edx, ebp
call fcn.004062f0
add esp, 8
mov byte [esp + 0x23], 1
push 0x47e5d8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp case.0x4160ed.1002
push 0x7a
push ecx
lea eax, [esp + 0x168]
mov esi, esp
mov dword [esp + 0x20], esp
call fcn.00403870
mov esi, ebp
call fcn.00405540
push 0x38
push ecx
lea eax, [esp + 0x168]
mov esi, esp
mov edi, 0x1c
mov dword [esp + 0x20], esp
call fcn.00403870
mov ecx, edi
mov esi, ebp
call fcn.00407980
add esp, 8
xor edi, edi
mov edi, edi
push 0x12c
call ebx
push ecx
lea eax, [esp + 0x164]
mov esi, esp
mov dword [esp + 0x1c], esp
call fcn.00403870
lea eax, [esp + 0xfc]
push eax
mov eax, ebp
call fcn.00405d80
add esp, 4
lea eax, [esp + 0x164]
mov esi, esp
mov dword [esp + 0x1c], esp
call fcn.00403870
mov eax, ebp
call fcn.004046f0
add esp, 4
test al, al
jne 0x4173e7
cmp dword [esp + 0xf8], 0x32
jne 0x4173e7
cmp dword [esp + 0xfc], 0xe6
je case.0x4160ed.1002
inc edi
cmp edi, 8
jle 0x417380
jmp case.0x4160ed.1002
mov eax, dword [esp + 0x160]
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.004046f0
add esp, 4
test al, al
lea eax, [esp + 0x160]
jne 0x417508
push ecx
mov esi, esp
mov dword [esp + 0x1c], esp
call fcn.00403870
lea ecx, [esp + 0x88]
push ecx
mov eax, ebp
call fcn.00405d80
add esp, 8
cmp dword [esp + 0x84], 0
jne 0x41745d
mov eax, dword [esp + 0x88]
test eax, eax
je 0x417499
push 0
push 0
push ecx
lea eax, [esp + 0x16c]
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 + 0x84], 0
mov dword [esp + 0x88], eax
add eax, 0x178
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fsub qword [0x46f278]
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 + 0x101]
lea eax, [esp + 0x168]
mov esi, esp
mov dword [esp + 0x20], esp
call fcn.00403870
mov ecx, edi
mov edx, ebp
call fcn.004062f0
add esp, 8
jmp 0x416a11
push 0x18
push ecx
mov esi, esp
mov dword [esp + 0x20], esp
call fcn.00403870
mov edi, ebp
call fcn.004054b0
add esp, 8
jmp case.0x4160ed.1002
add edi, 0xfffffff4
cmp edi, 0x32
ja 0x4177f0
mov edx, dword [esp + 0x30]
add edx, 0xffffffcc
cmp edx, 0xc
ja 0x4177f0
push ecx
lea eax, [esp + 0x164]
mov esi, esp
mov dword [esp + 0x1c], esp
call fcn.00403870
lea eax, [esp + 0x10c]
push eax
mov eax, ebp
call fcn.00405d80
add esp, 4
lea eax, [esp + 0x164]
mov esi, esp
mov dword [esp + 0x1c], esp
call fcn.00403870
mov eax, ebp
call fcn.004046f0
add esp, 4
test al, al
jne 0x41768a
cmp dword [esp + 0x108], 0x32
jne 0x41768a
cmp dword [esp + 0x10c], 0xe6
jne 0x41768a
push 0x47e5d8
mov byte [esp + 0x26], al
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [sym.imp.USER32.dll_GetForegroundWindow]
call esi
cmp eax, ebp
je 0x4175e1
mov edi, dword [sym.imp.USER32.dll_SetForegroundWindow]
lea ebx, [ebx]
push ebp
call edi
call fcn.00408120
push eax
call ebx
call esi
cmp eax, ebp
jne 0x4175d0
push ecx
lea eax, [esp + 0x164]
mov esi, esp
mov dword [esp + 0x1c], esp
call fcn.00403870
mov eax, ebp
call fcn.00406270
add esp, 4
cmp al, 1
je 0x417630
push 0x113
push ecx
lea eax, [esp + 0x168]
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
mov byte [esp + 0x22], 1
push 0x47e5d8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [esp + 0x22], 1
jne case.0x4160ed.1002
xor edi, edi
jmp 0x417650
push ecx
lea eax, [esp + 0x164]
mov esi, esp
mov dword [esp + 0x1c], esp
call fcn.00403870
mov eax, ebp
call fcn.00403f70
add esp, 4
cmp eax, 0x457
je case.0x4160ed.1002
push 0x12c
call ebx
inc edi
cmp edi, 0xa
jle 0x417650
jmp case.0x4160ed.1002
push ecx
lea eax, [esp + 0x164]
mov esi, esp
mov dword [esp + 0x1c], esp
call fcn.00403870
mov eax, ebp
call fcn.00406270
add esp, 4
cmp al, 1
je case.0x4160ed.1002
push 0x7a
push ecx
lea eax, [esp + 0x168]
mov esi, esp
mov dword [esp + 0x20], esp
call fcn.00403870
mov esi, ebp
call fcn.00405540
push 0x15
push ecx
lea eax, [esp + 0x168]
mov esi, esp
mov edi, 0x3b
mov dword [esp + 0x20], esp
call fcn.00403870
mov ecx, edi
mov esi, ebp
call fcn.00407980
add esp, 8
xor edi, edi
mov dword [esp + 0x1c], edi
push 0x12c
call ebx
push ecx
lea eax, [esp + 0x164]
mov esi, esp
mov dword [esp + 0x1c], esp
call fcn.00403870
lea ecx, [esp + 0x14c]
push ecx
mov eax, ebp
call fcn.00405d80
mov edx, dword [esp + 0x170]
mov eax, dword [edx + 0x64]
push eax
lea ecx, [esp + 0x40]
push ecx
mov ecx, ebp
call fcn.00404c30
add esp, 0xc
mov byte [esp + 0x15c], 2
lea eax, [esp + 0x164]
mov esi, esp
mov dword [esp + 0x1c], esp
call fcn.00403870
mov eax, ebp
call fcn.004046f0
add esp, 4
test al, al
jne 0x417784
mov eax, dword [esp + 0x34]
cmp dword [eax - 0xc], 0
jl 0x417784
push 0x46dcc0
push eax
call fcn.0044d4ee
add esp, 8
test eax, eax
je 0x417784
sub eax, dword [esp + 0x34]
jns 0x4177da
cmp edi, 0xf
jne 0x4177b6
push 0xf0
push ecx
lea eax, [esp + 0x168]
mov esi, esp
mov edi, 0x203
mov dword [esp + 0x20], esp
call fcn.00403870
mov ecx, edi
mov edx, ebp
call fcn.004062f0
mov edi, dword [esp + 0x24]
add esp, 8
lea ecx, [esp + 0x34]
mov byte [esp + 0x158], 0
call fcn.004020d0
inc edi
cmp edi, 0xf
mov dword [esp + 0x1c], edi
jle 0x4176f7
jmp case.0x4160ed.1002
lea ecx, [esp + 0x34]
mov byte [esp + 0x158], 0
call fcn.004020d0
jmp case.0x4160ed.1002
mov eax, dword [esp + 0x160]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
mov esi, esp
push eax
call fcn.00429de0
add eax, 0x10
lea edx, [esp + 0x120]
add esp, 4
mov dword [esi], eax
push edx
mov eax, ebp
call fcn.004060f0
mov eax, dword [esp + 0x168]
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 0x416a44
cmp dword [esp + 0x118], 0x1b0
jne 0x416a44
cmp dword [esp + 0x11c], 0x1a3
jne 0x416a44
push ecx
lea eax, [esp + 0x164]
mov esi, esp
mov dword [esp + 0x1c], esp
call fcn.00403870
lea eax, [esp + 0x98]
push eax
mov eax, ebp
call fcn.00405d80
add esp, 8
cmp dword [esp + 0x94], 0
jne 0x4178ad
mov eax, dword [esp + 0x98]
test eax, eax
je 0x4178e9
push 0
push 0
push ecx
lea eax, [esp + 0x16c]
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 + 0x94], 0
mov dword [esp + 0x98], eax
add eax, 0x178
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fsub qword [0x46f2a0]
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 + 0xcb]
jmp 0x4169ea
mov edx, dword [esp + 0x168]
mov eax, dword [esp + 0x160]
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
lea eax, [edi - 0x8c]
add esp, 8
cmp eax, 0x3fa
ja 0x417a5e
mov esi, dword [esp + 0x30]
lea ecx, [esi - 0x3a]
cmp ecx, 0x1b
ja 0x417a5e
push 0x3e8
call ebx
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
call fcn.0044bf34
cmp edi, 0xf
jge 0x4179b5
mov eax, 0xf
sub eax, edi
lea ecx, [eax + eax*4]
add ecx, ecx
add ecx, ecx
jmp 0x4179b9
mov ecx, dword [esp + 0x18]
cmp esi, 0xd
jge 0x4179ce
mov eax, 0xc
sub eax, esi
lea edx, [eax + eax*4]
add edx, edx
add edx, edx
jmp 0x4179d2
mov edx, dword [esp + 0x1c]
lea eax, [edi + edi*4]
add eax, eax
add eax, eax
mov edi, eax
mov eax, 0xc71
sub eax, edi
sub eax, ecx
lea ecx, [esi + esi*4 - 0x10e]
lea ecx, [edx + ecx*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 + 0x168]
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 ecx
lea eax, [esp + 0x164]
mov esi, esp
mov dword [esp + 0x1c], esp
call fcn.00403870
mov eax, ebp
call fcn.00403f70
add esp, 4
cmp eax, 0x458
je case.0x4160ed.1002
push 0x1f4
call ebx
inc edi
cmp edi, 0xc
jle 0x417a24
jmp case.0x4160ed.1002
mov eax, dword [esp + 0x160]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x1c], 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 + 0x168]
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 0x416a44
cmp dword [esp + 0xd0], 0x216
jne 0x416a44
cmp dword [esp + 0xd4], 0x1a3
jne 0x416a44
push ecx
lea eax, [esp + 0x164]
mov esi, esp
mov dword [esp + 0x1c], 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 0x417b12
mov eax, dword [esp + 0x70]
test eax, eax
je 0x417b48
push 0
push 0
push ecx
lea eax, [esp + 0x16c]
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 [0x46f298]
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 + 0x166]
lea eax, [esp + 0x168]
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 + 0x168]
mov esi, esp
mov dword [esp + 0x20], esp
call fcn.00403870
mov edi, ebp
call fcn.004054b0
add esp, 8
push 0x190
call ebx
mov dword [esp + 0x38], 0
jmp case.0x4160ed.1002
cmp dword [esp + 0x16c], 1
jne 0x417ca2
cmp edi, 0x46
jle 0x417c72
push 0x5a
push ecx
lea eax, [esp + 0x168]
mov esi, esp
mov dword [esp + 0x20], esp
call fcn.00403870
mov esi, ebp
call fcn.00405540
mov eax, dword [esp + 0x30]
lea edx, [edi + edi*4]
add edx, edx
lea edi, [eax + eax*4 - 0x2d]
add edx, edx
mov esi, 0x5f5
add edi, edi
push 0x32
sub esi, edx
add edi, edi
call ebx
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
add edi, eax
push edi
push ecx
lea edi, [esi + ecx]
lea eax, [esp + 0x168]
mov esi, esp
mov dword [esp + 0x20], esp
call fcn.00403870
mov ecx, edi
mov edx, ebp
call fcn.004062f0
add esp, 8
push 0x1f4
call ebx
jmp case.0x4160ed.1002
mov eax, dword [esp + 0x168]
lea edx, [esp + 0x58]
push edx
push 1
push eax
push ebp
push ecx
lea eax, [esp + 0x174]
mov esi, esp
mov dword [esp + 0x2c], esp
call fcn.00403870
call fcn.004091a0
add esp, 0x14
jmp case.0x4160ed.1002
cmp edi, 0x28
lea eax, [esp + 0x160]
jle 0x417d8a
mov edi, dword [esp + 0x168]
push 0x13
push 0x40
push edi
push ecx
mov esi, esp
mov dword [esp + 0x28], esp
call fcn.00403870
mov ecx, ebp
call fcn.00407a80
add esp, 0x10
push 0x15
push 0x3a
push edi
push ecx
lea eax, [esp + 0x170]
mov esi, esp
mov dword [esp + 0x28], esp
call fcn.00403870
mov ecx, ebp
call fcn.00407a80
add esp, 0x10
push 0x19
push 0x32
push edi
push ecx
lea eax, [esp + 0x170]
mov esi, esp
mov dword [esp + 0x28], esp
call fcn.00403870
mov ecx, ebp
call fcn.00407a80
add esp, 0x10
push 0x1c
push 0x29
push edi
push ecx
lea eax, [esp + 0x170]
mov esi, esp
mov dword [esp + 0x28], esp
call fcn.00403870
mov ecx, ebp
call fcn.00407a80
add esp, 0x10
push 0x20
push 0x27
push edi
push ecx
lea eax, [esp + 0x170]
mov esi, esp
mov dword [esp + 0x28], esp
call fcn.00403870
mov ecx, ebp
call fcn.00407a80
add esp, 0x10
push 0x24
push 0x22
push edi
push ecx
lea eax, [esp + 0x170]
mov esi, esp
mov dword [esp + 0x28], esp
call fcn.00403870
mov ecx, ebp
call fcn.00407a80
add esp, 0x10
push 0x1f4
call ebx
jmp case.0x4160ed.1002
mov edx, dword [esp + 0x168]
lea ecx, [esp + 0x58]
push ecx
push 2
push edx
push ebp
push ecx
mov esi, esp
mov dword [esp + 0x2c], esp
call fcn.00403870
call fcn.004091a0
add esp, 0x14
jmp case.0x4160ed.1002
call fcn.00401ea0
ret