Function at 0x1014d990
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b8
push esi
push edi
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
jne 0x1014d9b9
mov eax, 0x16
jmp 0x10155b54
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
jne 0x1014d9d2
mov eax, 0x16
jmp 0x10155b54
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x2b0]
mov dword [ebp - 0x148], eax
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x1c], 0x900
jg 0x1014da21
cmp dword [ebp - 0x1c], 0x900
je 0x1014fe92
mov edx, dword [ebp - 0x1c]
sub edx, 1
mov dword [ebp - 0x1c], edx
cmp dword [ebp - 0x1c], 0x31
ja case.default.0x1014dab1
mov eax, dword [ebp - 0x1c]
jmp dword [eax*4 + 0x10155b5c]
cmp dword [ebp - 0x1c], 0x2001
jg 0x1014dab8
cmp dword [ebp - 0x1c], 0x2001
je 0x1015370c
cmp dword [ebp - 0x1c], 0x1200
jg 0x1014da98
cmp dword [ebp - 0x1c], 0x1200
je 0x1014e108
cmp dword [ebp - 0x1c], 0x903
jg 0x1014da86
cmp dword [ebp - 0x1c], 0x903
je 0x101504ab
cmp dword [ebp - 0x1c], 0x901
je 0x10150083
cmp dword [ebp - 0x1c], 0x902
je 0x10150754
jmp case.default.0x1014dab1
cmp dword [ebp - 0x1c], 0x1007
je 0x1014ecd2
jmp case.default.0x1014dab1
mov ecx, dword [ebp - 0x1c]
sub ecx, 0x1202
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x1c], 4
ja case.default.0x1014dab1
mov edx, dword [ebp - 0x1c]
jmp dword [edx*4 + 0x10155c24]
cmp dword [ebp - 0x1c], 0x8002
jg 0x1014db15
cmp dword [ebp - 0x1c], 0x8002
je 0x101539ee
cmp dword [ebp - 0x1c], 0x3005
jg 0x1014db03
cmp dword [ebp - 0x1c], 0x3005
je 0x1014ef26
cmp dword [ebp - 0x1c], 0x3001
je 0x1014eedc
cmp dword [ebp - 0x1c], 0x3002
je 0x1014ef32
jmp case.default.0x1014dab1
cmp dword [ebp - 0x1c], 0x8001
je 0x1015399a
jmp case.default.0x1014dab1
cmp dword [ebp - 0x1c], 0x8009
jg 0x1014db4a
cmp dword [ebp - 0x1c], 0x8009
je 0x101509d6
cmp dword [ebp - 0x1c], 0x8007
je 0x10150966
cmp dword [ebp - 0x1c], 0x8008
je 0x1015099e
jmp case.default.0x1014dab1
cmp dword [ebp - 0x1c], 0x9f00
je 0x10151b46
jmp case.default.0x1014dab1
cmp dword [ebp + 0x14], 4
jae 0x1014db70
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x100], eax
mov dword [ebp - 0x7c], 0
cmp dword [ebp - 0xc], 0
je 0x1014db8b
jmp 0x10155b51
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xfc], ecx
mov edx, dword [ebp - 0xfc]
sub edx, 4
mov dword [ebp - 0xfc], edx
cmp dword [ebp - 0xfc], 0x17
ja case.0x1014dbbd.2
mov eax, dword [ebp - 0xfc]
movzx ecx, byte [eax + 0x10155c58]
jmp dword [ecx*4 + 0x10155c38]
mov dword [ebp - 0x7c], 0x100000
jmp case.0x1014dbbd.2
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xd0]
and eax, 4
je 0x1014dc05
cmp dword [0x10405ff4], 0
jne 0x1014dbfc
mov ecx, dword [ebp - 0x100]
cmp dword [ecx], 0
je 0x1014dbfc
mov eax, 1
jmp 0x10155b54
mov dword [ebp - 0x7c], 0x40
jmp 0x1014dc0f
mov eax, 0x16
jmp 0x10155b54
jmp case.0x1014dbbd.2
mov dword [ebp - 0x7c], 0x400000
jmp case.0x1014dbbd.2
mov dword [ebp - 0x7c], 2
jmp case.0x1014dbbd.2
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xd0]
and eax, 0x4000000
je 0x1014dc42
mov dword [ebp - 0x7c], 0x800000
jmp 0x1014dc4c
mov eax, 0x16
jmp 0x10155b54
jmp case.0x1014dbbd.2
mov dword [ebp - 0x7c], 0x100
jmp case.0x1014dbbd.2
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xd0]
and edx, 2
jne 0x1014dc76
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xd0]
and ecx, 0x400000
je 0x1014dc80
mov eax, 0x16
jmp 0x10155b54
mov dword [ebp - 0x7c], 0x200
mov edx, dword [ebp - 0x100]
mov eax, dword [edx]
push eax
call fcn.1017ab50
add esp, 4
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x1e4], eax
mov edx, dword [ebp - 8]
add edx, 0x264
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x100]
cmp dword [eax], 0
je 0x1014dce0
mov eax, dword [ebp - 0x7c]
cdq
mov ecx, dword [ebp - 8]
or eax, dword [ecx + 0xc8]
or edx, dword [ecx + 0xcc]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0xc8], eax
mov dword [ecx + 0xcc], edx
jmp 0x1014dd04
mov eax, dword [ebp - 0x7c]
not eax
cdq
mov ecx, dword [ebp - 8]
and eax, dword [ecx + 0xc8]
and edx, dword [ecx + 0xcc]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0xc8], eax
mov dword [ecx + 0xcc], edx
mov edx, dword [ebp - 8]
add edx, 0x264
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10155b51
cmp dword [ebp + 0x14], 4
jae 0x1014dd2d
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x100], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xd0]
and edx, 0x10
jne 0x1014dd50
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xd0]
and ecx, 1
je 0x1014dd6a
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
cmp dword [ebp + 0x10], 0
je 0x1014dd95
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc8]
or eax, 0x2000000
mov ecx, dword [edx + 0xcc]
mov edx, dword [ebp - 8]
mov dword [edx + 0xc8], eax
mov dword [edx + 0xcc], ecx
jmp 0x1014ddb9
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc8]
and ecx, 0xfdffffff
mov edx, dword [eax + 0xcc]
mov eax, dword [ebp - 8]
mov dword [eax + 0xc8], ecx
mov dword [eax + 0xcc], edx
jmp 0x10155b51
cmp dword [ebp + 0x14], 4
jae 0x1014ddd2
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x14c], ecx
mov edx, dword [ebp - 0x14c]
mov eax, dword [ebp + 8]
mov ecx, dword [edx]
cmp ecx, dword [eax + 0x8c]
jbe 0x1014ddfa
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x14c]
mov ecx, dword [eax]
mov dword [edx + 0x218], ecx
jmp 0x10155b51
cmp dword [ebp + 0x14], 4
jae 0x1014de24
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x138], edx
mov eax, dword [ebp - 0x138]
cmp dword [eax], 2
jne 0x1014de7f
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc8]
or edx, 8
mov eax, dword [ecx + 0xcc]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0xc8], edx
mov dword [ecx + 0xcc], eax
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc8]
or eax, 0x10
mov ecx, dword [edx + 0xcc]
mov edx, dword [ebp - 8]
mov dword [edx + 0xc8], eax
mov dword [edx + 0xcc], ecx
jmp 0x1014df24
mov eax, dword [ebp - 0x138]
cmp dword [eax], 1
jne 0x1014dece
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc8]
or edx, 8
mov eax, dword [ecx + 0xcc]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0xc8], edx
mov dword [ecx + 0xcc], eax
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc8]
and eax, 0xffffffef
mov ecx, dword [edx + 0xcc]
mov edx, dword [ebp - 8]
mov dword [edx + 0xc8], eax
mov dword [edx + 0xcc], ecx
jmp 0x1014df24
mov eax, dword [ebp - 0x138]
cmp dword [eax], 0
jne 0x1014df1d
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc8]
and edx, 0xfffffff7
mov eax, dword [ecx + 0xcc]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0xc8], edx
mov dword [ecx + 0xcc], eax
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc8]
and eax, 0xffffffef
mov ecx, dword [edx + 0xcc]
mov edx, dword [ebp - 8]
mov dword [edx + 0xc8], eax
mov dword [edx + 0xcc], ecx
jmp 0x1014df24
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
cmp dword [ebp + 0x14], 8
jae 0x1014df3d
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x104], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xd0]
and edx, 2
jne 0x1014df65
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xd0]
and ecx, 0x400000
je 0x1014dfa8
mov edx, dword [ebp - 8]
add edx, 0x264
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x210]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
je 0x1014df97
mov edx, dword [ebp - 4]
add edx, 0x57c
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 8]
add eax, 0x264
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1014dfe8
mov ecx, dword [ebp - 0x104]
cmp dword [ecx], 2
jbe 0x1014dfe1
push 1
mov edx, dword [ebp - 0x104]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.10180640
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1014dfdf
mov dword [ebp - 0xc], 2
jmp 0x10155b51
jmp 0x1014dfe8
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x1014e00a
mov dword [ebp - 0xc], 0x16
mov edx, dword [ebp - 4]
add edx, 0x57c
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1014e103
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xd0]
and ecx, 2
jne 0x1014e049
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xd0]
and eax, 0x400000
jne 0x1014e049
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xd0]
and edx, 1
je 0x1014e0fc
mov eax, dword [ebp - 0x104]
cmp dword [eax], 0
jne 0x1014e0fc
mov ecx, dword [ebp - 8]
add ecx, 0x264
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp - 0x104]
cmp dword [edx + 4], 0
jne 0x1014e071
mov eax, dword [ebp - 8]
mov byte [eax + 0x22f], 0
jmp 0x1014e0ea
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc8]
and edx, 8
mov eax, dword [ecx + 0xcc]
and eax, 0
mov dword [ebp - 0x1b0], edx
mov dword [ebp - 0x1ac], eax
cmp dword [ebp - 0x1b0], 8
jne 0x1014e0e3
cmp dword [ebp - 0x1ac], 0
jne 0x1014e0e3
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc8]
and edx, 0x10
mov eax, dword [ecx + 0xcc]
and eax, 0
mov dword [ebp - 0x1b8], edx
mov dword [ebp - 0x1b4], eax
cmp dword [ebp - 0x1b8], 0x10
jne 0x1014e0e3
cmp dword [ebp - 0x1b4], 0
jne 0x1014e0e3
mov ecx, dword [ebp - 8]
mov byte [ecx + 0x22f], 1
jmp 0x1014e0ea
mov dword [ebp - 0xc], 0x16
mov edx, dword [ebp - 8]
add edx, 0x264
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1014e103
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
cmp dword [0x1040608c], 0
je 0x1014e2ff
cmp dword [ebp + 0x14], 8
jae 0x1014e129
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x70]
cmp dword [ecx + 4], 4
jbe 0x1014e144
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xd0]
and eax, 2
jne 0x1014e163
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xd0]
and edx, 0x400000
je 0x1014e1a5
mov eax, dword [ebp - 8]
add eax, 0x264
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x210]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x1014e193
mov eax, dword [ebp - 4]
add eax, 0x57c
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 8]
add ecx, 0x264
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1014e1df
mov edx, dword [ebp - 0x70]
cmp dword [edx], 2
jbe 0x1014e1d8
push 1
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.10180640
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1014e1d6
mov dword [ebp - 0xc], 2
jmp 0x10155b51
jmp 0x1014e1df
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x1014e208
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x70]
mov dl, byte [ecx + 4]
mov byte [eax + 0x4d9], dl
mov eax, dword [ebp - 4]
add eax, 0x57c
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1014e2fd
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xd0]
and edx, 2
jne 0x1014e245
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xd0]
and ecx, 0x400000
jne 0x1014e245
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xd0]
and eax, 1
je 0x1014e273
mov ecx, dword [ebp - 0x70]
cmp dword [ecx], 0
je 0x1014e245
mov edx, dword [ebp - 0x70]
cmp dword [edx], 2
jne 0x1014e273
mov eax, dword [ebp - 8]
add eax, 0x264
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x70]
mov eax, dword [edx + 4]
mov dword [ecx + 0x228], eax
mov ecx, dword [ebp - 8]
add ecx, 0x264
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xd0]
and eax, 1
je 0x1014e2fd
mov ecx, dword [ebp - 0x70]
cmp dword [ecx], 1
je 0x1014e291
mov edx, dword [ebp - 0x70]
cmp dword [edx], 2
jne 0x1014e2fd
mov eax, dword [ebp - 8]
add eax, 0x264
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x210]
mov dword [ebp - 4], edx
jmp 0x1014e2b7
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
je 0x1014e2ed
mov edx, dword [ebp - 4]
add edx, 0x57c
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x70]
mov dl, byte [ecx + 4]
mov byte [eax + 0x4d9], dl
mov eax, dword [ebp - 4]
add eax, 0x57c
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1014e2ae
mov ecx, dword [ebp - 8]
add ecx, 0x264
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1014e306
mov dword [ebp - 0xc], 0x7b
jmp 0x10155b51
cmp dword [ebp + 0x14], 8
jae 0x1014e31f
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x44]
cmp dword [eax + 4], 0
je 0x1014e355
mov ecx, dword [ebp - 0x44]
cmp dword [ecx + 4], 1
je 0x1014e355
mov edx, dword [ebp - 0x44]
cmp dword [edx + 4], 2
je 0x1014e355
mov eax, dword [ebp - 0x44]
cmp dword [eax + 4], 3
je 0x1014e355
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xd0]
and edx, 2
jne 0x1014e374
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xd0]
and ecx, 0x400000
je 0x1014e3b7
mov edx, dword [ebp - 8]
add edx, 0x264
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x210]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
je 0x1014e3a6
mov edx, dword [ebp - 4]
add edx, 0x57c
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 8]
add eax, 0x264
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1014e3f1
mov ecx, dword [ebp - 0x44]
cmp dword [ecx], 2
jbe 0x1014e3ea
push 1
mov edx, dword [ebp - 0x44]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.10180640
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1014e3e8
mov dword [ebp - 0xc], 2
jmp 0x10155b51
jmp 0x1014e3f1
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x1014e47b
mov edx, dword [ebp - 0x44]
imul esi, dword [edx + 4], 0x38
add esi, 0x10367fd0
mov edi, dword [ebp - 4]
add edi, 0x248
mov ecx, 0xe
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 4]
mov dword [eax + 0x280], edx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x248], 0
je 0x1014e467
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x1c4]
mov dword [ebp - 0x80], edx
jmp 0x1014e449
mov eax, dword [ebp - 0x80]
mov ecx, dword [eax]
mov dword [ebp - 0x80], ecx
cmp dword [ebp - 0x80], 0
je 0x1014e467
mov edx, dword [ebp - 0x80]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x248]
call edx
add esp, 8
jmp 0x1014e441
mov eax, dword [ebp - 4]
add eax, 0x57c
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1014e5dd
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xd0]
and edx, 2
jne 0x1014e4b8
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xd0]
and ecx, 0x400000
jne 0x1014e4b8
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xd0]
and eax, 1
je 0x1014e4e6
mov ecx, dword [ebp - 0x44]
cmp dword [ecx], 0
je 0x1014e4b8
mov edx, dword [ebp - 0x44]
cmp dword [edx], 2
jne 0x1014e4e6
mov eax, dword [ebp - 8]
add eax, 0x264
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + 4]
mov dword [ecx + 0x158], eax
mov ecx, dword [ebp - 8]
add ecx, 0x264
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xd0]
and eax, 1
je 0x1014e5dd
mov ecx, dword [ebp - 0x44]
cmp dword [ecx], 1
je 0x1014e50c
mov edx, dword [ebp - 0x44]
cmp dword [edx], 2
jne 0x1014e5dd
mov eax, dword [ebp - 8]
add eax, 0x264
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x210]
mov dword [ebp - 4], edx
jmp 0x1014e532
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
je 0x1014e5cd
mov edx, dword [ebp - 4]
add edx, 0x57c
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x44]
imul esi, dword [eax + 4], 0x38
add esi, 0x10367fd0
mov edi, dword [ebp - 4]
add edi, 0x248
mov ecx, 0xe
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + 4]
mov dword [ecx + 0x280], eax
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x248], 0
je 0x1014e5b8
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x1c4]
mov dword [ebp - 0x80], eax
jmp 0x1014e59a
mov ecx, dword [ebp - 0x80]
mov edx, dword [ecx]
mov dword [ebp - 0x80], edx
cmp dword [ebp - 0x80], 0
je 0x1014e5b8
mov eax, dword [ebp - 0x80]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x248]
call eax
add esp, 8
jmp 0x1014e592
mov ecx, dword [ebp - 4]
add ecx, 0x57c
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1014e529
mov edx, dword [ebp - 8]
add edx, 0x264
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10155b51
cmp dword [ebp + 0x14], 0xc
jae 0x1014e5f6
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xdc], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xd0]
and edx, 2
jne 0x1014e61e
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xd0]
and ecx, 0x400000
je 0x1014e661
mov edx, dword [ebp - 8]
add edx, 0x264
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x210]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
je 0x1014e650
mov edx, dword [ebp - 4]
add edx, 0x57c
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 8]
add eax, 0x264
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1014e6a3
mov ecx, dword [ebp - 0xdc]
cmp dword [ecx + 4], 2
jbe 0x1014e69c
push 1
mov edx, dword [ebp - 0xdc]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.10180640
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1014e69a
mov dword [ebp - 0xc], 2
jmp 0x10155b51
jmp 0x1014e6a3
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
jne 0x1014e760
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xd0]
and eax, 1
je 0x1014e757
mov ecx, dword [ebp - 0xdc]
cmp dword [ecx + 4], 1
jne 0x1014e757
mov edx, dword [ebp - 8]
add edx, 0x264
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x210]
mov dword [ebp - 4], ecx
jmp 0x1014e6f6
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1014e745
mov ecx, dword [ebp - 4]
add ecx, 0x57c
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp - 4]
cmp dword [edx + 0x278], 0
je 0x1014e733
mov eax, dword [ebp - 0xdc]
push eax
push 1
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x278]
call eax
add esp, 0xc
mov ecx, dword [ebp - 4]
add ecx, 0x57c
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1014e6ed
mov edx, dword [ebp - 8]
add edx, 0x264
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1014e75e
mov dword [ebp - 0xc], 0x16
jmp 0x1014e7a3
mov eax, dword [ebp - 4]
cmp dword [eax + 0x278], 0
jne 0x1014e775
mov dword [ebp - 0xc], 0x81
jmp 0x1014e793
mov ecx, dword [ebp - 0xdc]
push ecx
push 1
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x278]
call ecx
add esp, 0xc
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 4]
add edx, 0x57c
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10155b51
cmp dword [ebp + 0x14], 8
jae 0x1014e7bc
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
cmp dword [ecx + 4], 0
je 0x1014e804
mov edx, dword [ebp - 0x38]
cmp dword [edx + 4], 1
je 0x1014e804
mov eax, dword [ebp - 0x38]
cmp dword [eax + 4], 2
je 0x1014e804
mov ecx, dword [ebp - 0x38]
cmp dword [ecx + 4], 3
je 0x1014e804
mov edx, dword [ebp - 0x38]
cmp dword [edx + 4], 4
je 0x1014e804
mov eax, dword [ebp - 0x38]
cmp dword [eax + 4], 5
je 0x1014e804
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xd0]
and edx, 2
jne 0x1014e823
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xd0]
and ecx, 0x400000
je 0x1014e866
mov edx, dword [ebp - 8]
add edx, 0x264
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x210]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
je 0x1014e855
mov edx, dword [ebp - 4]
add edx, 0x57c
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 8]
add eax, 0x264
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1014e8a0
mov ecx, dword [ebp - 0x38]
cmp dword [ecx], 2
jbe 0x1014e899
push 1
mov edx, dword [ebp - 0x38]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.10180640
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1014e897
mov dword [ebp - 0xc], 2
jmp 0x10155b51
jmp 0x1014e8a0
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x1014e93e
mov edx, dword [ebp - 4]
add edx, 0x594
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 1
mov eax, dword [ebp - 4]
add eax, 0x30
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x288]
call eax
add esp, 0xc
mov ecx, dword [ebp - 0x38]
imul esi, dword [ecx + 4], 0x30
add esi, 0x103680b0
mov edi, dword [ebp - 4]
add edi, 0x284
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 4]
mov dword [edx + 0x2b4], ecx
mov edx, dword [ebp - 4]
add edx, 0x30
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x284]
call edx
add esp, 8
mov eax, dword [ebp - 4]
add eax, 0x594
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
add ecx, 0x57c
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1014eab4
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xd0]
and eax, 2
jne 0x1014e97b
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xd0]
and edx, 0x400000
jne 0x1014e97b
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xd0]
and ecx, 1
je 0x1014e9aa
mov edx, dword [ebp - 0x38]
cmp dword [edx], 0
je 0x1014e97b
mov eax, dword [ebp - 0x38]
cmp dword [eax], 2
jne 0x1014e9aa
mov ecx, dword [ebp - 8]
add ecx, 0x264
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 4]
mov dword [edx + 0x15c], ecx
mov edx, dword [ebp - 8]
add edx, 0x264
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xd0]
and ecx, 1
je 0x1014eab4
mov edx, dword [ebp - 0x38]
cmp dword [edx], 1
je 0x1014e9d0
mov eax, dword [ebp - 0x38]
cmp dword [eax], 2
jne 0x1014eab4
mov ecx, dword [ebp - 8]
add ecx, 0x264
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x210]
mov dword [ebp - 4], eax
jmp 0x1014e9f7
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x1014eaa4
mov eax, dword [ebp - 4]
add eax, 0x57c
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 4]
add ecx, 0x594
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 1
mov edx, dword [ebp - 4]
add edx, 0x30
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x288]
call edx
add esp, 0xc
mov eax, dword [ebp - 0x38]
imul esi, dword [eax + 4], 0x30
add esi, 0x103680b0
mov edi, dword [ebp - 4]
add edi, 0x284
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 4]
mov dword [ecx + 0x2b4], eax
mov ecx, dword [ebp - 4]
add ecx, 0x30
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x284]
call ecx
add esp, 8
mov edx, dword [ebp - 4]
add edx, 0x594
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 4]
add eax, 0x57c
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1014e9ee
mov ecx, dword [ebp - 8]
add ecx, 0x264
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10155b51
cmp dword [ebp + 0x14], 8
jae 0x1014eacd
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x84], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xd0]
and ecx, 2
jne 0x1014eaf4
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xd0]
and eax, 0x400000
je 0x1014eb38
mov ecx, dword [ebp - 8]
add ecx, 0x264
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x210]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1014eb26
mov ecx, dword [ebp - 4]
add ecx, 0x57c
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp - 8]
add edx, 0x264
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1014eb78
mov eax, dword [ebp - 0x84]
cmp dword [eax], 2
jbe 0x1014eb71
push 1
mov ecx, dword [ebp - 0x84]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.10180640
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1014eb6f
mov dword [ebp - 0xc], 2
jmp 0x10155b51
jmp 0x1014eb78
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x1014ebf0
mov ecx, dword [ebp - 0x84]
movzx edx, word [ecx + 4]
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 0x47e]
cmp edx, ecx
jge 0x1014ebd5
mov edx, dword [ebp - 0x84]
movzx eax, word [edx + 6]
push eax
mov ecx, dword [ebp - 0x84]
movzx edx, word [ecx + 4]
imul eax, edx, 0x30
mov ecx, dword [ebp - 4]
add eax, dword [ecx + 0x21c]
push eax
mov edx, dword [ebp - 4]
add edx, 0x30
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x2ac]
call edx
add esp, 0x10
test eax, eax
jge 0x1014ebdc
mov dword [ebp - 0xc], 0x16
mov eax, dword [ebp - 4]
add eax, 0x57c
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1014eccd
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xd0]
and edx, 1
je 0x1014ecc6
mov eax, dword [ebp - 0x84]
cmp dword [eax], 1
jne 0x1014ecc6
mov ecx, dword [ebp - 8]
add ecx, 0x264
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x210]
mov dword [ebp - 4], eax
jmp 0x1014ec38
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x1014ecb4
mov eax, dword [ebp - 4]
add eax, 0x57c
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 0x84]
movzx edx, word [ecx + 4]
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 0x47e]
cmp edx, ecx
jge 0x1014eca0
mov edx, dword [ebp - 0x84]
movzx eax, word [edx + 6]
push eax
mov ecx, dword [ebp - 0x84]
movzx edx, word [ecx + 4]
imul eax, edx, 0x30
mov ecx, dword [ebp - 4]
add eax, dword [ecx + 0x21c]
push eax
mov edx, dword [ebp - 4]
add edx, 0x30
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x2ac]
call edx
add esp, 0x10
mov eax, dword [ebp - 4]
add eax, 0x57c
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1014ec2f
mov ecx, dword [ebp - 8]
add ecx, 0x264
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1014eccd
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
mov dword [ebp - 0xc], 0x82
jmp 0x10155b51
cmp dword [ebp + 0x14], 8
jae 0x1014ecf2
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x88], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xd0]
and ecx, 2
jne 0x1014ed19
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xd0]
and eax, 0x400000
je 0x1014ed5d
mov ecx, dword [ebp - 8]
add ecx, 0x264
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x210]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1014ed4b
mov ecx, dword [ebp - 4]
add ecx, 0x57c
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp - 8]
add edx, 0x264
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1014ed9d
mov eax, dword [ebp - 0x88]
cmp dword [eax], 2
jbe 0x1014ed96
push 1
mov ecx, dword [ebp - 0x88]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.10180640
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1014ed94
mov dword [ebp - 0xc], 2
jmp 0x10155b51
jmp 0x1014ed9d
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x1014edca
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x88]
mov eax, dword [edx + 4]
mov dword [ecx + 0x32c], eax
mov ecx, dword [ebp - 4]
add ecx, 0x57c
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1014eed7
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xd0]
and eax, 2
jne 0x1014ee0d
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xd0]
and edx, 0x400000
jne 0x1014ee0d
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xd0]
and ecx, 1
je 0x1014ee3f
mov edx, dword [ebp - 0x88]
cmp dword [edx], 0
je 0x1014ee0d
mov eax, dword [ebp - 0x88]
cmp dword [eax], 2
jne 0x1014ee3f
mov ecx, dword [ebp - 8]
add ecx, 0x264
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x88]
mov ecx, dword [eax + 4]
mov dword [edx + 0x21c], ecx
mov edx, dword [ebp - 8]
add edx, 0x264
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xd0]
and ecx, 1
je 0x1014eed7
mov edx, dword [ebp - 0x88]
cmp dword [edx], 1
je 0x1014ee67
mov eax, dword [ebp - 0x88]
cmp dword [eax], 2
jne 0x1014eed7
mov ecx, dword [ebp - 8]
add ecx, 0x264
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x210]
mov dword [ebp - 4], eax
jmp 0x1014ee8e
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x1014eec7
mov eax, dword [ebp - 4]
add eax, 0x57c
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x88]
mov eax, dword [edx + 4]
mov dword [ecx + 0x32c], eax
mov ecx, dword [ebp - 4]
add ecx, 0x57c
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1014ee85
mov edx, dword [ebp - 8]
add edx, 0x264
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10155b51
cmp dword [ebp + 0x14], 4
jae 0x1014eef0
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x150], eax
mov ecx, dword [ebp - 0x150]
cmp dword [ecx], 0
jbe 0x1014ef10
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x150]
mov ecx, dword [eax]
mov dword [edx + 0x2b0], ecx
jmp 0x10155b51
mov dword [ebp - 0xc], 0x82
jmp 0x10155b51
mov dword [ebp - 0xc], 0x82
jmp 0x10155b51
cmp dword [ebp + 0x14], 0xc
jae 0x1014ef52
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xd0]
and ecx, 2
jne 0x1014ef76
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xd0]
and eax, 0x400000
je 0x1014efba
mov ecx, dword [ebp - 8]
add ecx, 0x264
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x210]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1014efa8
mov ecx, dword [ebp - 4]
add ecx, 0x57c
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp - 8]
add edx, 0x264
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1014eff4
mov eax, dword [ebp - 0x28]
cmp dword [eax], 2
jbe 0x1014efed
push 1
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.10180640
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1014efeb
mov dword [ebp - 0xc], 2
jmp 0x10155b51
jmp 0x1014eff4
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x28]
cmp dword [ecx + 4], 0
je 0x1014f02a
mov edx, dword [ebp - 0x28]
cmp dword [edx + 4], 0x1f4
jbe 0x1014f02a
mov dword [ebp - 0xc], 0x16
cmp dword [ebp - 4], 0
je 0x1014f025
mov eax, dword [ebp - 4]
add eax, 0x57c
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10155b51
cmp dword [ebp - 4], 0
je 0x1014f074
mov ecx, dword [ebp - 0x28]
cmp dword [ecx + 4], 0
je 0x1014f048
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 4]
mov dword [edx + 0x3c0], ecx
mov edx, dword [ebp - 0x28]
cmp dword [edx + 8], 0
je 0x1014f060
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 8]
mov dword [eax + 0x3c8], edx
mov eax, dword [ebp - 4]
add eax, 0x57c
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1014f1c5
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xd0]
and edx, 2
jne 0x1014f0b1
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xd0]
and ecx, 0x400000
jne 0x1014f0b1
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xd0]
and eax, 1
je 0x1014f112
mov ecx, dword [ebp - 0x28]
cmp dword [ecx], 0
je 0x1014f0b1
mov edx, dword [ebp - 0x28]
cmp dword [edx], 2
jne 0x1014f112
mov eax, dword [ebp - 8]
add eax, 0x264
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 0x28]
cmp dword [ecx + 4], 0
je 0x1014f0ea
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 4]
push eax
call fcn.1017aa80
add esp, 4
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp - 8]
mov dword [edx + ecx + 0x120], eax
mov eax, dword [ebp - 0x28]
cmp dword [eax + 8], 0
je 0x1014f102
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 8]
mov dword [ecx + 0x14c], eax
mov ecx, dword [ebp - 8]
add ecx, 0x264
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xd0]
and eax, 1
je 0x1014f1c5
mov ecx, dword [ebp - 0x28]
cmp dword [ecx], 1
je 0x1014f138
mov edx, dword [ebp - 0x28]
cmp dword [edx], 2
jne 0x1014f1c5
mov eax, dword [ebp - 8]
add eax, 0x264
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x210]
mov dword [ebp - 4], edx
jmp 0x1014f15e
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
je 0x1014f1b6
mov edx, dword [ebp - 4]
add edx, 0x57c
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x28]
cmp dword [eax + 4], 0
je 0x1014f18c
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 4]
mov dword [ecx + 0x3c0], eax
mov ecx, dword [ebp - 0x28]
cmp dword [ecx + 8], 0
je 0x1014f1a4
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 8]
mov dword [edx + 0x3c8], ecx
mov edx, dword [ebp - 4]
add edx, 0x57c
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1014f155
mov eax, dword [ebp - 8]
add eax, 0x264
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10155b51
cmp dword [ebp + 0x14], 1
jae 0x1014f1de
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x174], ecx
mov edx, dword [ebp - 8]
add edx, 0x264
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x164]
push ecx
mov edx, dword [ebp - 0x174]
movzx eax, byte [edx]
push eax
call fcn.101984d0
add esp, 8
test eax, eax
je 0x1014f220
mov dword [ebp - 0xc], 0x16
jmp 0x1014f22a
mov ecx, dword [ebp - 8]
mov byte [ecx + 0x22e], 1
mov edx, dword [ebp - 8]
add edx, 0x264
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10155b51
mov dword [ebp - 0x5c], 0
cmp dword [ebp + 0x14], 8
jae 0x1014f25a
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
movzx edx, word [ecx + 6]
test edx, edx
jne 0x1014f279
mov eax, dword [ebp + 0x14]
sub eax, 8
mov dword [ebp - 0xbc], eax
jmp 0x1014f2a3
mov ecx, dword [ebp - 0x34]
movzx edx, word [ecx + 6]
add edx, 8
cmp edx, dword [ebp + 0x14]
ja 0x1014f297
mov eax, dword [ebp - 0x34]
movzx ecx, word [eax + 6]
mov dword [ebp - 0xbc], ecx
jmp 0x1014f2a3
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xd0]
and eax, 2
jne 0x1014f2c2
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xd0]
and edx, 0x400000
je 0x1014f304
mov eax, dword [ebp - 8]
add eax, 0x264
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x210]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x1014f2f2
mov eax, dword [ebp - 4]
add eax, 0x57c
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 8]
add ecx, 0x264
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1014f33e
mov edx, dword [ebp - 0x34]
cmp dword [edx], 2
jbe 0x1014f337
push 1
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.10180640
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1014f335
mov dword [ebp - 0xc], 2
jmp 0x10155b51
jmp 0x1014f33e
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x1014f425
mov eax, dword [ebp - 4]
add eax, 0x444
mov dword [ebp - 0xe0], eax
mov ecx, dword [ebp - 0x34]
movzx edx, word [ecx + 4]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.10199ef0
add esp, 8
cmp dword [ebp - 0xbc], 0
jbe 0x1014f3ad
mov ecx, dword [ebp - 0xbc]
push ecx
mov edx, dword [ebp - 0x34]
add edx, 8
push edx
call fcn.10198aa0
add esp, 8
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
jne 0x1014f3ad
mov dword [ebp - 0xc], 0xc
mov eax, dword [ebp - 4]
add eax, 0x57c
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10155b51
call fcn.10198ca0
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jne 0x1014f3e3
mov ecx, dword [ebp - 0x5c]
push ecx
call fcn.101988a0
add esp, 4
mov dword [ebp - 0xc], 0xc
mov edx, dword [ebp - 4]
add edx, 0x57c
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10155b51
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x5c]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x34]
mov cx, word [eax + 4]
mov word [edx + 0x10], cx
mov edx, dword [ebp - 0x4c]
push edx
mov eax, dword [ebp - 0xe0]
push eax
call fcn.10198da0
add esp, 8
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
add ecx, 0x57c
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1014f697
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xd0]
and eax, 2
jne 0x1014f46a
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xd0]
and edx, 0x400000
jne 0x1014f46a
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xd0]
and ecx, 1
je 0x1014f553
mov edx, dword [ebp - 0x34]
cmp dword [edx], 0
je 0x1014f46a
mov eax, dword [ebp - 0x34]
cmp dword [eax], 2
jne 0x1014f553
mov ecx, dword [ebp - 8]
add ecx, 0x264
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp - 8]
add edx, 0x160
mov dword [ebp - 0xe0], edx
mov eax, dword [ebp - 0x34]
movzx ecx, word [eax + 4]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.10199f60
add esp, 8
cmp dword [ebp - 0xbc], 0
jbe 0x1014f4e1
mov eax, dword [ebp - 0xbc]
push eax
mov ecx, dword [ebp - 0x34]
add ecx, 8
push ecx
call fcn.10198aa0
add esp, 8
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
jne 0x1014f4e1
mov dword [ebp - 0xc], 0xc
mov edx, dword [ebp - 8]
add edx, 0x264
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10155b51
call fcn.10198ca0
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jne 0x1014f517
mov eax, dword [ebp - 0x5c]
push eax
call fcn.101988a0
add esp, 4
mov dword [ebp - 0xc], 0xc
mov ecx, dword [ebp - 8]
add ecx, 0x264
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10155b51
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x5c]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x34]
mov ax, word [edx + 4]
mov word [ecx + 0x10], ax
mov ecx, dword [ebp - 0x4c]
push ecx
mov edx, dword [ebp - 0xe0]
push edx
call fcn.10198da0
add esp, 8
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
add eax, 0x264
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xd0]
and edx, 1
je 0x1014f697
mov eax, dword [ebp - 0x34]
cmp dword [eax], 1
je 0x1014f579
mov ecx, dword [ebp - 0x34]
cmp dword [ecx], 2
jne 0x1014f697
mov edx, dword [ebp - 8]
add edx, 0x264
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x210]
mov dword [ebp - 4], ecx
jmp 0x1014f5a0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1014f687
mov ecx, dword [ebp - 4]
add ecx, 0x57c
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp - 4]
add edx, 0x444
mov dword [ebp - 0xe0], edx
mov eax, dword [ebp - 0x34]
movzx ecx, word [eax + 4]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.10199ef0
add esp, 8
cmp dword [ebp - 0xbc], 0
jbe 0x1014f617
mov eax, dword [ebp - 0xbc]
push eax
mov ecx, dword [ebp - 0x34]
add ecx, 8
push ecx
call fcn.10198aa0
add esp, 8
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
jne 0x1014f617
mov edx, dword [ebp - 4]
add edx, 0x57c
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1014f597
call fcn.10198ca0
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jne 0x1014f646
mov eax, dword [ebp - 0x5c]
push eax
call fcn.101988a0
add esp, 4
mov ecx, dword [ebp - 4]
add ecx, 0x57c
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1014f597
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x5c]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x34]
mov ax, word [edx + 4]
mov word [ecx + 0x10], ax
mov ecx, dword [ebp - 0x4c]
push ecx
mov edx, dword [ebp - 0xe0]
push edx
call fcn.10198da0
add esp, 8
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
add eax, 0x57c
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1014f597
mov ecx, dword [ebp - 8]
add ecx, 0x264
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10155b51
cmp dword [ebp + 0x14], 4
jae 0x1014f6b0
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0xe4], edx
mov eax, dword [ebp - 0xe4]
mov ecx, dword [eax]
lea edx, [ecx + ecx + 4]
cmp dword [ebp + 0x14], edx
jb 0x1014f6d8
mov eax, dword [ebp - 0xe4]
cmp dword [eax], 0xffff
jbe 0x1014f6e4
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
mov ecx, dword [ebp - 0xe4]
movzx edx, word [ecx]
push edx
call fcn.101991a0
add esp, 4
mov dword [ebp - 0xa0], eax
cmp dword [ebp - 0xa0], 0
jne 0x1014f711
mov dword [ebp - 0xc], 0xc
jmp 0x10155b51
mov dword [ebp - 0x74], 0
jmp 0x1014f723
mov eax, dword [ebp - 0x74]
add eax, 1
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0xe4]
mov edx, dword [ebp - 0x74]
cmp edx, dword [ecx]
jae 0x1014f77d
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0xe4]
mov dx, word [ecx + eax*2 + 4]
mov word [ebp - 0x134], dx
movzx eax, word [ebp - 0x134]
push eax
mov ecx, dword [ebp - 0xa0]
push ecx
call fcn.10199230
add esp, 8
test eax, eax
je 0x1014f77b
mov dword [ebp - 0xc], 0x16
mov edx, dword [ebp - 0xa0]
push edx
call fcn.10199210
add esp, 4
jmp 0x1014f82a
jmp 0x1014f71a
mov dword [ebp - 0x74], 0
jmp 0x1014f78f
mov eax, dword [ebp - 0x74]
add eax, 1
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0xa0]
movzx edx, word [ecx + 2]
cmp dword [ebp - 0x74], edx
jae 0x1014f7b5
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0xa0]
movzx edx, word [ecx + eax*2 + 4]
cmp edx, 1
jne 0x1014f7b3
jmp 0x1014f7b5
jmp 0x1014f786
mov eax, dword [ebp - 0xa0]
movzx ecx, word [eax + 2]
cmp dword [ebp - 0x74], ecx
jne 0x1014f7df
mov edx, dword [ebp - 0xa0]
push edx
call fcn.10199210
add esp, 4
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
mov eax, dword [ebp - 8]
add eax, 0x264
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x168], 0
je 0x1014f80c
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x168]
push eax
call fcn.10199210
add esp, 4
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xa0]
mov dword [ecx + 0x168], edx
mov eax, dword [ebp - 8]
add eax, 0x264
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10155b51
cmp dword [ebp + 0x14], 8
jae 0x1014f843
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x8c], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xd0]
and eax, 2
jne 0x1014f86b
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xd0]
and edx, 0x400000
je 0x1014f8ad
mov eax, dword [ebp - 8]
add eax, 0x264
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x210]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x1014f89b
mov eax, dword [ebp - 4]
add eax, 0x57c
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 8]
add ecx, 0x264
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1014f8ed
mov edx, dword [ebp - 0x8c]
cmp dword [edx], 2
jbe 0x1014f8e6
push 1
mov eax, dword [ebp - 0x8c]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.10180640
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1014f8e4
mov dword [ebp - 0xc], 2
jmp 0x10155b51
jmp 0x1014f8ed
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x1014f929
mov eax, dword [ebp - 0x8c]
movzx ecx, word [eax + 4]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.1019a110
add esp, 8
test eax, eax
je 0x1014f915
mov dword [ebp - 0xc], 0x16
mov eax, dword [ebp - 4]
add eax, 0x57c
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1014fa49
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xd0]
and edx, 2
jne 0x1014f96c
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xd0]
and ecx, 0x400000
jne 0x1014f96c
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xd0]
and eax, 1
je 0x1014f9ad
mov ecx, dword [ebp - 0x8c]
cmp dword [ecx], 0
je 0x1014f96c
mov edx, dword [ebp - 0x8c]
cmp dword [edx], 2
jne 0x1014f9ad
mov eax, dword [ebp - 8]
add eax, 0x264
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 0x8c]
movzx edx, word [ecx + 4]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.1019a180
add esp, 8
test eax, eax
je 0x1014f99d
mov dword [ebp - 0xc], 0x16
mov ecx, dword [ebp - 8]
add ecx, 0x264
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xd0]
and eax, 1
je 0x1014fa49
mov ecx, dword [ebp - 0x8c]
cmp dword [ecx], 1
je 0x1014f9d5
mov edx, dword [ebp - 0x8c]
cmp dword [edx], 2
jne 0x1014fa49
mov eax, dword [ebp - 8]
add eax, 0x264
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x210]
mov dword [ebp - 4], edx
jmp 0x1014f9fb
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
je 0x1014fa39
mov edx, dword [ebp - 4]
add edx, 0x57c
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x8c]
movzx ecx, word [eax + 4]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.1019a110
add esp, 8
mov eax, dword [ebp - 4]
add eax, 0x57c
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1014f9f2
mov ecx, dword [ebp - 8]
add ecx, 0x264
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10155b51
cmp dword [ebp + 0x14], 8
jae 0x1014fa62
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x90], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xd0]
and ecx, 2
jne 0x1014fa89
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xd0]
and eax, 0x400000
je 0x1014facd
mov ecx, dword [ebp - 8]
add ecx, 0x264
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x210]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1014fabb
mov ecx, dword [ebp - 4]
add ecx, 0x57c
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp - 8]
add edx, 0x264
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1014fb0d
mov eax, dword [ebp - 0x90]
cmp dword [eax], 2
jbe 0x1014fb06
push 1
mov ecx, dword [ebp - 0x90]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.10180640
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1014fb04
mov dword [ebp - 0xc], 2
jmp 0x10155b51
jmp 0x1014fb0d
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x1014fb4a
mov ecx, dword [ebp - 0x90]
movzx edx, word [ecx + 4]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.10199fc0
add esp, 8
test eax, eax
je 0x1014fb35
mov dword [ebp - 0xc], 0x16
mov ecx, dword [ebp - 4]
add ecx, 0x57c
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1014fc6c
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xd0]
and eax, 2
jne 0x1014fb8d
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xd0]
and edx, 0x400000
jne 0x1014fb8d
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xd0]
and ecx, 1
je 0x1014fbcf
mov edx, dword [ebp - 0x90]
cmp dword [edx], 0
je 0x1014fb8d
mov eax, dword [ebp - 0x90]
cmp dword [eax], 2
jne 0x1014fbcf
mov ecx, dword [ebp - 8]
add ecx, 0x264
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp - 0x90]
movzx eax, word [edx + 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.1019a070
add esp, 8
test eax, eax
je 0x1014fbbf
mov dword [ebp - 0xc], 0x16
mov edx, dword [ebp - 8]
add edx, 0x264
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xd0]
and ecx, 1
je 0x1014fc6c
mov edx, dword [ebp - 0x90]
cmp dword [edx], 1
je 0x1014fbf7
mov eax, dword [ebp - 0x90]
cmp dword [eax], 2
jne 0x1014fc6c
mov ecx, dword [ebp - 8]
add ecx, 0x264
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x210]
mov dword [ebp - 4], eax
jmp 0x1014fc1e
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x1014fc5c
mov eax, dword [ebp - 4]
add eax, 0x57c
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 0x90]
movzx edx, word [ecx + 4]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.10199fc0
add esp, 8
mov ecx, dword [ebp - 4]
add ecx, 0x57c
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1014fc15
mov edx, dword [ebp - 8]
add edx, 0x264
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10155b51
cmp dword [ebp + 0x14], 8
jae 0x1014fc85
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x94], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xd0]
and edx, 2
jne 0x1014fcad
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xd0]
and ecx, 0x400000
je 0x1014fcf0
mov edx, dword [ebp - 8]
add edx, 0x264
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x210]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
je 0x1014fcdf
mov edx, dword [ebp - 4]
add edx, 0x57c
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 8]
add eax, 0x264
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1014fd30
mov ecx, dword [ebp - 0x94]
cmp dword [ecx], 2
jbe 0x1014fd29
push 1
mov edx, dword [ebp - 0x94]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.10180640
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1014fd27
mov dword [ebp - 0xc], 2
jmp 0x10155b51
jmp 0x1014fd30
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x1014fd6d
mov edx, dword [ebp - 0x94]
movzx eax, word [edx + 4]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.1019a1c0
add esp, 8
test eax, eax
je 0x1014fd58
mov dword [ebp - 0xc], 0x16
mov edx, dword [ebp - 4]
add edx, 0x57c
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1014fe8d
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xd0]
and ecx, 2
jne 0x1014fdaf
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xd0]
and eax, 0x400000
jne 0x1014fdaf
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xd0]
and edx, 1
je 0x1014fdf0
mov eax, dword [ebp - 0x94]
cmp dword [eax], 0
je 0x1014fdaf
mov ecx, dword [ebp - 0x94]
cmp dword [ecx], 2
jne 0x1014fdf0
mov edx, dword [ebp - 8]
add edx, 0x264
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x94]
movzx ecx, word [eax + 4]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.1019a240
add esp, 8
test eax, eax
je 0x1014fde1
mov dword [ebp - 0xc], 0x16
mov eax, dword [ebp - 8]
add eax, 0x264
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xd0]
and edx, 1
je 0x1014fe8d
mov eax, dword [ebp - 0x94]
cmp dword [eax], 1
je 0x1014fe18
mov ecx, dword [ebp - 0x94]
cmp dword [ecx], 2
jne 0x1014fe8d
mov edx, dword [ebp - 8]
add edx, 0x264
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x210]
mov dword [ebp - 4], ecx
jmp 0x1014fe3f
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1014fe7e
mov ecx, dword [ebp - 4]
add ecx, 0x57c
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp - 0x94]
movzx eax, word [edx + 4]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.1019a1c0
add esp, 8
mov edx, dword [ebp - 4]
add edx, 0x57c
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1014fe36
mov eax, dword [ebp - 8]
add eax, 0x264
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10155b51
cmp dword [ebp + 0x14], 8
jae 0x1014fea6
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x78], ecx
mov edx, dword [ebp - 0x78]
mov eax, dword [edx + 4]
and eax, 0xfffffff8
je 0x1014fec3
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xd0]
and edx, 2
jne 0x1014fee2
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xd0]
and ecx, 0x400000
je 0x1014ff25
mov edx, dword [ebp - 8]
add edx, 0x264
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x210]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
je 0x1014ff14
mov edx, dword [ebp - 4]
add edx, 0x57c
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 8]
add eax, 0x264
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1014ff5f
mov ecx, dword [ebp - 0x78]
cmp dword [ecx], 2
jbe 0x1014ff58
push 1
mov edx, dword [ebp - 0x78]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.10180640
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1014ff56
mov dword [ebp - 0xc], 2
jmp 0x10155b51
jmp 0x1014ff5f
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x1014ff89
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x78]
mov cl, byte [eax + 4]
mov byte [edx + 0x4c0], cl
mov edx, dword [ebp - 4]
add edx, 0x57c
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1015007e
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xd0]
and ecx, 2
jne 0x1014ffc5
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xd0]
and eax, 0x400000
jne 0x1014ffc5
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xd0]
and edx, 1
je 0x1014fff3
mov eax, dword [ebp - 0x78]
cmp dword [eax], 0
je 0x1014ffc5
mov ecx, dword [ebp - 0x78]
cmp dword [ecx], 2
jne 0x1014fff3
mov edx, dword [ebp - 8]
add edx, 0x264
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x78]
mov dl, byte [ecx + 4]
mov byte [eax + 0x224], dl
mov eax, dword [ebp - 8]
add eax, 0x264
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xd0]
and edx, 1
je 0x1015007e
mov eax, dword [ebp - 0x78]
cmp dword [eax], 1
je 0x10150011
mov ecx, dword [ebp - 0x78]
cmp dword [ecx], 2
jne 0x1015007e
mov edx, dword [ebp - 8]
add edx, 0x264
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x210]
mov dword [ebp - 4], ecx
jmp 0x10150038
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1015006f
mov ecx, dword [ebp - 4]
add ecx, 0x57c
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x78]
mov cl, byte [eax + 4]
mov byte [edx + 0x4c0], cl
mov edx, dword [ebp - 4]
add edx, 0x57c
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1015002f
mov eax, dword [ebp - 8]
add eax, 0x264
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10155b51
mov dword [ebp - 0x108], 0
mov dword [ebp - 0xd0], 0
cmp dword [ebp + 0x14], 8
jae 0x101500ab
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xd0]
and eax, 2
jne 0x101500d0
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xd0]
and edx, 0x400000
je 0x10150112
mov eax, dword [ebp - 8]
add eax, 0x264
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x210]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x10150100
mov eax, dword [ebp - 4]
add eax, 0x57c
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 8]
add ecx, 0x264
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1015014c
mov edx, dword [ebp - 0x50]
cmp dword [edx], 2
jbe 0x10150145
push 1
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.10180640
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10150143
mov dword [ebp - 0xc], 2
jmp 0x10155b51
jmp 0x1015014c
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
jne 0x1015015e
mov dword [ebp - 0xc], 2
jmp 0x10155b51
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + 0x4bb]
test ecx, ecx
jne 0x10150188
mov dword [ebp - 0xc], 0x82
mov edx, dword [ebp - 4]
add edx, 0x57c
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10155b51
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x30]
and ecx, 0x7f
cmp ecx, 8
je 0x101501b2
mov dword [ebp - 0xc], 0x16
mov edx, dword [ebp - 4]
add edx, 0x57c
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10155b51
mov eax, dword [ebp - 0x50]
movzx ecx, word [eax + 6]
lea edx, [ecx + ecx + 8]
cmp edx, dword [ebp + 0x14]
jbe 0x101501dd
mov dword [ebp - 0xc], 0x16
mov eax, dword [ebp - 4]
add eax, 0x57c
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10155b51
mov ecx, dword [ebp - 0x50]
movzx edx, word [ecx + 4]
and edx, 1
je 0x1015021d
mov dword [ebp - 0xd0], 1
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + 0x4ce]
test ecx, ecx
je 0x1015021d
mov dword [ebp - 0xc], 0x67
mov edx, dword [ebp - 4]
add edx, 0x57c
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10155b51
mov eax, dword [ebp - 0x50]
movzx ecx, word [eax + 4]
and ecx, 2
je 0x10150233
mov dword [ebp - 0x108], 1
mov edx, dword [ebp - 0x50]
movzx eax, word [edx + 6]
cmp eax, 0xc8
jle 0x10150266
cmp dword [ebp - 0xd0], 0
je 0x10150266
mov dword [ebp - 0xc], 0xc
mov ecx, dword [ebp - 4]
add ecx, 0x57c
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10155b51
cmp dword [ebp - 0xd0], 0
jne 0x10150294
cmp dword [ebp - 0x108], 0
jne 0x10150294
mov dword [ebp - 0xc], 0x16
mov edx, dword [ebp - 4]
add edx, 0x57c
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10155b51
mov dword [ebp - 0x40], 0
jmp 0x101502a6
mov eax, dword [ebp - 0x40]
add eax, 1
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x50]
movzx edx, word [ecx + 6]
cmp dword [ebp - 0x40], edx
jge 0x1015030a
cmp dword [ebp - 0xd0], 0
je 0x101502dd
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x50]
movzx edx, word [ecx + eax*2 + 8]
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 0x47c]
cmp edx, ecx
jl 0x101502dd
mov dword [ebp - 0xc], 0x16
jmp 0x1015030a
cmp dword [ebp - 0x108], 0
je 0x10150308
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x50]
movzx ecx, word [eax + edx*2 + 8]
mov edx, dword [ebp - 4]
movzx eax, word [edx + 0x47e]
cmp ecx, eax
jl 0x10150308
mov dword [ebp - 0xc], 0x16
jmp 0x1015030a
jmp 0x1015029d
cmp dword [ebp - 0xc], 0
je 0x10150325
mov ecx, dword [ebp - 4]
add ecx, 0x57c
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10155b51
cmp dword [ebp - 0x108], 0
je 0x10150428
mov edx, dword [ebp - 0x50]
movzx eax, word [edx + 6]
test eax, eax
je 0x101503c3
mov dword [ebp - 0x40], 0
mov dword [ebp - 0xe8], 0
jmp 0x1015035d
mov ecx, dword [ebp - 0x40]
add ecx, 1
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x50]
movzx eax, word [edx + 6]
cmp dword [ebp - 0x40], eax
jge 0x101503c1
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x50]
mov ax, word [edx + ecx*2 + 8]
mov word [ebp - 0xd4], ax
movzx ecx, word [ebp - 0xd4]
imul edx, ecx, 0x30
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x21c]
movzx edx, byte [ecx + edx + 0x2f]
cmp edx, 2
jne 0x101503bf
movzx eax, word [ebp - 0xd4]
imul ecx, eax, 0x30
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x21c]
mov byte [eax + ecx + 0x2f], 3
mov ecx, dword [ebp - 0xe8]
add ecx, 1
mov dword [ebp - 0xe8], ecx
jmp 0x10150354
jmp 0x10150428
mov dword [ebp - 0x40], 0
mov dword [ebp - 0xe8], 0
jmp 0x101503df
mov edx, dword [ebp - 0x40]
add edx, 1
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 0x47e]
cmp dword [ebp - 0x40], ecx
jge 0x10150428
imul edx, dword [ebp - 0x40], 0x30
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x21c]
movzx edx, byte [ecx + edx + 0x2f]
cmp edx, 2
jne 0x10150426
imul eax, dword [ebp - 0x40], 0x30
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x21c]
mov byte [edx + eax + 0x2f], 3
mov eax, dword [ebp - 0xe8]
add eax, 1
mov dword [ebp - 0xe8], eax
jmp 0x101503d6
cmp dword [ebp - 0xd0], 0
je 0x10150463
push 0
push 0
push 0
push 0
push 0
movzx ecx, byte [ebp - 0xd0]
push ecx
mov edx, dword [ebp - 0x50]
add edx, 8
push edx
mov eax, dword [ebp - 0x50]
movzx ecx, word [eax + 6]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.10165c90
add esp, 0x24
mov dword [ebp - 0xc], eax
jmp 0x10150474
push 1
mov eax, dword [ebp - 4]
push eax
call fcn.10165510
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x10150490
push 1
push 0xc
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.10160dd0
add esp, 0x10
jmp 0x10150497
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 4]
add eax, 0x57c
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10155b51
mov byte [ebp - 0x2d], 0
xor ecx, ecx
mov word [ebp - 0xb4], cx
xor edx, edx
mov word [ebp - 0xb0], dx
cmp dword [ebp + 0x14], 8
jae 0x101504d5
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xa4], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xd0]
and edx, 2
jne 0x101504fd
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xd0]
and ecx, 0x400000
je 0x10150540
mov edx, dword [ebp - 8]
add edx, 0x264
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x210]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
je 0x1015052f
mov edx, dword [ebp - 4]
add edx, 0x57c
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 8]
add eax, 0x264
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10150580
mov ecx, dword [ebp - 0xa4]
cmp dword [ecx], 2
jbe 0x10150579
push 1
mov edx, dword [ebp - 0xa4]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.10180640
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10150577
mov dword [ebp - 0xc], 2
jmp 0x10155b51
jmp 0x10150580
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
jne 0x10150592
mov dword [ebp - 0xc], 2
jmp 0x10155b51
mov edx, dword [ebp - 4]
movzx eax, byte [edx + 0x4bb]
test eax, eax
jne 0x101505bc
mov dword [ebp - 0xc], 0x82
mov ecx, dword [ebp - 4]
add ecx, 0x57c
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10155b51
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x30]
and eax, 0x7f
cmp eax, 8
je 0x101505e6
mov dword [ebp - 0xc], 0x16
mov ecx, dword [ebp - 4]
add ecx, 0x57c
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10155b51
mov edx, dword [ebp - 4]
movzx eax, byte [edx + 0x4ce]
test eax, eax
je 0x10150610
mov dword [ebp - 0xc], 0x67
mov ecx, dword [ebp - 4]
add ecx, 0x57c
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10155b51
mov edx, dword [ebp - 0xa4]
movzx eax, word [edx + 6]
test eax, eax
jne 0x10150638
mov ecx, dword [ebp - 0xa4]
movzx edx, word [ecx + 4]
test edx, edx
jne 0x10150638
mov dword [ebp - 0xc], 0x16
jmp 0x1015073f
mov eax, dword [ebp - 0xa4]
movzx ecx, word [eax + 6]
test ecx, ecx
je 0x10150682
mov byte [ebp - 0x2d], 1
mov edx, dword [ebp - 0xa4]
mov ax, word [edx + 6]
mov word [ebp - 0xb4], ax
movzx ecx, word [ebp - 0xb4]
mov edx, dword [ebp - 4]
movzx eax, word [edx + 0x47e]
add ecx, eax
cmp ecx, 0xffff
jle 0x10150682
mov dword [ebp - 0xc], 0x16
jmp 0x1015073f
mov ecx, dword [ebp - 0xa4]
movzx edx, word [ecx + 4]
test edx, edx
je 0x101506fd
movzx eax, byte [ebp - 0x2d]
or eax, 2
mov byte [ebp - 0x2d], al
mov ecx, dword [ebp - 0xa4]
mov dx, word [ecx + 4]
mov word [ebp - 0xb0], dx
movzx eax, word [ebp - 0xb0]
mov dword [ebp - 0xf8], eax
mov ecx, dword [ebp - 4]
movzx edx, word [ecx + 0x47c]
add edx, dword [ebp - 0xf8]
mov dword [ebp - 0xf8], edx
cmp dword [ebp - 0xf8], 0xffff
jle 0x101506e3
mov dword [ebp - 0xc], 0x16
jmp 0x1015073f
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xf8]
cmp ecx, dword [eax + 0x3b8]
jle 0x101506fd
mov dword [ebp - 0xc], 0x16
jmp 0x1015073f
push 0
movzx edx, word [ebp - 0xb0]
push edx
movzx eax, word [ebp - 0xb4]
push eax
movzx ecx, byte [ebp - 0x2d]
push ecx
push 0
push 0
push 0
push 0
mov edx, dword [ebp - 4]
push edx
call fcn.10165c90
add esp, 0x24
mov dword [ebp - 0xc], eax
push 1
push 0xc
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.10160dd0
add esp, 0x10
mov edx, dword [ebp - 4]
add edx, 0x57c
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10155b51
cmp dword [ebp + 0x14], 4
jae 0x10150768
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x154], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xd0]
and edx, 2
jne 0x10150790
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xd0]
and ecx, 0x400000
je 0x101507d3
mov edx, dword [ebp - 8]
add edx, 0x264
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x210]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
je 0x101507c2
mov edx, dword [ebp - 4]
add edx, 0x57c
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 8]
add eax, 0x264
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10150813
mov ecx, dword [ebp - 0x154]
cmp dword [ecx], 2
jbe 0x1015080c
push 1
mov edx, dword [ebp - 0x154]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.10180640
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1015080a
mov dword [ebp - 0xc], 2
jmp 0x10155b51
jmp 0x10150813
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
jne 0x10150825
mov dword [ebp - 0xc], 2
jmp 0x10155b51
mov edx, dword [ebp - 4]
movzx eax, byte [edx + 0x4bb]
test eax, eax
jne 0x1015084f
mov dword [ebp - 0xc], 0x82
mov ecx, dword [ebp - 4]
add ecx, 0x57c
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10155b51
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x30]
and eax, 0x7f
cmp eax, 8
je 0x10150879
mov dword [ebp - 0xc], 0x16
mov ecx, dword [ebp - 4]
add ecx, 0x57c
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10155b51
mov edx, dword [ebp - 4]
movzx eax, byte [edx + 0x4ce]
test eax, eax
je 0x101508a3
mov dword [ebp - 0xc], 0x67
mov ecx, dword [ebp - 4]
add ecx, 0x57c
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10155b51
mov edx, dword [ebp - 4]
cmp dword [edx + 0x1ec], 0
jne 0x101508bb
mov eax, dword [ebp - 4]
cmp dword [eax + 0x1e4], 0
je 0x101508d7
mov dword [ebp - 0xc], 0x10
mov ecx, dword [ebp - 4]
add ecx, 0x57c
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10155b51
mov dword [ebp - 0x110], 0
jmp 0x101508f2
mov edx, dword [ebp - 0x110]
add edx, 1
mov dword [ebp - 0x110], edx
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 0x47e]
cmp dword [ebp - 0x110], ecx
jge 0x1015091e
imul edx, dword [ebp - 0x110], 0x30
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x21c]
cmp dword [ecx + edx], 0
je 0x1015091c
jmp 0x101508bb
jmp 0x101508e3
push 0
push 0
push 0
push 0
push 1
push 0
push 0
push 0
mov edx, dword [ebp - 4]
push edx
call fcn.10165c90
add esp, 0x24
mov dword [ebp - 0xc], eax
push 1
push 0xc
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.10160dd0
add esp, 0x10
mov edx, dword [ebp - 4]
add edx, 0x57c
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10155b51
cmp dword [ebp + 0x14], 0x14
jae 0x10150978
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
push 0
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.10147900
add esp, 0x18
mov dword [ebp - 0xc], eax
jmp 0x10155b51
cmp dword [ebp + 0x14], 0x14
jae 0x101509b0
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
push 1
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.10147900
add esp, 0x18
mov dword [ebp - 0xc], eax
jmp 0x10155b51
cmp dword [ebp + 0x14], 0x10
jae 0x101509ea
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x178], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xd0]
and eax, 0x200000
je 0x10150a47
mov ecx, dword [ebp - 8]
add ecx, 0x264
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x210]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10150a35
mov ecx, dword [ebp - 4]
add ecx, 0x57c
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp - 8]
add edx, 0x264
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10150a8b
mov eax, 1
mov ecx, dword [ebp - 8]
add ecx, 0x2ac
lock xadd dword [ecx], eax
push 0
push 0
push 0
mov edx, dword [ebp - 0x178]
push edx
lea eax, [ebp - 8]
push eax
call fcn.10180020
add esp, 0x14
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10150a8b
or ecx, 0xffffffff
mov edx, dword [ebp - 8]
add edx, 0x2ac
lock xadd dword [edx], ecx
cmp dword [ebp - 4], 0
jne 0x10150a9d
mov dword [ebp - 0xc], 2
jmp 0x10155b51
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + 0x4d0]
cmp ecx, 1
jne 0x10150afa
mov edx, dword [ebp - 4]
mov byte [edx + 0x4d0], 0
mov eax, dword [ebp - 4]
add eax, 0x3c
push eax
call fcn.10197f30
add esp, 4
push 0x50000008
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x224]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 2
call fcn.10174d10
add esp, 0x14
push 1
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.1015bb40
add esp, 0xc
jmp 0x10150b01
mov dword [ebp - 0xc], 0x67
mov ecx, dword [ebp - 4]
add ecx, 0x57c
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10155b51
cmp dword [ebp + 0x14], 8
jae 0x10150b2a
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x98], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xd0]
and ecx, 2
jne 0x10150b51
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xd0]
and eax, 0x400000
je 0x10150b95
mov ecx, dword [ebp - 8]
add ecx, 0x264
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x210]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10150b83
mov ecx, dword [ebp - 4]
add ecx, 0x57c
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp - 8]
add edx, 0x264
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10150bd5
mov eax, dword [ebp - 0x98]
cmp dword [eax], 2
jbe 0x10150bce
push 1
mov ecx, dword [ebp - 0x98]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.10180640
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10150bcc
mov dword [ebp - 0xc], 2
jmp 0x10155b51
jmp 0x10150bd5
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x10150c02
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x98]
mov eax, dword [edx + 4]
mov dword [ecx + 0x4a0], eax
mov ecx, dword [ebp - 4]
add ecx, 0x57c
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10150d0f
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xd0]
and eax, 2
jne 0x10150c45
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xd0]
and edx, 0x400000
jne 0x10150c45
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xd0]
and ecx, 1
je 0x10150c77
mov edx, dword [ebp - 0x98]
cmp dword [edx], 0
je 0x10150c45
mov eax, dword [ebp - 0x98]
cmp dword [eax], 2
jne 0x10150c77
mov ecx, dword [ebp - 8]
add ecx, 0x264
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x98]
mov ecx, dword [eax + 4]
mov dword [edx + 0x1f8], ecx
mov edx, dword [ebp - 8]
add edx, 0x264
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xd0]
and ecx, 1
je 0x10150d0f
mov edx, dword [ebp - 0x98]
cmp dword [edx], 1
je 0x10150c9f
mov eax, dword [ebp - 0x98]
cmp dword [eax], 2
jne 0x10150d0f
mov ecx, dword [ebp - 8]
add ecx, 0x264
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x210]
mov dword [ebp - 4], eax
jmp 0x10150cc6
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x10150cff
mov eax, dword [ebp - 4]
add eax, 0x57c
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x98]
mov eax, dword [edx + 4]
mov dword [ecx + 0x4a0], eax
mov ecx, dword [ebp - 4]
add ecx, 0x57c
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10150cbd
mov edx, dword [ebp - 8]
add edx, 0x264
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10155b51
cmp dword [ebp + 0x14], 8
jae 0x10150d28
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc0], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xd0]
and edx, 2
jne 0x10150d50
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xd0]
and ecx, 0x400000
je 0x10150d93
mov edx, dword [ebp - 8]
add edx, 0x264
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x210]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
je 0x10150d82
mov edx, dword [ebp - 4]
add edx, 0x57c
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 8]
add eax, 0x264
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10150dd3
mov ecx, dword [ebp - 0xc0]
cmp dword [ecx], 2
jbe 0x10150dcc
push 1
mov edx, dword [ebp - 0xc0]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.10180640
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10150dca
mov dword [ebp - 0xc], 2
jmp 0x10155b51
jmp 0x10150dd3
mov dword [ebp - 4], 0
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xd0]
and eax, 0x4000000
je 0x10150def
mov dword [ebp - 0x13c], 0x30
jmp 0x10150df9
mov dword [ebp - 0x13c], 0x30
cmp dword [ebp - 4], 0
je 0x10150e46
mov ecx, dword [ebp - 0xc0]
cmp dword [ecx + 4], 0
je 0x10150e25
mov edx, dword [ebp - 0xc0]
mov eax, dword [edx + 4]
add eax, dword [ebp - 0x13c]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x354], eax
jmp 0x10150e32
mov edx, dword [ebp - 4]
mov dword [edx + 0x354], 0xffff
mov eax, dword [ebp - 4]
add eax, 0x57c
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10150eda
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xd0]
and edx, 2
jne 0x10150e7e
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xd0]
and ecx, 0x400000
jne 0x10150e7e
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xd0]
and eax, 1
je 0x10150ed3
mov ecx, dword [ebp - 0xc0]
cmp dword [ecx], 0
jne 0x10150ed3
mov edx, dword [ebp - 8]
add edx, 0x264
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0xc0]
cmp dword [eax + 4], 0
je 0x10150eb4
mov ecx, dword [ebp - 0xc0]
mov edx, dword [ecx + 4]
add edx, dword [ebp - 0x13c]
mov eax, dword [ebp - 8]
mov dword [eax + 0x214], edx
jmp 0x10150ec1
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x214], 0xffff
mov edx, dword [ebp - 8]
add edx, 0x264
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10150eda
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
cmp dword [ebp + 0x14], 0xb
jae 0x10150ef3
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 8]
add ecx, 0x264
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp - 0x24]
movzx eax, byte [edx]
test eax, eax
je 0x10150f39
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc8]
or edx, 0x400
mov eax, dword [ecx + 0xcc]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0xc8], edx
mov dword [ecx + 0xcc], eax
jmp 0x10150f5c
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc8]
and eax, 0xfffffbff
mov ecx, dword [edx + 0xcc]
mov edx, dword [ebp - 8]
mov dword [edx + 0xc8], eax
mov dword [edx + 0xcc], ecx
mov eax, dword [ebp - 0x24]
movzx ecx, byte [eax + 1]
test ecx, ecx
je 0x10150f8c
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc8]
or eax, 0x800
mov ecx, dword [edx + 0xcc]
mov edx, dword [ebp - 8]
mov dword [edx + 0xc8], eax
mov dword [edx + 0xcc], ecx
jmp 0x10150fb0
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc8]
and ecx, 0xfffff7ff
mov edx, dword [eax + 0xcc]
mov eax, dword [ebp - 8]
mov dword [eax + 0xc8], ecx
mov dword [eax + 0xcc], edx
mov ecx, dword [ebp - 0x24]
movzx edx, byte [ecx + 2]
test edx, edx
je 0x10150fe1
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc8]
or ecx, 0x1000
mov edx, dword [eax + 0xcc]
mov eax, dword [ebp - 8]
mov dword [eax + 0xc8], ecx
mov dword [eax + 0xcc], edx
jmp 0x10151005
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc8]
and edx, 0xffffefff
mov eax, dword [ecx + 0xcc]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0xc8], edx
mov dword [ecx + 0xcc], eax
mov edx, dword [ebp - 0x24]
movzx eax, byte [edx + 3]
test eax, eax
je 0x10151036
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc8]
or edx, 0x4000
mov eax, dword [ecx + 0xcc]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0xc8], edx
mov dword [ecx + 0xcc], eax
jmp 0x10151059
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc8]
and eax, 0xffffbfff
mov ecx, dword [edx + 0xcc]
mov edx, dword [ebp - 8]
mov dword [edx + 0xc8], eax
mov dword [edx + 0xcc], ecx
mov eax, dword [ebp - 0x24]
movzx ecx, byte [eax + 4]
test ecx, ecx
je 0x10151089
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc8]
or eax, 0x2000
mov ecx, dword [edx + 0xcc]
mov edx, dword [ebp - 8]
mov dword [edx + 0xc8], eax
mov dword [edx + 0xcc], ecx
jmp 0x101510ad
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc8]
and ecx, 0xffffdfff
mov edx, dword [eax + 0xcc]
mov eax, dword [ebp - 8]
mov dword [eax + 0xc8], ecx
mov dword [eax + 0xcc], edx
mov ecx, dword [ebp - 0x24]
movzx edx, byte [ecx + 5]
test edx, edx
je 0x101510de
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc8]
or ecx, 0x8000
mov edx, dword [eax + 0xcc]
mov eax, dword [ebp - 8]
mov dword [eax + 0xc8], ecx
mov dword [eax + 0xcc], edx
jmp 0x10151102
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc8]
and edx, 0xffff7fff
mov eax, dword [ecx + 0xcc]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0xc8], edx
mov dword [ecx + 0xcc], eax
mov edx, dword [ebp - 0x24]
movzx eax, byte [edx + 6]
test eax, eax
je 0x10151133
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc8]
or edx, 0x20000
mov eax, dword [ecx + 0xcc]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0xc8], edx
mov dword [ecx + 0xcc], eax
jmp 0x10151156
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc8]
and eax, 0xfffdffff
mov ecx, dword [edx + 0xcc]
mov edx, dword [ebp - 8]
mov dword [edx + 0xc8], eax
mov dword [edx + 0xcc], ecx
mov eax, dword [ebp - 0x24]
movzx ecx, byte [eax + 7]
test ecx, ecx
je 0x10151186
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc8]
or eax, 0x10000
mov ecx, dword [edx + 0xcc]
mov edx, dword [ebp - 8]
mov dword [edx + 0xc8], eax
mov dword [edx + 0xcc], ecx
jmp 0x101511aa
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc8]
and ecx, 0xfffeffff
mov edx, dword [eax + 0xcc]
mov eax, dword [ebp - 8]
mov dword [eax + 0xc8], ecx
mov dword [eax + 0xcc], edx
mov ecx, dword [ebp - 0x24]
movzx edx, byte [ecx + 8]
test edx, edx
je 0x101511db
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc8]
or ecx, 0x40000
mov edx, dword [eax + 0xcc]
mov eax, dword [ebp - 8]
mov dword [eax + 0xc8], ecx
mov dword [eax + 0xcc], edx
jmp 0x101511ff
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc8]
and edx, 0xfffbffff
mov eax, dword [ecx + 0xcc]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0xc8], edx
mov dword [ecx + 0xcc], eax
mov edx, dword [ebp - 0x24]
movzx eax, byte [edx + 9]
test eax, eax
je 0x10151230
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc8]
or edx, 0x4000000
mov eax, dword [ecx + 0xcc]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0xc8], edx
mov dword [ecx + 0xcc], eax
jmp 0x10151253
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc8]
and eax, 0xfbffffff
mov ecx, dword [edx + 0xcc]
mov edx, dword [ebp - 8]
mov dword [edx + 0xc8], eax
mov dword [edx + 0xcc], ecx
mov eax, dword [ebp - 0x24]
movzx ecx, byte [eax + 0xa]
test ecx, ecx
je 0x10151283
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc8]
or eax, 0x80000
mov ecx, dword [edx + 0xcc]
mov edx, dword [ebp - 8]
mov dword [edx + 0xc8], eax
mov dword [edx + 0xcc], ecx
jmp 0x101512a7
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc8]
and ecx, 0xfff7ffff
mov edx, dword [eax + 0xcc]
mov eax, dword [ebp - 8]
mov dword [eax + 0xc8], ecx
mov dword [eax + 0xcc], edx
mov ecx, dword [ebp - 8]
add ecx, 0x264
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [ebp - 8]
add edx, 0x264
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x210]
mov dword [ebp - 4], ecx
jmp 0x101512de
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10151a3d
mov ecx, dword [ebp - 4]
add ecx, 0x57c
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp - 0x24]
movzx eax, byte [edx + 1]
test eax, eax
je 0x1015135a
cmp dword [ebp - 4], 0
je 0x1015132f
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x4e8]
or edx, 0x800
mov eax, dword [ecx + 0x4ec]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x4e8], edx
mov dword [ecx + 0x4ec], eax
jmp 0x10151358
cmp dword [ebp - 8], 0
je 0x10151358
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc8]
or eax, 0x800
mov ecx, dword [edx + 0xcc]
mov edx, dword [ebp - 8]
mov dword [edx + 0xc8], eax
mov dword [edx + 0xcc], ecx
jmp 0x101513b0
cmp dword [ebp - 4], 0
je 0x10151386
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x4e8]
and ecx, 0xfffff7ff
mov edx, dword [eax + 0x4ec]
mov eax, dword [ebp - 4]
mov dword [eax + 0x4e8], ecx
mov dword [eax + 0x4ec], edx
jmp 0x101513b0
cmp dword [ebp - 8], 0
je 0x101513b0
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc8]
and edx, 0xfffff7ff
mov eax, dword [ecx + 0xcc]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0xc8], edx
mov dword [ecx + 0xcc], eax
mov edx, dword [ebp - 0x24]
movzx eax, byte [edx + 2]
test eax, eax
je 0x10151412
cmp dword [ebp - 4], 0
je 0x101513e7
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x4e8]
or edx, 0x1000
mov eax, dword [ecx + 0x4ec]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x4e8], edx
mov dword [ecx + 0x4ec], eax
jmp 0x10151410
cmp dword [ebp - 8], 0
je 0x10151410
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc8]
or eax, 0x1000
mov ecx, dword [edx + 0xcc]
mov edx, dword [ebp - 8]
mov dword [edx + 0xc8], eax
mov dword [edx + 0xcc], ecx
jmp 0x10151468
cmp dword [ebp - 4], 0
je 0x1015143e
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x4e8]
and ecx, 0xffffefff
mov edx, dword [eax + 0x4ec]
mov eax, dword [ebp - 4]
mov dword [eax + 0x4e8], ecx
mov dword [eax + 0x4ec], edx
jmp 0x10151468
cmp dword [ebp - 8], 0
je 0x10151468
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc8]
and edx, 0xffffefff
mov eax, dword [ecx + 0xcc]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0xc8], edx
mov dword [ecx + 0xcc], eax
mov edx, dword [ebp - 0x24]
movzx eax, byte [edx + 3]
test eax, eax
je 0x101514ca
cmp dword [ebp - 4], 0
je 0x1015149f
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x4e8]
or edx, 0x4000
mov eax, dword [ecx + 0x4ec]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x4e8], edx
mov dword [ecx + 0x4ec], eax
jmp 0x101514c8
cmp dword [ebp - 8], 0
je 0x101514c8
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc8]
or eax, 0x4000
mov ecx, dword [edx + 0xcc]
mov edx, dword [ebp - 8]
mov dword [edx + 0xc8], eax
mov dword [edx + 0xcc], ecx
jmp 0x10151520
cmp dword [ebp - 4], 0
je 0x101514f6
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x4e8]
and ecx, 0xffffbfff
mov edx, dword [eax + 0x4ec]
mov eax, dword [ebp - 4]
mov dword [eax + 0x4e8], ecx
mov dword [eax + 0x4ec], edx
jmp 0x10151520
cmp dword [ebp - 8], 0
je 0x10151520
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc8]
and edx, 0xffffbfff
mov eax, dword [ecx + 0xcc]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0xc8], edx
mov dword [ecx + 0xcc], eax
mov edx, dword [ebp - 0x24]
movzx eax, byte [edx + 4]
test eax, eax
je 0x10151582
cmp dword [ebp - 4], 0
je 0x10151557
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x4e8]
or edx, 0x2000
mov eax, dword [ecx + 0x4ec]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x4e8], edx
mov dword [ecx + 0x4ec], eax
jmp 0x10151580
cmp dword [ebp - 8], 0
je 0x10151580
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc8]
or eax, 0x2000
mov ecx, dword [edx + 0xcc]
mov edx, dword [ebp - 8]
mov dword [edx + 0xc8], eax
mov dword [edx + 0xcc], ecx
jmp 0x101515d8
cmp dword [ebp - 4], 0
je 0x101515ae
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x4e8]
and ecx, 0xffffdfff
mov edx, dword [eax + 0x4ec]
mov eax, dword [ebp - 4]
mov dword [eax + 0x4e8], ecx
mov dword [eax + 0x4ec], edx
jmp 0x101515d8
cmp dword [ebp - 8], 0
je 0x101515d8
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc8]
and edx, 0xffffdfff
mov eax, dword [ecx + 0xcc]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0xc8], edx
mov dword [ecx + 0xcc], eax
mov edx, dword [ebp - 0x24]
movzx eax, byte [edx + 5]
test eax, eax
je 0x1015163a
cmp dword [ebp - 4], 0
je 0x1015160f
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x4e8]
or edx, 0x8000
mov eax, dword [ecx + 0x4ec]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x4e8], edx
mov dword [ecx + 0x4ec], eax
jmp 0x10151638
cmp dword [ebp - 8], 0
je 0x10151638
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc8]
or eax, 0x8000
mov ecx, dword [edx + 0xcc]
mov edx, dword [ebp - 8]
mov dword [edx + 0xc8], eax
mov dword [edx + 0xcc], ecx
jmp 0x10151690
cmp dword [ebp - 4], 0
je 0x10151666
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x4e8]
and ecx, 0xffff7fff
mov edx, dword [eax + 0x4ec]
mov eax, dword [ebp - 4]
mov dword [eax + 0x4e8], ecx
mov dword [eax + 0x4ec], edx
jmp 0x10151690
cmp dword [ebp - 8], 0
je 0x10151690
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc8]
and edx, 0xffff7fff
mov eax, dword [ecx + 0xcc]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0xc8], edx
mov dword [ecx + 0xcc], eax
mov edx, dword [ebp - 0x24]
movzx eax, byte [edx + 6]
test eax, eax
je 0x101516f2
cmp dword [ebp - 4], 0
je 0x101516c7
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x4e8]
or edx, 0x20000
mov eax, dword [ecx + 0x4ec]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x4e8], edx
mov dword [ecx + 0x4ec], eax
jmp 0x101516f0
cmp dword [ebp - 8], 0
je 0x101516f0
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc8]
or eax, 0x20000
mov ecx, dword [edx + 0xcc]
mov edx, dword [ebp - 8]
mov dword [edx + 0xc8], eax
mov dword [edx + 0xcc], ecx
jmp 0x10151748
cmp dword [ebp - 4], 0
je 0x1015171e
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x4e8]
and ecx, 0xfffdffff
mov edx, dword [eax + 0x4ec]
mov eax, dword [ebp - 4]
mov dword [eax + 0x4e8], ecx
mov dword [eax + 0x4ec], edx
jmp 0x10151748
cmp dword [ebp - 8], 0
je 0x10151748
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc8]
and edx, 0xfffdffff
mov eax, dword [ecx + 0xcc]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0xc8], edx
mov dword [ecx + 0xcc], eax
mov edx, dword [ebp - 0x24]
movzx eax, byte [edx + 7]
test eax, eax
je 0x101517aa
cmp dword [ebp - 4], 0
je 0x1015177f
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x4e8]
or edx, 0x10000
mov eax, dword [ecx + 0x4ec]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x4e8], edx
mov dword [ecx + 0x4ec], eax
jmp 0x101517a8
cmp dword [ebp - 8], 0
je 0x101517a8
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc8]
or eax, 0x10000
mov ecx, dword [edx + 0xcc]
mov edx, dword [ebp - 8]
mov dword [edx + 0xc8], eax
mov dword [edx + 0xcc], ecx
jmp 0x10151800
cmp dword [ebp - 4], 0
je 0x101517d6
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x4e8]
and ecx, 0xfffeffff
mov edx, dword [eax + 0x4ec]
mov eax, dword [ebp - 4]
mov dword [eax + 0x4e8], ecx
mov dword [eax + 0x4ec], edx
jmp 0x10151800
cmp dword [ebp - 8], 0
je 0x10151800
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc8]
and edx, 0xfffeffff
mov eax, dword [ecx + 0xcc]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0xc8], edx
mov dword [ecx + 0xcc], eax
mov edx, dword [ebp - 0x24]
movzx eax, byte [edx + 8]
test eax, eax
je 0x10151862
cmp dword [ebp - 4], 0
je 0x10151837
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x4e8]
or edx, 0x40000
mov eax, dword [ecx + 0x4ec]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x4e8], edx
mov dword [ecx + 0x4ec], eax
jmp 0x10151860
cmp dword [ebp - 8], 0
je 0x10151860
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc8]
or eax, 0x40000
mov ecx, dword [edx + 0xcc]
mov edx, dword [ebp - 8]
mov dword [edx + 0xc8], eax
mov dword [edx + 0xcc], ecx
jmp 0x101518b8
cmp dword [ebp - 4], 0
je 0x1015188e
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x4e8]
and ecx, 0xfffbffff
mov edx, dword [eax + 0x4ec]
mov eax, dword [ebp - 4]
mov dword [eax + 0x4e8], ecx
mov dword [eax + 0x4ec], edx
jmp 0x101518b8
cmp dword [ebp - 8], 0
je 0x101518b8
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc8]
and edx, 0xfffbffff
mov eax, dword [ecx + 0xcc]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0xc8], edx
mov dword [ecx + 0xcc], eax
mov edx, dword [ebp - 0x24]
movzx eax, byte [edx + 9]
test eax, eax
je 0x1015191a
cmp dword [ebp - 4], 0
je 0x101518ef
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x4e8]
or edx, 0x4000000
mov eax, dword [ecx + 0x4ec]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x4e8], edx
mov dword [ecx + 0x4ec], eax
jmp 0x10151918
cmp dword [ebp - 8], 0
je 0x10151918
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc8]
or eax, 0x4000000
mov ecx, dword [edx + 0xcc]
mov edx, dword [ebp - 8]
mov dword [edx + 0xc8], eax
mov dword [edx + 0xcc], ecx
jmp 0x10151970
cmp dword [ebp - 4], 0
je 0x10151946
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x4e8]
and ecx, 0xfbffffff
mov edx, dword [eax + 0x4ec]
mov eax, dword [ebp - 4]
mov dword [eax + 0x4e8], ecx
mov dword [eax + 0x4ec], edx
jmp 0x10151970
cmp dword [ebp - 8], 0
je 0x10151970
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc8]
and edx, 0xfbffffff
mov eax, dword [ecx + 0xcc]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0xc8], edx
mov dword [ecx + 0xcc], eax
mov edx, dword [ebp - 0x24]
movzx eax, byte [edx + 0xa]
test eax, eax
je 0x101519d2
cmp dword [ebp - 4], 0
je 0x101519a7
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x4e8]
or edx, 0x80000
mov eax, dword [ecx + 0x4ec]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x4e8], edx
mov dword [ecx + 0x4ec], eax
jmp 0x101519d0
cmp dword [ebp - 8], 0
je 0x101519d0
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc8]
or eax, 0x80000
mov ecx, dword [edx + 0xcc]
mov edx, dword [ebp - 8]
mov dword [edx + 0xc8], eax
mov dword [edx + 0xcc], ecx
jmp 0x10151a28
cmp dword [ebp - 4], 0
je 0x101519fe
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x4e8]
and ecx, 0xfff7ffff
mov edx, dword [eax + 0x4ec]
mov eax, dword [ebp - 4]
mov dword [eax + 0x4e8], ecx
mov dword [eax + 0x4ec], edx
jmp 0x10151a28
cmp dword [ebp - 8], 0
je 0x10151a28
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc8]
and edx, 0xfff7ffff
mov eax, dword [ecx + 0xcc]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0xc8], edx
mov dword [ecx + 0xcc], eax
mov edx, dword [ebp - 4]
add edx, 0x57c
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x101512d5
mov eax, dword [ebp - 0x24]
movzx ecx, byte [eax + 9]
test ecx, ecx
je 0x10151ad5
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xd0]
and eax, 2
jne 0x10151a6b
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xd0]
and edx, 0x400000
je 0x10151ad5
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x210]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
je 0x10151ad5
mov edx, dword [ebp - 4]
add edx, 0x57c
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 4]
cmp dword [eax + 0x1ec], 0
jne 0x10151ac5
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x1e4], 0
jne 0x10151ac5
mov edx, dword [ebp - 4]
cmp dword [edx + 0x370], 0
jne 0x10151ac5
push 1
push 0
push 0
mov eax, dword [ebp - 4]
push eax
push 0x1a
call fcn.10177210
add esp, 0x14
mov ecx, dword [ebp - 4]
add ecx, 0x57c
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [ebp - 8]
add edx, 0x264
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10155b51
cmp dword [ebp + 0x14], 4
jae 0x10151afe
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x17c], eax
mov ecx, dword [ebp - 8]
add ecx, 0x264
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x17c]
mov ecx, dword [eax]
mov dword [edx + 0x1ec], ecx
mov edx, dword [ebp - 8]
mov byte [edx + 0x1f0], 1
mov eax, dword [ebp - 8]
add eax, 0x264
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10155b51
cmp dword [ebp + 0x14], 4
jae 0x10151b5a
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x180], ecx
mov edx, dword [ebp - 8]
add edx, 0x264
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x180]
mov edx, dword [ecx]
mov dword [eax + 0x1e8], edx
mov eax, dword [ebp - 8]
add eax, 0x264
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10155b51
cmp dword [ebp + 0x14], 0x80
jae 0x10151baf
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x68], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xd0]
and eax, 2
jne 0x10151bd4
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xd0]
and edx, 0x400000
je 0x10151c16
mov eax, dword [ebp - 8]
add eax, 0x264
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x210]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x10151c04
mov eax, dword [ebp - 4]
add eax, 0x57c
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 8]
add ecx, 0x264
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10151c52
mov edx, dword [ebp - 0x68]
cmp dword [edx + 0x1c], 2
jbe 0x10151c4b
push 1
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax + 0x1c]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.10180640
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10151c49
mov dword [ebp - 0xc], 2
jmp 0x10155b51
jmp 0x10151c52
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x10151cbf
mov eax, dword [ebp - 0x68]
movzx ecx, word [eax]
mov edx, dword [ebp - 4]
movzx eax, word [edx + 0x47e]
cmp ecx, eax
jge 0x10151ca3
cmp dword [ebp + 0x14], 0x24
jae 0x10151c7d
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x158], ecx
jmp 0x10151c87
mov dword [ebp - 0x158], 0x24
mov edx, dword [ebp - 0x158]
push edx
mov eax, dword [ebp - 0x68]
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x5c
push ecx
call fcn.10316b20
add esp, 0xc
jmp 0x10151caa
mov dword [ebp - 0xc], 0x16
mov edx, dword [ebp - 4]
add edx, 0x57c
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10151e22
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xd0]
and ecx, 2
jne 0x10151cfd
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xd0]
and eax, 0x400000
jne 0x10151cfd
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xd0]
and edx, 1
je 0x10151d54
mov eax, dword [ebp - 0x68]
cmp dword [eax + 0x1c], 0
je 0x10151cfd
mov ecx, dword [ebp - 0x68]
cmp dword [ecx + 0x1c], 2
jne 0x10151d54
mov edx, dword [ebp - 8]
add edx, 0x264
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebp + 0x14], 0x24
jae 0x10151d1e
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x15c], eax
jmp 0x10151d28
mov dword [ebp - 0x15c], 0x24
mov ecx, dword [ebp - 0x15c]
push ecx
mov edx, dword [ebp - 0x68]
push edx
mov eax, dword [ebp - 8]
add eax, 0x234
push eax
call fcn.10316b20
add esp, 0xc
mov ecx, dword [ebp - 8]
add ecx, 0x264
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xd0]
and eax, 1
je 0x10151e22
mov ecx, dword [ebp - 0x68]
cmp dword [ecx + 0x1c], 1
je 0x10151d7c
mov edx, dword [ebp - 0x68]
cmp dword [edx + 0x1c], 2
jne 0x10151e22
mov eax, dword [ebp - 8]
add eax, 0x264
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x210]
mov dword [ebp - 4], edx
jmp 0x10151da2
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
je 0x10151e13
mov edx, dword [ebp - 4]
add edx, 0x57c
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x68]
movzx ecx, word [eax]
mov edx, dword [ebp - 4]
movzx eax, word [edx + 0x47e]
cmp ecx, eax
jge 0x10151e01
cmp dword [ebp + 0x14], 0x24
jae 0x10151ddd
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x160], ecx
jmp 0x10151de7
mov dword [ebp - 0x160], 0x24
mov edx, dword [ebp - 0x160]
push edx
mov eax, dword [ebp - 0x68]
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x5c
push ecx
call fcn.10316b20
add esp, 0xc
mov edx, dword [ebp - 4]
add edx, 0x57c
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10151d99
mov eax, dword [ebp - 8]
add eax, 0x264
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10155b51
cmp dword [ebp + 0x14], 0x98
jae 0x10151e3e
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xd0]
and eax, 2
jne 0x10151e63
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xd0]
and edx, 0x400000
je 0x10151ea5
mov eax, dword [ebp - 8]
add eax, 0x264
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x210]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x10151e93
mov eax, dword [ebp - 4]
add eax, 0x57c
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 8]
add ecx, 0x264
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10151ee7
mov edx, dword [ebp - 0x14]
cmp dword [edx + 0x80], 2
jbe 0x10151ee0
push 1
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x80]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.10180640
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10151ede
mov dword [ebp - 0xc], 2
jmp 0x10155b51
jmp 0x10151ee7
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 4], 0
je 0x10151f0e
mov ecx, dword [ebp - 0x114]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.1017ec30
add esp, 8
mov dword [ebp - 0x10], eax
jmp 0x10151f5a
mov dword [ebp - 0x10], 0
mov eax, 1
mov ecx, dword [ebp - 8]
add ecx, 0x2ac
lock xadd dword [ecx], eax
push 0
push 0
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x114]
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.10180020
add esp, 0x14
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10151f5a
or edx, 0xffffffff
mov eax, dword [ebp - 8]
add eax, 0x2ac
lock xadd dword [eax], edx
cmp dword [ebp - 4], 0
je 0x10151fc5
cmp dword [ebp - 0x10], 0
jne 0x10151fc5
mov ecx, dword [ebp - 0x114]
movzx edx, word [ecx]
cmp edx, 0x7b
jne 0x10151faa
mov eax, dword [ebp - 0x114]
mov dword [ebp - 0x184], eax
mov ecx, dword [ebp - 0x184]
cmp dword [ecx + 4], 0
je 0x10151fa8
mov edx, dword [ebp - 4]
add edx, 0x57c
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
jmp 0x10151fc5
mov dword [ebp - 0xc], 0x66
mov eax, dword [ebp - 4]
add eax, 0x57c
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10155b51
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x8c]
and edx, 1
je 0x10152001
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x8c]
and ecx, 2
je 0x10152001
cmp dword [ebp - 4], 0
je 0x10151ff7
mov edx, dword [ebp - 4]
add edx, 0x57c
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 0x16
jmp 0x10155b54
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x8c]
and ecx, 8
je 0x1015203d
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x8c]
and eax, 0x10
je 0x1015203d
cmp dword [ebp - 4], 0
je 0x10152033
mov ecx, dword [ebp - 4]
add ecx, 0x57c
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 0x16
jmp 0x10155b54
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x8c]
and eax, 0x10
je 0x10152095
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + 0x88], 0
jbe 0x10152095
mov edx, dword [ebp - 0x14]
cmp dword [edx + 0x88], 0x200
jb 0x10152075
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x88], 0x10000
jbe 0x10152095
cmp dword [ebp - 4], 0
je 0x1015208b
mov ecx, dword [ebp - 4]
add ecx, 0x57c
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 0x16
jmp 0x10155b54
cmp dword [ebp - 4], 0
je 0x10152ba3
cmp dword [ebp - 0x10], 0
je 0x101524e4
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x8c]
and eax, 2
je 0x1015210a
mov ecx, dword [ebp - 0x10]
movzx edx, word [ecx + 0x1a4]
and edx, 0x200
jne 0x101520f3
mov eax, dword [ebp - 0x10]
movzx ecx, word [eax + 0x1a4]
and ecx, 4
jne 0x101520f3
push 0x50000009
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 5
call fcn.10174d10
add esp, 0x14
mov edx, dword [ebp - 0x10]
movzx eax, word [edx + 0x1a4]
or eax, 4
mov ecx, dword [ebp - 0x10]
mov word [ecx + 0x1a4], ax
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x8c]
and eax, 1
je 0x101521a1
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + 0x84], 0
je 0x1015213c
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x84]
mov dword [edx + 0x1a0], ecx
jmp 0x10152159
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x8c]
and eax, 0x80
je 0x10152159
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x1a0], 0
push 0x5000000a
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 5
call fcn.10174d10
add esp, 0x14
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 5
call fcn.101743e0
add esp, 0x10
mov edx, dword [ebp - 0x10]
movzx eax, word [edx + 0x1a4]
and eax, 0xfffffffb
mov ecx, dword [ebp - 0x10]
mov word [ecx + 0x1a4], ax
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x8c]
and eax, 4
je 0x101521f9
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x30]
and edx, 0x7f
cmp edx, 8
jne 0x101521f9
push 1
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.101632f0
add esp, 0xc
push 1
push 0x11
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.10160dd0
add esp, 0x10
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
push 5
call fcn.101743e0
add esp, 0x10
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x8c]
and edx, 0x10
je 0x101522be
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x1c]
and ecx, 4
je 0x10152231
push 0x5000000b
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 8
call fcn.10174d10
add esp, 0x14
mov edx, dword [ebp - 0x10]
movzx eax, word [edx + 0x1a4]
or eax, 2
mov ecx, dword [ebp - 0x10]
mov word [ecx + 0x1a4], ax
mov edx, dword [ebp - 0x14]
cmp dword [edx + 0x88], 0
jbe 0x101522be
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x88]
mov dword [eax + 0x94], edx
mov eax, dword [ebp - 0x10]
movzx ecx, word [eax + 0x74]
mov dword [ebp - 0x188], ecx
cmp dword [ebp - 0x188], 0x7b
je 0x1015227e
jmp 0x10152293
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x94]
add eax, 0xc
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x94], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
mov ecx, dword [edx + 0x94]
cmp ecx, dword [eax + 0x2e8]
jae 0x101522be
mov edx, dword [ebp - 0x10]
movzx eax, word [edx + 0x94]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.10146aa0
add esp, 8
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x8c]
and eax, 8
je 0x10152304
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x1c]
and edx, 4
jne 0x101522ed
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
push edx
push 8
call fcn.101743e0
add esp, 0x10
mov eax, dword [ebp - 0x10]
movzx ecx, word [eax + 0x1a4]
and ecx, 0xfffffffd
mov edx, dword [ebp - 0x10]
mov word [edx + 0x1a4], cx
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax + 0x94]
test ecx, ecx
jle 0x1015249f
mov edx, dword [ebp - 0x10]
movzx eax, word [edx + 0x1a4]
and eax, 0x800
je 0x1015235d
mov ecx, dword [ebp - 0x10]
movzx edx, word [ecx + 0x1aa]
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax + 0x94]
cmp edx, ecx
jle 0x10152358
mov edx, dword [ebp - 0x10]
movzx eax, word [edx + 0x1a4]
and eax, 0xfffff7ff
mov ecx, dword [ebp - 0x10]
mov word [ecx + 0x1a4], ax
jmp 0x101523f0
mov edx, dword [ebp - 0x10]
movzx eax, word [edx + 0x1aa]
mov ecx, dword [ebp - 0x14]
movzx edx, word [ecx + 0x94]
cmp eax, edx
jg 0x101523f0
mov eax, dword [ebp - 0x10]
movzx ecx, word [eax + 0x1aa]
mov edx, dword [ebp - 0x10]
movzx eax, word [edx + 0x1a8]
cmp ecx, eax
jle 0x101523f0
mov ecx, dword [ebp - 0x10]
movzx edx, word [ecx + 0x1a4]
or edx, 0x800
mov eax, dword [ebp - 0x10]
mov word [eax + 0x1a4], dx
push 1
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.101632f0
add esp, 0xc
push 0x5000000c
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
push 5
call fcn.10174d10
add esp, 0x14
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
push 5
call fcn.101743e0
add esp, 0x10
mov edx, dword [ebp - 0x10]
movzx eax, word [edx + 0x1a4]
and eax, 1
je 0x10152446
mov ecx, dword [ebp - 0x10]
movzx edx, word [ecx + 0x1aa]
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax + 0x94]
cmp edx, ecx
jle 0x10152444
mov edx, dword [ebp - 0x10]
movzx eax, word [edx + 0x1a4]
and eax, 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov word [ecx + 0x1a4], ax
push 1
mov edx, dword [ebp - 0x10]
push edx
push 0
mov eax, dword [ebp - 4]
push eax
push 3
call fcn.10177210
add esp, 0x14
jmp 0x1015248b
mov ecx, dword [ebp - 0x10]
movzx edx, word [ecx + 0x1aa]
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax + 0x94]
cmp edx, ecx
jg 0x1015248b
mov edx, dword [ebp - 0x10]
movzx eax, word [edx + 0x1a4]
or eax, 1
mov ecx, dword [ebp - 0x10]
mov word [ecx + 0x1a4], ax
push 1
mov edx, dword [ebp - 0x10]
push edx
push 0
mov eax, dword [ebp - 4]
push eax
push 4
call fcn.10177210
add esp, 0x14
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov ax, word [edx + 0x94]
mov word [ecx + 0x1a6], ax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x8c]
and edx, 0x200
je 0x101524df
mov eax, dword [ebp - 0x14]
movzx ecx, byte [eax + 0x96]
and ecx, 0xfc
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x18c], cl
mov eax, dword [ebp - 0x10]
movzx ecx, byte [eax + 0x18c]
or ecx, 1
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x18c], cl
jmp 0x10152b8f
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax + 0x94]
test ecx, ecx
jle 0x101526b9
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
mov cx, word [eax + 0x94]
mov word [edx + 0x488], cx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x1c4]
mov dword [ebp - 0x10], eax
jmp 0x10152520
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0
je 0x101526b9
mov eax, dword [ebp - 0x10]
movzx ecx, word [eax + 0x1a4]
and ecx, 0x800
je 0x10152573
mov edx, dword [ebp - 0x10]
movzx eax, word [edx + 0x1aa]
mov ecx, dword [ebp - 0x14]
movzx edx, word [ecx + 0x94]
cmp eax, edx
jle 0x1015256e
mov eax, dword [ebp - 0x10]
movzx ecx, word [eax + 0x1a4]
and ecx, 0xfffff7ff
mov edx, dword [ebp - 0x10]
mov word [edx + 0x1a4], cx
jmp 0x10152605
mov eax, dword [ebp - 0x10]
movzx ecx, word [eax + 0x1aa]
mov edx, dword [ebp - 0x14]
movzx eax, word [edx + 0x94]
cmp ecx, eax
jg 0x10152605
mov ecx, dword [ebp - 0x10]
movzx edx, word [ecx + 0x1aa]
mov eax, dword [ebp - 0x10]
movzx ecx, word [eax + 0x1a8]
cmp edx, ecx
jle 0x10152605
mov edx, dword [ebp - 0x10]
movzx eax, word [edx + 0x1a4]
or eax, 0x800
mov ecx, dword [ebp - 0x10]
mov word [ecx + 0x1a4], ax
push 1
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.101632f0
add esp, 0xc
push 0x5000000d
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
push 5
call fcn.10174d10
add esp, 0x14
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
push 5
call fcn.101743e0
add esp, 0x10
mov eax, dword [ebp - 0x10]
movzx ecx, word [eax + 0x1a4]
and ecx, 1
je 0x1015265b
mov edx, dword [ebp - 0x10]
movzx eax, word [edx + 0x1aa]
mov ecx, dword [ebp - 0x14]
movzx edx, word [ecx + 0x94]
cmp eax, edx
jle 0x10152659
mov eax, dword [ebp - 0x10]
movzx ecx, word [eax + 0x1a4]
and ecx, 0xfffffffe
mov edx, dword [ebp - 0x10]
mov word [edx + 0x1a4], cx
push 1
mov eax, dword [ebp - 0x10]
push eax
push 0
mov ecx, dword [ebp - 4]
push ecx
push 3
call fcn.10177210
add esp, 0x14
jmp 0x101526a0
mov edx, dword [ebp - 0x10]
movzx eax, word [edx + 0x1aa]
mov ecx, dword [ebp - 0x14]
movzx edx, word [ecx + 0x94]
cmp eax, edx
jg 0x101526a0
mov eax, dword [ebp - 0x10]
movzx ecx, word [eax + 0x1a4]
or ecx, 1
mov edx, dword [ebp - 0x10]
mov word [edx + 0x1a4], cx
push 1
mov eax, dword [ebp - 0x10]
push eax
push 0
mov ecx, dword [ebp - 4]
push ecx
push 4
call fcn.10177210
add esp, 0x14
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov cx, word [eax + 0x94]
mov word [edx + 0x1a6], cx
jmp 0x10152518
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x8c]
and eax, 1
je 0x10152812
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + 0x84], 0
je 0x101526eb
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x84]
mov dword [edx + 0x3ac], ecx
jmp 0x10152708
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x8c]
and eax, 0x80
je 0x10152708
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x3ac], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x1c4]
mov dword [ebp - 0x10], eax
jmp 0x1015271e
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0
je 0x101527c2
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x84], 0
je 0x10152748
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x84]
mov dword [ecx + 0x1a0], eax
jmp 0x10152766
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x8c]
and edx, 0x80
je 0x10152766
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x1a0], 0
mov ecx, dword [ebp - 0x10]
movzx edx, word [ecx + 0x1a4]
and edx, 4
je 0x1015278c
mov eax, dword [ebp - 0x10]
movzx ecx, word [eax + 0x1a4]
and ecx, 0xfffffffb
mov edx, dword [ebp - 0x10]
mov word [edx + 0x1a4], cx
push 0x5000000e
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
push edx
push 5
call fcn.10174d10
add esp, 0x14
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
push edx
push 5
call fcn.101743e0
add esp, 0x10
jmp 0x10152716
cmp dword [ebp - 4], 0
je 0x101527eb
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x4e8]
and ecx, 0xfffffffb
mov edx, dword [eax + 0x4ec]
mov eax, dword [ebp - 4]
mov dword [eax + 0x4e8], ecx
mov dword [eax + 0x4ec], edx
jmp 0x10152812
cmp dword [ebp - 8], 0
je 0x10152812
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc8]
and edx, 0xfffffffb
mov eax, dword [ecx + 0xcc]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0xc8], edx
mov dword [ecx + 0xcc], eax
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x8c]
and eax, 2
je 0x101528e5
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x1c4]
mov dword [ebp - 0x10], edx
jmp 0x1015283a
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
je 0x10152895
mov edx, dword [ebp - 0x10]
movzx eax, word [edx + 0x1a4]
and eax, 4
jne 0x10152893
mov ecx, dword [ebp - 0x10]
movzx edx, word [ecx + 0x1a4]
or edx, 4
mov eax, dword [ebp - 0x10]
mov word [eax + 0x1a4], dx
mov ecx, dword [ebp - 0x10]
movzx edx, word [ecx + 0x1a4]
and edx, 0x200
jne 0x10152893
push 0x5000000f
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
push edx
push 5
call fcn.10174d10
add esp, 0x14
jmp 0x10152832
cmp dword [ebp - 4], 0
je 0x101528be
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x4e8]
or ecx, 4
mov edx, dword [eax + 0x4ec]
mov eax, dword [ebp - 4]
mov dword [eax + 0x4e8], ecx
mov dword [eax + 0x4ec], edx
jmp 0x101528e5
cmp dword [ebp - 8], 0
je 0x101528e5
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc8]
or edx, 4
mov eax, dword [ecx + 0xcc]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0xc8], edx
mov dword [ecx + 0xcc], eax
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x8c]
and eax, 0x10
je 0x10152a3d
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x1c4]
mov dword [ebp - 0x10], edx
jmp 0x1015290d
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
je 0x101529cf
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x1c]
and eax, 4
je 0x1015293d
push 0x50000010
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
push 8
call fcn.10174d10
add esp, 0x14
mov ecx, dword [ebp - 0x10]
movzx edx, word [ecx + 0x1a4]
or edx, 2
mov eax, dword [ebp - 0x10]
mov word [eax + 0x1a4], dx
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + 0x88], 0
jbe 0x101529ca
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x94], ecx
mov edx, dword [ebp - 0x10]
movzx eax, word [edx + 0x74]
mov dword [ebp - 0x18c], eax
cmp dword [ebp - 0x18c], 0x7b
je 0x1015298a
jmp 0x1015299f
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x94]
add edx, 0xc
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x94], edx
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
mov eax, dword [ecx + 0x94]
cmp eax, dword [edx + 0x2e8]
jae 0x101529ca
mov ecx, dword [ebp - 0x10]
movzx edx, word [ecx + 0x94]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.10146aa0
add esp, 8
jmp 0x10152905
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + 0x88], 0
jbe 0x101529ed
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x470], ecx
cmp dword [ebp - 4], 0
je 0x10152a16
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x4e8]
or eax, 1
mov ecx, dword [edx + 0x4ec]
mov edx, dword [ebp - 4]
mov dword [edx + 0x4e8], eax
mov dword [edx + 0x4ec], ecx
jmp 0x10152a3d
cmp dword [ebp - 8], 0
je 0x10152a3d
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc8]
or ecx, 1
mov edx, dword [eax + 0xcc]
mov eax, dword [ebp - 8]
mov dword [eax + 0xc8], ecx
mov dword [eax + 0xcc], edx
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x8c]
and edx, 8
je 0x10152b02
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x1c4]
mov dword [ebp - 0x10], ecx
jmp 0x10152a65
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x10152aa5
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x1c]
and edx, 4
jne 0x10152a8c
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
push edx
push 8
call fcn.101743e0
add esp, 0x10
mov eax, dword [ebp - 0x10]
movzx ecx, word [eax + 0x1a4]
and ecx, 0xfffffffd
mov edx, dword [ebp - 0x10]
mov word [edx + 0x1a4], cx
jmp 0x10152a5d
mov eax, dword [ebp - 4]
mov dword [eax + 0x470], 0
cmp dword [ebp - 4], 0
je 0x10152adb
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x4e8]
and edx, 0xfffffffe
mov eax, dword [ecx + 0x4ec]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x4e8], edx
mov dword [ecx + 0x4ec], eax
jmp 0x10152b02
cmp dword [ebp - 8], 0
je 0x10152b02
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc8]
and eax, 0xfffffffe
mov ecx, dword [edx + 0xcc]
mov edx, dword [ebp - 8]
mov dword [edx + 0xc8], eax
mov dword [edx + 0xcc], ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x8c]
and ecx, 0x200
je 0x10152b8f
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x1c4]
mov dword [ebp - 0x10], eax
jmp 0x10152b29
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0
je 0x10152b60
mov eax, dword [ebp - 0x14]
movzx ecx, byte [eax + 0x96]
and ecx, 0xfc
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x18c], cl
mov eax, dword [ebp - 0x10]
movzx ecx, byte [eax + 0x18c]
or ecx, 1
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x18c], cl
jmp 0x10152b21
mov eax, dword [ebp - 0x14]
movzx ecx, byte [eax + 0x96]
and ecx, 0xfc
mov edx, dword [ebp - 4]
mov byte [edx + 0x4b4], cl
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + 0x4b4]
or ecx, 1
mov edx, dword [ebp - 4]
mov byte [edx + 0x4b4], cl
mov eax, dword [ebp - 4]
add eax, 0x57c
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10152e26
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xd0]
and edx, 2
jne 0x10152be4
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xd0]
and ecx, 0x400000
jne 0x10152be4
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xd0]
and eax, 1
je 0x10152e1f
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + 0x80], 0
jne 0x10152e1f
mov edx, dword [ebp - 8]
add edx, 0x264
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax + 0x94]
test ecx, ecx
jle 0x10152c16
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
mov cx, word [eax + 0x94]
mov word [edx + 0x178], cx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x8c]
and eax, 0x80
je 0x10152c3e
mov ecx, 4
imul edx, ecx, 3
mov eax, dword [ebp - 8]
mov dword [eax + edx + 0x120], 0
jmp 0x10152c8a
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + 0x84], 0
je 0x10152c8a
mov edx, dword [ebp - 0x14]
cmp dword [edx + 0x84], 0xdbba00
jbe 0x10152c66
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x84], 0xdbba00
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x84]
push edx
call fcn.1017aa80
add esp, 4
mov ecx, 4
imul edx, ecx, 3
mov ecx, dword [ebp - 8]
mov dword [ecx + edx + 0x120], eax
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x8c]
and eax, 1
je 0x10152d14
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x8c]
and edx, 0x80
je 0x10152cc1
mov eax, 4
imul ecx, eax, 3
mov edx, dword [ebp - 8]
mov dword [edx + ecx + 0x120], 0
jmp 0x10152cf1
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x84], 0
je 0x10152cf1
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x84]
push edx
call fcn.1017aa80
add esp, 4
mov ecx, 4
imul edx, ecx, 3
mov ecx, dword [ebp - 8]
mov dword [ecx + edx + 0x120], eax
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc8]
and eax, 0xfffffffb
mov ecx, dword [edx + 0xcc]
mov edx, dword [ebp - 8]
mov dword [edx + 0xc8], eax
mov dword [edx + 0xcc], ecx
jmp 0x10152d43
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x8c]
and ecx, 2
je 0x10152d43
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc8]
or eax, 4
mov ecx, dword [edx + 0xcc]
mov edx, dword [ebp - 8]
mov dword [edx + 0xc8], eax
mov dword [edx + 0xcc], ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x8c]
and ecx, 8
je 0x10152d81
mov edx, dword [ebp - 8]
mov dword [edx + 0x170], 0
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc8]
and ecx, 0xfffffffe
mov edx, dword [eax + 0xcc]
mov eax, dword [ebp - 8]
mov dword [eax + 0xc8], ecx
mov dword [eax + 0xcc], edx
jmp 0x10152dce
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x8c]
and edx, 0x10
je 0x10152dce
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x88], 0
jbe 0x10152dad
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x88]
mov dword [ecx + 0x170], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc8]
or edx, 1
mov eax, dword [ecx + 0xcc]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0xc8], edx
mov dword [ecx + 0xcc], eax
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x8c]
and eax, 0x200
je 0x10152e0d
mov ecx, dword [ebp - 0x14]
movzx edx, byte [ecx + 0x96]
and edx, 0xfc
mov eax, dword [ebp - 8]
mov byte [eax + 0x200], dl
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + 0x200]
or edx, 1
mov eax, dword [ebp - 8]
mov byte [eax + 0x200], dl
mov ecx, dword [ebp - 8]
add ecx, 0x264
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10152e26
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
cmp dword [ebp + 0x14], 0x10
jae 0x10152e3f
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xd0]
and ecx, 2
jne 0x10152e63
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xd0]
and eax, 0x400000
je 0x10152ea7
mov ecx, dword [ebp - 8]
add ecx, 0x264
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x210]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10152e95
mov ecx, dword [ebp - 4]
add ecx, 0x57c
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp - 8]
add edx, 0x264
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10152ee1
mov eax, dword [ebp - 0x48]
cmp dword [eax], 2
jbe 0x10152eda
push 1
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.10180640
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10152ed8
mov dword [ebp - 0xc], 2
jmp 0x10155b51
jmp 0x10152ee1
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x10152fc3
mov ecx, dword [ebp - 0x48]
cmp dword [ecx + 4], 0
je 0x10152f02
mov edx, dword [ebp - 0x48]
mov eax, dword [edx + 4]
mov dword [ebp - 0x9c], eax
jmp 0x10152f11
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x428]
mov dword [ebp - 0x9c], edx
mov eax, dword [ebp - 0x48]
cmp dword [eax + 8], 0
je 0x10152f28
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx + 8]
mov dword [ebp - 0xc4], edx
jmp 0x10152f37
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x430]
mov dword [ebp - 0xc4], ecx
mov edx, dword [ebp - 0x48]
cmp dword [edx + 0xc], 0
je 0x10152f4e
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0xc8], ecx
jmp 0x10152f5d
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x42c]
mov dword [ebp - 0xc8], eax
mov ecx, dword [ebp - 0xc8]
cmp ecx, dword [ebp - 0x9c]
ja 0x10152fa8
mov edx, dword [ebp - 0x9c]
cmp edx, dword [ebp - 0xc4]
ja 0x10152fa8
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x9c]
mov dword [eax + 0x428], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc4]
mov dword [edx + 0x430], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc8]
mov dword [ecx + 0x42c], edx
jmp 0x10152faf
mov dword [ebp - 0xc], 0x16
mov eax, dword [ebp - 4]
add eax, 0x57c
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x101530ed
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xd0]
and edx, 2
jne 0x10153000
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xd0]
and ecx, 0x400000
jne 0x10153000
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xd0]
and eax, 1
je 0x101530e6
mov ecx, dword [ebp - 0x48]
cmp dword [ecx], 0
jne 0x101530e6
mov edx, dword [ebp - 8]
add edx, 0x264
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x48]
cmp dword [eax + 4], 0
je 0x10153027
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x9c], edx
jmp 0x10153036
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x144]
mov dword [ebp - 0x9c], ecx
mov edx, dword [ebp - 0x48]
cmp dword [edx + 8], 0
je 0x1015304d
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax + 8]
mov dword [ebp - 0xc4], ecx
jmp 0x1015305c
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x140]
mov dword [ebp - 0xc4], eax
mov ecx, dword [ebp - 0x48]
cmp dword [ecx + 0xc], 0
je 0x10153073
mov edx, dword [ebp - 0x48]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0xc8], eax
jmp 0x10153082
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x13c]
mov dword [ebp - 0xc8], edx
mov eax, dword [ebp - 0xc8]
cmp eax, dword [ebp - 0x9c]
ja 0x101530cd
mov ecx, dword [ebp - 0x9c]
cmp ecx, dword [ebp - 0xc4]
ja 0x101530cd
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x9c]
mov dword [edx + 0x144], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc4]
mov dword [ecx + 0x140], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc8]
mov dword [eax + 0x13c], ecx
jmp 0x101530d4
mov dword [ebp - 0xc], 0x16
mov edx, dword [ebp - 8]
add edx, 0x264
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x101530ed
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
cmp dword [ebp + 0x14], 0x14
jae 0x10153106
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xd0]
and edx, 2
jne 0x1015312b
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xd0]
and ecx, 0x400000
je 0x1015316e
mov edx, dword [ebp - 8]
add edx, 0x264
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x210]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
je 0x1015315d
mov edx, dword [ebp - 4]
add edx, 0x57c
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 8]
add eax, 0x264
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x101531a8
mov ecx, dword [ebp - 0x3c]
cmp dword [ecx], 2
jbe 0x101531a1
push 1
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.10180640
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1015319f
mov dword [ebp - 0xc], 2
jmp 0x10155b51
jmp 0x101531a8
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x3c]
cmp dword [edx + 0xc], 0
jbe 0x101531dd
mov eax, dword [ebp - 0x3c]
cmp dword [eax + 0xc], 0x3e8
jae 0x101531c7
mov ecx, dword [ebp - 0x3c]
mov dword [ecx + 0xc], 0x3e8
mov edx, dword [ebp - 0x3c]
cmp dword [edx + 0xc], 0x36ee80
jbe 0x101531dd
mov eax, dword [ebp - 0x3c]
mov dword [eax + 0xc], 0x36ee80
cmp dword [ebp - 4], 0
je 0x10153235
mov ecx, dword [ebp - 0x3c]
movzx edx, word [ecx + 0x10]
test edx, edx
jle 0x101531ff
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x3c]
mov dx, word [ecx + 0x10]
mov word [eax + 0x486], dx
mov eax, dword [ebp - 0x3c]
cmp dword [eax + 0xc], 0
jbe 0x10153220
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx + 0xc]
push edx
call fcn.1017aa80
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x3bc], eax
mov edx, dword [ebp - 4]
add edx, 0x57c
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x101532cf
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xd0]
and ecx, 2
jne 0x10153269
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xd0]
and eax, 0x400000
jne 0x10153269
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xd0]
and edx, 1
je 0x101532c8
mov eax, dword [ebp - 0x3c]
cmp dword [eax], 0
jne 0x101532c8
mov ecx, dword [ebp - 8]
add ecx, 0x264
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp - 0x3c]
movzx eax, word [edx + 0x10]
test eax, eax
jle 0x10153295
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x3c]
mov ax, word [edx + 0x10]
mov word [ecx + 0x176], ax
mov ecx, dword [ebp - 0x3c]
cmp dword [ecx + 0xc], 0
jbe 0x101532b6
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + 0xc]
push eax
call fcn.1017aa80
add esp, 4
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x1e0], eax
mov edx, dword [ebp - 8]
add edx, 0x264
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x101532cf
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
cmp dword [ebp + 0x14], 8
jae 0x101532e8
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xa8], eax
mov ecx, dword [ebp - 8]
add ecx, 0x264
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp - 0xa8]
movzx eax, word [edx]
test eax, eax
je 0x10153321
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xa8]
mov ax, word [edx]
mov word [ecx + 0x17c], ax
mov ecx, dword [ebp - 0xa8]
movzx edx, word [ecx + 2]
test edx, edx
je 0x10153343
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xa8]
mov dx, word [ecx + 2]
mov word [eax + 0x17e], dx
mov eax, dword [ebp - 0xa8]
movzx ecx, word [eax + 4]
test ecx, ecx
je 0x10153365
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xa8]
mov cx, word [eax + 4]
mov word [edx + 0x174], cx
mov edx, dword [ebp - 0xa8]
movzx eax, word [edx + 6]
test eax, eax
je 0x10153386
mov ecx, dword [ebp - 0xa8]
movzx edx, word [ecx + 6]
mov eax, dword [ebp - 8]
mov dword [eax + 0x148], edx
mov ecx, dword [ebp - 8]
add ecx, 0x264
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10155b51
cmp dword [ebp + 0x14], 0x88
jae 0x101533b2
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x140], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xd0]
and ecx, 2
jne 0x101533d9
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xd0]
and eax, 0x400000
je 0x1015341d
mov ecx, dword [ebp - 8]
add ecx, 0x264
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x210]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1015340b
mov ecx, dword [ebp - 4]
add ecx, 0x57c
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp - 8]
add edx, 0x264
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10153465
mov eax, dword [ebp - 0x140]
cmp dword [eax + 0x80], 2
jbe 0x1015345e
push 1
mov ecx, dword [ebp - 0x140]
mov edx, dword [ecx + 0x80]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.10180640
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1015345c
mov dword [ebp - 0xc], 2
jmp 0x10155b51
jmp 0x10153465
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x140]
mov dword [ebp - 0x164], ecx
cmp dword [ebp - 4], 0
je 0x10153492
mov edx, dword [ebp - 0x164]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.1017ec30
add esp, 8
mov dword [ebp - 0xac], eax
jmp 0x101534e5
mov dword [ebp - 0xac], 0
mov ecx, 1
mov edx, dword [ebp - 8]
add edx, 0x2ac
lock xadd dword [edx], ecx
push 0
push 0
lea eax, [ebp - 0xac]
push eax
mov ecx, dword [ebp - 0x164]
push ecx
lea edx, [ebp - 8]
push edx
call fcn.10180020
add esp, 0x14
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x101534e5
or eax, 0xffffffff
mov ecx, dword [ebp - 8]
add ecx, 0x2ac
lock xadd dword [ecx], eax
cmp dword [ebp - 4], 0
je 0x101536eb
cmp dword [ebp - 0xac], 0
je 0x101536eb
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xac]
cmp eax, dword [edx + 0x224]
je 0x101536e9
mov ecx, dword [ebp - 0xac]
movzx edx, word [ecx + 0x1a4]
and edx, 0x200
jne 0x101536e2
mov eax, dword [ebp - 0xac]
push eax
push 0
mov ecx, dword [ebp - 4]
push ecx
call fcn.10186850
add esp, 0xc
test eax, eax
jne 0x101536d9
mov edx, dword [ebp - 4]
cmp dword [edx + 0x228], 0
je 0x101536d7
mov eax, dword [ebp - 0xac]
movzx ecx, word [eax + 0x1a4]
and ecx, 0x800
jne 0x101536d7
mov edx, dword [ebp - 0xac]
movzx eax, word [edx + 0x1a4]
and eax, 1
je 0x101536d7
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x228], 0
je 0x101536ca
or edx, 0xffffffff
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x228]
add ecx, 0x150
lock xadd dword [ecx], edx
cmp edx, 1
jne 0x101536ca
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x228]
cmp dword [eax + 0x70], 0
je 0x1015363a
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x228]
mov eax, dword [edx + 0x70]
cmp dword [eax + 0xc], 1
jg 0x101535ed
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x228]
mov eax, dword [edx + 0x70]
push eax
call fcn.10146900
add esp, 4
jmp 0x10153612
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x228]
mov eax, dword [edx + 0x70]
mov ecx, dword [eax + 0xc]
sub ecx, 1
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x228]
mov edx, dword [eax + 0x70]
mov dword [edx + 0xc], ecx
xor eax, eax
jne 0x101535ed
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x228]
mov dword [edx + 0x70], 0
xor eax, eax
jne 0x101535c4
xor ecx, ecx
jne 0x101535c4
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x228]
mov dword [eax + 0x70], 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x228]
movzx eax, byte [edx + 0x1b3]
test eax, eax
je 0x10153679
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x228]
mov eax, dword [edx + 0x90]
push eax
call fcn.1017e840
add esp, 4
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x228]
mov dword [edx + 0x90], 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x228]
mov byte [ecx + 0x1b3], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x228]
movzx ecx, word [eax + 0x1a4]
and ecx, 0xfffffffe
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x228]
mov word [eax + 0x1a4], cx
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x228]
push edx
call fcn.103201db
add esp, 4
or eax, 0xffffffff
mov ecx, 0x10405c74
lock xadd dword [ecx], eax
mov edx, dword [ebp - 4]
mov dword [edx + 0x228], 0
jmp 0x101536e0
mov dword [ebp - 0xc], 0x16
jmp 0x101536e9
mov dword [ebp - 0xc], 0x16
jmp 0x101536f2
mov dword [ebp - 0xc], 0x16
cmp dword [ebp - 4], 0
je 0x10153707
mov eax, dword [ebp - 4]
add eax, 0x57c
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10155b51
cmp dword [ebp + 0x14], 0x1c
jae 0x10153720
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x190], ecx
mov edx, dword [ebp - 0x148]
push edx
mov eax, dword [ebp - 0x190]
push eax
call fcn.101752b0
add esp, 8
mov dword [ebp - 0xc], eax
jmp 0x10155b51
cmp dword [ebp + 0x14], 0x88
jae 0x1015375e
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x144], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xd0]
and eax, 2
jne 0x10153786
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xd0]
and edx, 0x400000
je 0x101537c8
mov eax, dword [ebp - 8]
add eax, 0x264
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x210]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x101537b6
mov eax, dword [ebp - 4]
add eax, 0x57c
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 8]
add ecx, 0x264
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10153810
mov edx, dword [ebp - 0x144]
cmp dword [edx + 0x80], 2
jbe 0x10153809
push 1
mov eax, dword [ebp - 0x144]
mov ecx, dword [eax + 0x80]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.10180640
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10153807
mov dword [ebp - 0xc], 2
jmp 0x10155b51
jmp 0x10153810
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x1015398e
mov eax, dword [ebp - 0x144]
mov dword [ebp - 0x170], eax
push 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x2b8]
push edx
mov eax, dword [ebp - 0x170]
push eax
call fcn.10173040
add esp, 0xc
mov dword [ebp - 0x168], eax
cmp dword [ebp - 0x168], 0
jne 0x1015385c
mov dword [ebp - 0xc], 0x16
jmp 0x1015397c
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xd0]
and edx, 4
jne 0x1015394a
mov dword [ebp - 0x16c], 0
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xbc]
mov dword [ebp - 0xcc], ecx
jmp 0x10153897
mov edx, dword [ebp - 0xcc]
mov eax, dword [edx]
mov dword [ebp - 0xcc], eax
cmp dword [ebp - 0xcc], 0
je 0x10153938
mov ecx, dword [ebp - 0xcc]
cmp dword [ecx + 8], 0
jne 0x101538dd
mov edx, dword [0x10406108]
and edx, 0x10
je 0x101538d7
cmp dword [0x1040613c], 0
je 0x101538d7
push str.sctp_setopt
push 0x103f2d44
call dword [0x1040613c]
add esp, 8
xor eax, eax
jne 0x101538b0
jmp 0x10153889
mov ecx, dword [ebp - 0xcc]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.1015b850
add esp, 8
test eax, eax
je 0x10153916
mov ecx, dword [ebp - 0xcc]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.1019e020
add esp, 8
test eax, eax
jne 0x10153916
jmp 0x10153889
mov ecx, dword [ebp - 0xcc]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0x168]
jne 0x10153933
mov dword [ebp - 0x16c], 1
jmp 0x10153938
jmp 0x10153889
cmp dword [ebp - 0x16c], 0
jne 0x1015394a
mov dword [ebp - 0xc], 0x16
jmp 0x1015397c
mov eax, dword [ebp - 0x170]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.1019d670
add esp, 8
test eax, eax
je 0x10153968
mov dword [ebp - 0xc], 0x16
push 1
push 0x11
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.10160dd0
add esp, 0x10
mov ecx, dword [ebp - 4]
add ecx, 0x57c
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10153995
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
cmp dword [ebp + 0x14], 0x10
jae 0x101539ae
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x194], edx
mov dword [ebp - 0xc], 0x66
jmp 0x10155b51
cmp dword [ebp + 0x14], 0x10
jae 0x10153a02
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x198], eax
mov dword [ebp - 0xc], 0x66
jmp 0x10155b51
cmp dword [ebp + 0x14], 8
jae 0x10153a4e
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x60], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xd0]
and ecx, 2
jne 0x10153a72
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xd0]
and eax, 0x400000
je 0x10153ab6
mov ecx, dword [ebp - 8]
add ecx, 0x264
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x210]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10153aa4
mov ecx, dword [ebp - 4]
add ecx, 0x57c
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp - 8]
add edx, 0x264
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10153af0
mov eax, dword [ebp - 0x60]
cmp dword [eax], 2
jbe 0x10153ae9
push 1
mov ecx, dword [ebp - 0x60]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.10180640
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10153ae7
mov dword [ebp - 0xc], 2
jmp 0x10155b51
jmp 0x10153af0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x60]
movzx edx, word [ecx + 4]
mov dword [ebp - 0x118], edx
mov eax, dword [ebp - 0x118]
sub eax, 1
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0xd
ja case.default.0x10153b1f
mov ecx, dword [ebp - 0x118]
jmp dword [ecx*4 + 0x10155c70]
mov dword [ebp - 0x20], 0x800
jmp 0x10153bbf
mov dword [ebp - 0x20], 0x1000
jmp 0x10153bbf
mov dword [ebp - 0x20], 0x2000
jmp 0x10153bbf
mov dword [ebp - 0x20], 0x4000
jmp 0x10153bbf
mov dword [ebp - 0x20], 0x8000
jmp 0x10153bbf
mov dword [ebp - 0x20], 0x10000
jmp 0x10153bbf
mov dword [ebp - 0x20], 0x20000
jmp 0x10153bbf
mov dword [ebp - 0x20], 0x40000
jmp 0x10153bbf
mov dword [ebp - 0x20], 0x80000
jmp 0x10153bbf
mov dword [ebp - 0x20], 0x4000000
jmp 0x10153bbf
mov dword [ebp - 0x20], 0
mov dword [ebp - 0xc], 0x81
jmp 0x10153bbf
mov dword [ebp - 0x20], 0x20000000
jmp 0x10153bbf
mov dword [ebp - 0x20], 0x40000000
jmp 0x10153bbf
mov dword [ebp - 0x20], getsockname
jmp 0x10153bbf
mov dword [ebp - 0x20], 0
mov dword [ebp - 0xc], 0x16
cmp dword [ebp - 0x20], 0
jbe 0x10153f14
cmp dword [ebp - 4], 0
je 0x10153ce6
mov edx, dword [ebp - 0x60]
movzx eax, byte [edx + 6]
test eax, eax
je 0x10153c79
cmp dword [ebp - 4], 0
je 0x10153c0d
mov ecx, dword [ebp - 0x20]
xor edx, edx
mov eax, dword [ebp - 4]
or ecx, dword [eax + 0x4e8]
or edx, dword [eax + 0x4ec]
mov eax, dword [ebp - 4]
mov dword [eax + 0x4e8], ecx
mov dword [eax + 0x4ec], edx
jmp 0x10153c36
cmp dword [ebp - 8], 0
je 0x10153c36
mov ecx, dword [ebp - 0x20]
xor edx, edx
mov eax, dword [ebp - 8]
or ecx, dword [eax + 0xc8]
or edx, dword [eax + 0xcc]
mov eax, dword [ebp - 8]
mov dword [eax + 0xc8], ecx
mov dword [eax + 0xcc], edx
cmp dword [ebp - 0x20], 0x4000000
jne 0x10153c77
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x1ec], 0
jne 0x10153c77
mov edx, dword [ebp - 4]
cmp dword [edx + 0x1e4], 0
jne 0x10153c77
mov eax, dword [ebp - 4]
cmp dword [eax + 0x370], 0
jne 0x10153c77
push 1
push 0
push 0
mov ecx, dword [ebp - 4]
push ecx
push 0x1a
call fcn.10177210
add esp, 0x14
jmp 0x10153cd1
cmp dword [ebp - 4], 0
je 0x10153ca6
mov edx, dword [ebp - 0x20]
not edx
xor eax, eax
mov ecx, dword [ebp - 4]
and edx, dword [ecx + 0x4e8]
and eax, dword [ecx + 0x4ec]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x4e8], edx
mov dword [ecx + 0x4ec], eax
jmp 0x10153cd1
cmp dword [ebp - 8], 0
je 0x10153cd1
mov edx, dword [ebp - 0x20]
not edx
xor eax, eax
mov ecx, dword [ebp - 8]
and edx, dword [ecx + 0xc8]
and eax, dword [ecx + 0xcc]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0xc8], edx
mov dword [ecx + 0xcc], eax
mov edx, dword [ebp - 4]
add edx, 0x57c
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10153f12
cmp dword [ebp - 0x20], 0x4000000
jne 0x10153d19
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xd0]
and ecx, 1
je 0x10153d19
mov edx, dword [ebp - 0x60]
cmp dword [edx], 2
je 0x10153d0d
mov eax, dword [ebp - 0x60]
cmp dword [eax], 1
jne 0x10153d19
mov dword [ebp - 0xc], 0x81
jmp 0x10155b51
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xd0]
and edx, 2
jne 0x10153d5a
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xd0]
and ecx, 0x400000
jne 0x10153d5a
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xd0]
and eax, 1
je 0x10153dcd
mov ecx, dword [ebp - 0x60]
cmp dword [ecx], 0
je 0x10153d5a
mov edx, dword [ebp - 0x60]
cmp dword [edx], 2
jne 0x10153dcd
mov eax, dword [ebp - 8]
add eax, 0x264
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 0x60]
movzx edx, byte [ecx + 6]
test edx, edx
je 0x10153d99
mov eax, dword [ebp - 0x20]
xor ecx, ecx
mov edx, dword [ebp - 8]
or eax, dword [edx + 0xc8]
or ecx, dword [edx + 0xcc]
mov edx, dword [ebp - 8]
mov dword [edx + 0xc8], eax
mov dword [edx + 0xcc], ecx
jmp 0x10153dbe
mov eax, dword [ebp - 0x20]
not eax
xor ecx, ecx
mov edx, dword [ebp - 8]
and eax, dword [edx + 0xc8]
and ecx, dword [edx + 0xcc]
mov edx, dword [ebp - 8]
mov dword [edx + 0xc8], eax
mov dword [edx + 0xcc], ecx
mov eax, dword [ebp - 8]
add eax, 0x264
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xd0]
and edx, 1
je 0x10153f12
mov eax, dword [ebp - 0x60]
cmp dword [eax], 1
je 0x10153df3
mov ecx, dword [ebp - 0x60]
cmp dword [ecx], 2
jne 0x10153f12
mov edx, dword [ebp - 8]
add edx, 0x264
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x210]
mov dword [ebp - 4], ecx
jmp 0x10153e1a
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10153f02
mov ecx, dword [ebp - 4]
add ecx, 0x57c
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp - 0x60]
movzx eax, byte [edx + 6]
test eax, eax
je 0x10153e95
cmp dword [ebp - 4], 0
je 0x10153e6a
mov ecx, dword [ebp - 0x20]
xor edx, edx
mov eax, dword [ebp - 4]
or ecx, dword [eax + 0x4e8]
or edx, dword [eax + 0x4ec]
mov eax, dword [ebp - 4]
mov dword [eax + 0x4e8], ecx
mov dword [eax + 0x4ec], edx
jmp 0x10153e93
cmp dword [ebp - 8], 0
je 0x10153e93
mov ecx, dword [ebp - 0x20]
xor edx, edx
mov eax, dword [ebp - 8]
or ecx, dword [eax + 0xc8]
or edx, dword [eax + 0xcc]
mov eax, dword [ebp - 8]
mov dword [eax + 0xc8], ecx
mov dword [eax + 0xcc], edx
jmp 0x10153eed
cmp dword [ebp - 4], 0
je 0x10153ec2
mov ecx, dword [ebp - 0x20]
not ecx
xor edx, edx
mov eax, dword [ebp - 4]
and ecx, dword [eax + 0x4e8]
and edx, dword [eax + 0x4ec]
mov eax, dword [ebp - 4]
mov dword [eax + 0x4e8], ecx
mov dword [eax + 0x4ec], edx
jmp 0x10153eed
cmp dword [ebp - 8], 0
je 0x10153eed
mov ecx, dword [ebp - 0x20]
not ecx
xor edx, edx
mov eax, dword [ebp - 8]
and ecx, dword [eax + 0xc8]
and edx, dword [eax + 0xcc]
mov eax, dword [ebp - 8]
mov dword [eax + 0xc8], ecx
mov dword [eax + 0xcc], edx
mov ecx, dword [ebp - 4]
add ecx, 0x57c
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10153e11
mov edx, dword [ebp - 8]
add edx, 0x264
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10153f29
cmp dword [ebp - 4], 0
je 0x10153f29
mov eax, dword [ebp - 4]
add eax, 0x57c
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10155b51
cmp dword [ebp + 0x14], 4
jae 0x10153f42
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x19c], ecx
mov edx, dword [ebp - 8]
add edx, 0x264
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x19c]
cmp dword [eax], 0
je 0x10153f8c
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc8]
or edx, 0x8000000
mov eax, dword [ecx + 0xcc]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0xc8], edx
mov dword [ecx + 0xcc], eax
jmp 0x10153faf
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc8]
and eax, 0xf7ffffff
mov ecx, dword [edx + 0xcc]
mov edx, dword [ebp - 8]
mov dword [edx + 0xc8], eax
mov dword [edx + 0xcc], ecx
mov eax, dword [ebp - 8]
add eax, 0x264
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10155b51
cmp dword [ebp + 0x14], 4
jae 0x10153fd7
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x1a0], ecx
mov edx, dword [ebp - 8]
add edx, 0x264
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x1a0]
cmp dword [eax], 0
je 0x10154021
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc8]
or edx, 0x10000000
mov eax, dword [ecx + 0xcc]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0xc8], edx
mov dword [ecx + 0xcc], eax
jmp 0x10154044
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc8]
and eax, 0xefffffff
mov ecx, dword [edx + 0xcc]
mov edx, dword [ebp - 8]
mov dword [edx + 0xc8], eax
mov dword [edx + 0xcc], ecx
mov eax, dword [ebp - 8]
add eax, 0x264
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10155b51
cmp dword [ebp + 0x14], 0x10
jae 0x1015406c
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xd0]
and eax, 2
jne 0x10154091
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xd0]
and edx, 0x400000
je 0x101540d3
mov eax, dword [ebp - 8]
add eax, 0x264
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x210]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x101540c1
mov eax, dword [ebp - 4]
add eax, 0x57c
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 8]
add ecx, 0x264
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1015410f
mov edx, dword [ebp - 0x2c]
cmp dword [edx + 0xc], 2
jbe 0x10154108
push 1
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.10180640
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10154106
mov dword [ebp - 0xc], 2
jmp 0x10155b51
jmp 0x1015410f
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x101541a0
mov eax, dword [ebp - 0x2c]
movzx ecx, word [eax]
mov edx, dword [ebp - 4]
movzx eax, word [edx + 0x47e]
cmp ecx, eax
jge 0x10154184
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x2c]
mov ax, word [edx]
mov word [ecx + 0x5c], ax
mov ecx, dword [ebp - 4]
movzx edx, word [ecx + 0x60]
and edx, 0xf
mov word [ebp - 0x64], dx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x2c]
mov dx, word [ecx + 2]
mov word [eax + 0x60], dx
movzx eax, word [ebp - 0x64]
mov ecx, dword [ebp - 4]
movzx edx, word [ecx + 0x60]
or edx, eax
mov eax, dword [ebp - 4]
mov word [eax + 0x60], dx
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 4]
mov dword [ecx + 0x64], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 8]
mov dword [ecx + 0x68], eax
jmp 0x1015418b
mov dword [ebp - 0xc], 0x16
mov ecx, dword [ebp - 4]
add ecx, 0x57c
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10154366
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xd0]
and eax, 2
jne 0x101541e7
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xd0]
and edx, 0x400000
jne 0x101541e7
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xd0]
and ecx, 1
je 0x10154271
mov edx, dword [ebp - 0x2c]
cmp dword [edx + 0xc], 0
je 0x101541e7
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0xc], 2
jne 0x10154271
mov ecx, dword [ebp - 8]
add ecx, 0x264
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x2c]
mov cx, word [eax]
mov word [edx + 0x234], cx
mov edx, dword [ebp - 8]
movzx eax, word [edx + 0x238]
and eax, 0xf
mov word [ebp - 0x64], ax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x2c]
mov ax, word [edx + 2]
mov word [ecx + 0x238], ax
movzx ecx, word [ebp - 0x64]
mov edx, dword [ebp - 8]
movzx eax, word [edx + 0x238]
or eax, ecx
mov ecx, dword [ebp - 8]
mov word [ecx + 0x238], ax
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 4]
mov dword [edx + 0x23c], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 8]
mov dword [edx + 0x240], ecx
mov edx, dword [ebp - 8]
add edx, 0x264
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xd0]
and ecx, 1
je 0x10154366
mov edx, dword [ebp - 0x2c]
cmp dword [edx + 0xc], 1
je 0x10154299
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0xc], 2
jne 0x10154366
mov ecx, dword [ebp - 8]
add ecx, 0x264
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x210]
mov dword [ebp - 4], eax
jmp 0x101542c0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x10154357
mov eax, dword [ebp - 4]
add eax, 0x57c
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 0x2c]
movzx edx, word [ecx]
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 0x47e]
cmp edx, ecx
jge 0x10154342
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x2c]
mov cx, word [eax]
mov word [edx + 0x5c], cx
mov edx, dword [ebp - 4]
movzx eax, word [edx + 0x60]
and eax, 0xf
mov word [ebp - 0x64], ax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x2c]
mov ax, word [edx + 2]
mov word [ecx + 0x60], ax
movzx ecx, word [ebp - 0x64]
mov edx, dword [ebp - 4]
movzx eax, word [edx + 0x60]
or eax, ecx
mov ecx, dword [ebp - 4]
mov word [ecx + 0x60], ax
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 4]
mov dword [edx + 0x64], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 8]
mov dword [edx + 0x68], ecx
mov edx, dword [ebp - 4]
add edx, 0x57c
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x101542b7
mov eax, dword [ebp - 8]
add eax, 0x264
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10155b51
cmp dword [ebp + 0x14], 0xc
jae 0x1015437f
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xd0]
and eax, 2
jne 0x101543a4
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xd0]
and edx, 0x400000
je 0x101543e6
mov eax, dword [ebp - 8]
add eax, 0x264
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x210]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x101543d4
mov eax, dword [ebp - 4]
add eax, 0x57c
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 8]
add ecx, 0x264
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10154422
mov edx, dword [ebp - 0x58]
cmp dword [edx + 8], 2
jbe 0x1015441b
push 1
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.10180640
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10154419
mov dword [ebp - 0xc], 2
jmp 0x10155b51
jmp 0x10154422
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x58]
movzx ecx, word [eax]
cmp ecx, 3
jle 0x1015444f
cmp dword [ebp - 4], 0
je 0x10154443
mov edx, dword [ebp - 4]
add edx, 0x57c
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
cmp dword [ebp - 4], 0
je 0x101544a0
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 0x60]
and ecx, 0xfff0
mov edx, dword [ebp - 4]
mov word [edx + 0x60], cx
mov eax, dword [ebp - 0x58]
movzx ecx, word [eax]
mov edx, dword [ebp - 4]
movzx eax, word [edx + 0x60]
or eax, ecx
mov ecx, dword [ebp - 4]
mov word [ecx + 0x60], ax
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax + 4]
mov dword [edx + 0x6c], ecx
mov edx, dword [ebp - 4]
add edx, 0x57c
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x101545fe
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xd0]
and ecx, 2
jne 0x101544de
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xd0]
and eax, 0x400000
jne 0x101544de
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xd0]
and edx, 1
je 0x10154543
mov eax, dword [ebp - 0x58]
cmp dword [eax + 8], 0
je 0x101544de
mov ecx, dword [ebp - 0x58]
cmp dword [ecx + 8], 2
jne 0x10154543
mov edx, dword [ebp - 8]
add edx, 0x264
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 8]
movzx ecx, word [eax + 0x238]
and ecx, 0xfff0
mov edx, dword [ebp - 8]
mov word [edx + 0x238], cx
mov eax, dword [ebp - 0x58]
movzx ecx, word [eax]
mov edx, dword [ebp - 8]
movzx eax, word [edx + 0x238]
or eax, ecx
mov ecx, dword [ebp - 8]
mov word [ecx + 0x238], ax
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax + 4]
mov dword [edx + 0x244], ecx
mov edx, dword [ebp - 8]
add edx, 0x264
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xd0]
and ecx, 1
je 0x101545fe
mov edx, dword [ebp - 0x58]
cmp dword [edx + 8], 1
je 0x1015456b
mov eax, dword [ebp - 0x58]
cmp dword [eax + 8], 2
jne 0x101545fe
mov ecx, dword [ebp - 8]
add ecx, 0x264
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x210]
mov dword [ebp - 4], eax
jmp 0x10154592
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x101545ee
mov eax, dword [ebp - 4]
add eax, 0x57c
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 4]
movzx edx, word [ecx + 0x60]
and edx, 0xfff0
mov eax, dword [ebp - 4]
mov word [eax + 0x60], dx
mov ecx, dword [ebp - 0x58]
movzx edx, word [ecx]
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 0x60]
or ecx, edx
mov edx, dword [ebp - 4]
mov word [edx + 0x60], cx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x58]
mov edx, dword [ecx + 4]
mov dword [eax + 0x6c], edx
mov eax, dword [ebp - 4]
add eax, 0x57c
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10154589
mov ecx, dword [ebp - 8]
add ecx, 0x264
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10155b51
cmp dword [ebp + 0x14], 0x90
jae 0x1015461a
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xd0]
and ecx, 2
jne 0x1015463e
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xd0]
and eax, 0x400000
je 0x10154682
mov ecx, dword [ebp - 8]
add ecx, 0x264
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x210]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10154670
mov ecx, dword [ebp - 4]
add ecx, 0x57c
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp - 8]
add edx, 0x264
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x101546c4
mov eax, dword [ebp - 0x54]
cmp dword [eax + 0x80], 2
jbe 0x101546bd
push 1
mov ecx, dword [ebp - 0x54]
mov edx, dword [ecx + 0x80]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.10180640
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x101546bb
mov dword [ebp - 0xc], 2
jmp 0x10155b51
jmp 0x101546c4
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x11c], ecx
cmp dword [ebp - 4], 0
je 0x101546eb
mov edx, dword [ebp - 0x11c]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.1017ec30
add esp, 8
mov dword [ebp - 0x18], eax
jmp 0x10154738
mov dword [ebp - 0x18], 0
mov ecx, 1
mov edx, dword [ebp - 8]
add edx, 0x2ac
lock xadd dword [edx], ecx
push 0
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x11c]
push ecx
lea edx, [ebp - 8]
push edx
call fcn.10180020
add esp, 0x14
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10154738
or eax, 0xffffffff
mov ecx, dword [ebp - 8]
add ecx, 0x2ac
lock xadd dword [ecx], eax
cmp dword [ebp - 4], 0
je 0x101547a3
cmp dword [ebp - 0x18], 0
jne 0x101547a3
mov edx, dword [ebp - 0x11c]
movzx eax, word [edx]
cmp eax, 0x7b
jne 0x10154787
mov ecx, dword [ebp - 0x11c]
mov dword [ebp - 0x1a4], ecx
mov edx, dword [ebp - 0x1a4]
cmp dword [edx + 4], 0
je 0x10154785
mov eax, dword [ebp - 4]
add eax, 0x57c
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
jmp 0x101547a3
mov dword [ebp - 0xc], 0x66
mov ecx, dword [ebp - 4]
add ecx, 0x57c
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10155b51
mov edx, dword [ebp - 0x54]
movzx eax, word [edx + 0x88]
cmp eax, 0xffff
je 0x101547d6
cmp dword [ebp - 4], 0
je 0x101547ca
mov ecx, dword [ebp - 4]
add ecx, 0x57c
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
cmp dword [ebp - 4], 0
je 0x10154bbc
cmp dword [ebp - 0x18], 0
je 0x101549a4
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x54]
mov cx, word [eax + 0x84]
mov word [edx + 0x1a6], cx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x54]
mov cx, word [eax + 0x86]
mov word [edx + 0x1a8], cx
mov edx, dword [ebp - 0x18]
movzx eax, word [edx + 0x1a4]
and eax, 0x800
je 0x10154872
mov ecx, dword [ebp - 0x18]
movzx edx, word [ecx + 0x1aa]
mov eax, dword [ebp - 0x18]
movzx ecx, word [eax + 0x1a6]
cmp edx, ecx
jg 0x10154853
mov edx, dword [ebp - 0x18]
movzx eax, word [edx + 0x1aa]
mov ecx, dword [ebp - 0x18]
movzx edx, word [ecx + 0x1a8]
cmp eax, edx
jg 0x1015486d
mov eax, dword [ebp - 0x18]
movzx ecx, word [eax + 0x1a4]
and ecx, 0xfffff7ff
mov edx, dword [ebp - 0x18]
mov word [edx + 0x1a4], cx
jmp 0x10154904
mov eax, dword [ebp - 0x18]
movzx ecx, word [eax + 0x1aa]
mov edx, dword [ebp - 0x18]
movzx eax, word [edx + 0x1a8]
cmp ecx, eax
jle 0x10154904
mov ecx, dword [ebp - 0x18]
movzx edx, word [ecx + 0x1aa]
mov eax, dword [ebp - 0x18]
movzx ecx, word [eax + 0x1a6]
cmp edx, ecx
jg 0x10154904
mov edx, dword [ebp - 0x18]
movzx eax, word [edx + 0x1a4]
or eax, 0x800
mov ecx, dword [ebp - 0x18]
mov word [ecx + 0x1a4], ax
push 1
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.101632f0
add esp, 0xc
push 0x50000011
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
push 5
call fcn.10174d10
add esp, 0x14
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
push 5
call fcn.101743e0
add esp, 0x10
mov eax, dword [ebp - 0x18]
movzx ecx, word [eax + 0x1a4]
and ecx, 1
je 0x1015495a
mov edx, dword [ebp - 0x18]
movzx eax, word [edx + 0x1aa]
mov ecx, dword [ebp - 0x18]
movzx edx, word [ecx + 0x1a6]
cmp eax, edx
jle 0x10154958
mov eax, dword [ebp - 0x18]
movzx ecx, word [eax + 0x1a4]
and ecx, 0xfffffffe
mov edx, dword [ebp - 0x18]
mov word [edx + 0x1a4], cx
push 1
mov eax, dword [ebp - 0x18]
push eax
push 0
mov ecx, dword [ebp - 4]
push ecx
push 3
call fcn.10177210
add esp, 0x14
jmp 0x1015499f
mov edx, dword [ebp - 0x18]
movzx eax, word [edx + 0x1aa]
mov ecx, dword [ebp - 0x18]
movzx edx, word [ecx + 0x1a6]
cmp eax, edx
jg 0x1015499f
mov eax, dword [ebp - 0x18]
movzx ecx, word [eax + 0x1a4]
or ecx, 1
mov edx, dword [ebp - 0x18]
mov word [edx + 0x1a4], cx
push 1
mov eax, dword [ebp - 0x18]
push eax
push 0
mov ecx, dword [ebp - 4]
push ecx
push 4
call fcn.10177210
add esp, 0x14
jmp 0x10154ba8
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x1c4]
mov dword [ebp - 0x18], eax
jmp 0x101549ba
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x18], 0
je 0x10154b80
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x54]
mov dx, word [ecx + 0x84]
mov word [eax + 0x1a6], dx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x54]
mov dx, word [ecx + 0x86]
mov word [eax + 0x1a8], dx
mov eax, dword [ebp - 0x18]
movzx ecx, word [eax + 0x1a4]
and ecx, 0x800
je 0x10154a4d
mov edx, dword [ebp - 0x18]
movzx eax, word [edx + 0x1aa]
mov ecx, dword [ebp - 0x18]
movzx edx, word [ecx + 0x1a6]
cmp eax, edx
jg 0x10154a2e
mov eax, dword [ebp - 0x18]
movzx ecx, word [eax + 0x1aa]
mov edx, dword [ebp - 0x18]
movzx eax, word [edx + 0x1a8]
cmp ecx, eax
jg 0x10154a48
mov ecx, dword [ebp - 0x18]
movzx edx, word [ecx + 0x1a4]
and edx, 0xfffff7ff
mov eax, dword [ebp - 0x18]
mov word [eax + 0x1a4], dx
jmp 0x10154ae0
mov ecx, dword [ebp - 0x18]
movzx edx, word [ecx + 0x1aa]
mov eax, dword [ebp - 0x18]
movzx ecx, word [eax + 0x1a8]
cmp edx, ecx
jle 0x10154ae0
mov edx, dword [ebp - 0x18]
movzx eax, word [edx + 0x1aa]
mov ecx, dword [ebp - 0x18]
movzx edx, word [ecx + 0x1a6]
cmp eax, edx
jg 0x10154ae0
mov eax, dword [ebp - 0x18]
movzx ecx, word [eax + 0x1a4]
or ecx, 0x800
mov edx, dword [ebp - 0x18]
mov word [edx + 0x1a4], cx
push 1
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.101632f0
add esp, 0xc
push 0x50000012
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
push 5
call fcn.10174d10
add esp, 0x14
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
push 5
call fcn.101743e0
add esp, 0x10
mov ecx, dword [ebp - 0x18]
movzx edx, word [ecx + 0x1a4]
and edx, 1
je 0x10154b36
mov eax, dword [ebp - 0x18]
movzx ecx, word [eax + 0x1aa]
mov edx, dword [ebp - 0x18]
movzx eax, word [edx + 0x1a6]
cmp ecx, eax
jle 0x10154b34
mov ecx, dword [ebp - 0x18]
movzx edx, word [ecx + 0x1a4]
and edx, 0xfffffffe
mov eax, dword [ebp - 0x18]
mov word [eax + 0x1a4], dx
push 1
mov ecx, dword [ebp - 0x18]
push ecx
push 0
mov edx, dword [ebp - 4]
push edx
push 3
call fcn.10177210
add esp, 0x14
jmp 0x10154b7b
mov eax, dword [ebp - 0x18]
movzx ecx, word [eax + 0x1aa]
mov edx, dword [ebp - 0x18]
movzx eax, word [edx + 0x1a6]
cmp ecx, eax
jg 0x10154b7b
mov ecx, dword [ebp - 0x18]
movzx edx, word [ecx + 0x1a4]
or edx, 1
mov eax, dword [ebp - 0x18]
mov word [eax + 0x1a4], dx
push 1
mov ecx, dword [ebp - 0x18]
push ecx
push 0
mov edx, dword [ebp - 4]
push edx
push 4
call fcn.10177210
add esp, 0x14
jmp 0x101549b2
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x54]
mov dx, word [ecx + 0x84]
mov word [eax + 0x488], dx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x54]
mov dx, word [ecx + 0x86]
mov word [eax + 0x48a], dx
mov eax, dword [ebp - 4]
add eax, 0x57c
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10154c45
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xd0]
and edx, 2
jne 0x10154bf5
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xd0]
and ecx, 0x400000
jne 0x10154bf5
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xd0]
and eax, 1
je 0x10154c3e
mov ecx, dword [ebp - 0x54]
cmp dword [ecx + 0x80], 0
jne 0x10154c3e
mov edx, dword [ebp - 8]
add edx, 0x264
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x54]
mov dx, word [ecx + 0x84]
mov word [eax + 0x178], dx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x54]
mov dx, word [ecx + 0x86]
mov word [eax + 0x17a], dx
mov eax, dword [ebp - 8]
add eax, 0x264
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10154c45
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
cmp dword [ebp + 0x14], 0x88
jae 0x10154c61
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0xb8], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xd0]
and eax, 2
jne 0x10154c89
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xd0]
and edx, 0x400000
je 0x10154ccb
mov eax, dword [ebp - 8]
add eax, 0x264
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x210]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x10154cb9
mov eax, dword [ebp - 4]
add eax, 0x57c
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 8]
add ecx, 0x264
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10154d13
mov edx, dword [ebp - 0xb8]
cmp dword [edx + 0x80], 2
jbe 0x10154d0c
push 1
mov eax, dword [ebp - 0xb8]
mov ecx, dword [eax + 0x80]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.10180640
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10154d0a
mov dword [ebp - 0xc], 2
jmp 0x10155b51
jmp 0x10154d13
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 4], 0
je 0x10154d40
mov ecx, dword [ebp - 0x10c]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.1017ec30
add esp, 8
mov dword [ebp - 0xec], eax
jmp 0x10154d92
mov dword [ebp - 0xec], 0
mov eax, 1
mov ecx, dword [ebp - 8]
add ecx, 0x2ac
lock xadd dword [ecx], eax
push 0
push 0
lea edx, [ebp - 0xec]
push edx
mov eax, dword [ebp - 0x10c]
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.10180020
add esp, 0x14
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10154d92
or edx, 0xffffffff
mov eax, dword [ebp - 8]
add eax, 0x2ac
lock xadd dword [eax], edx
cmp dword [ebp - 4], 0
je 0x10154e00
cmp dword [ebp - 0xec], 0
jne 0x10154e00
mov ecx, dword [ebp - 0x10c]
movzx edx, word [ecx]
cmp edx, 0x7b
jne 0x10154de5
mov eax, dword [ebp - 0x10c]
mov dword [ebp - 0x1a8], eax
mov ecx, dword [ebp - 0x1a8]
cmp dword [ecx + 4], 0
je 0x10154de3
mov edx, dword [ebp - 4]
add edx, 0x57c
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
jmp 0x10154e00
mov dword [ebp - 0xc], 0x66
mov eax, dword [ebp - 4]
add eax, 0x57c
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10155b51
cmp dword [ebp - 4], 0
je 0x10154e54
cmp dword [ebp - 0xec], 0
je 0x10154e2b
mov ecx, dword [ebp - 0xec]
mov edx, dword [ebp - 0xb8]
mov ax, word [edx + 0x84]
mov word [ecx + 0x1ac], ax
jmp 0x10154e42
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xb8]
mov ax, word [edx + 0x84]
mov word [ecx + 0x4f4], ax
mov ecx, dword [ebp - 4]
add ecx, 0x57c
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10154ecf
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xd0]
and eax, 2
jne 0x10154e90
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xd0]
and edx, 0x400000
jne 0x10154e90
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xd0]
and ecx, 1
je 0x10154ec8
mov edx, dword [ebp - 0xb8]
cmp dword [edx + 0x80], 0
jne 0x10154ec8
mov eax, dword [ebp - 8]
add eax, 0x264
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xb8]
mov ax, word [edx + 0x84]
mov word [ecx + 0x204], ax
mov ecx, dword [ebp - 8]
add ecx, 0x264
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10154ecf
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
cmp dword [ebp + 0x14], 8
jae 0x10154ee8
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x120], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xd0]
and ecx, 2
jne 0x10154f0f
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xd0]
and eax, 0x400000
je 0x10154f53
mov ecx, dword [ebp - 8]
add ecx, 0x264
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x210]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10154f41
mov ecx, dword [ebp - 4]
add ecx, 0x57c
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp - 8]
add edx, 0x264
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10154f93
mov eax, dword [ebp - 0x120]
cmp dword [eax], 2
jbe 0x10154f8c
push 1
mov ecx, dword [ebp - 0x120]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.10180640
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10154f8a
mov dword [ebp - 0xc], 2
jmp 0x10155b51
jmp 0x10154f93
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x10154fb5
mov dword [ebp - 0xc], 0x16
mov ecx, dword [ebp - 4]
add ecx, 0x57c
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10155037
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xd0]
and eax, 2
jne 0x10154fed
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xd0]
and edx, 0x400000
jne 0x10154fed
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xd0]
and ecx, 1
je 0x10155030
mov edx, dword [ebp - 0x120]
cmp dword [edx], 0
jne 0x10155030
mov eax, dword [ebp - 8]
add eax, 0x264
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 0x120]
cmp dword [ecx + 4], 0
jne 0x10155014
mov edx, dword [ebp - 8]
mov byte [edx + 0x22c], 0
jmp 0x1015501e
mov eax, dword [ebp - 8]
mov byte [eax + 0x22c], 1
mov ecx, dword [ebp - 8]
add ecx, 0x264
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10155037
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
cmp dword [ebp + 0x14], 8
jae 0x10155050
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x124], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xd0]
and ecx, 2
jne 0x10155077
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xd0]
and eax, 0x400000
je 0x101550bb
mov ecx, dword [ebp - 8]
add ecx, 0x264
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x210]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x101550a9
mov ecx, dword [ebp - 4]
add ecx, 0x57c
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp - 8]
add edx, 0x264
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x101550fb
mov eax, dword [ebp - 0x124]
cmp dword [eax], 2
jbe 0x101550f4
push 1
mov ecx, dword [ebp - 0x124]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.10180640
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x101550f2
mov dword [ebp - 0xc], 2
jmp 0x10155b51
jmp 0x101550fb
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x1015511d
mov dword [ebp - 0xc], 0x16
mov ecx, dword [ebp - 4]
add ecx, 0x57c
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1015519f
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xd0]
and eax, 2
jne 0x10155155
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xd0]
and edx, 0x400000
jne 0x10155155
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xd0]
and ecx, 1
je 0x10155198
mov edx, dword [ebp - 0x124]
cmp dword [edx], 0
jne 0x10155198
mov eax, dword [ebp - 8]
add eax, 0x264
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 0x124]
cmp dword [ecx + 4], 0
jne 0x1015517c
mov edx, dword [ebp - 8]
mov byte [edx + 0x22d], 0
jmp 0x10155186
mov eax, dword [ebp - 8]
mov byte [eax + 0x22d], 1
mov ecx, dword [ebp - 8]
add ecx, 0x264
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1015519f
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
cmp dword [ebp + 0x14], 8
jae 0x101551b8
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0xf0], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xd0]
and ecx, 2
jne 0x101551df
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xd0]
and eax, 0x400000
je 0x10155223
mov ecx, dword [ebp - 8]
add ecx, 0x264
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x210]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10155211
mov ecx, dword [ebp - 4]
add ecx, 0x57c
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp - 8]
add edx, 0x264
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10155263
mov eax, dword [ebp - 0xf0]
cmp dword [eax], 2
jbe 0x1015525c
push 1
mov ecx, dword [ebp - 0xf0]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.10180640
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1015525a
mov dword [ebp - 0xc], 2
jmp 0x10155b51
jmp 0x10155263
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x10155285
mov dword [ebp - 0xc], 0x16
mov ecx, dword [ebp - 4]
add ecx, 0x57c
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1015532b
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xd0]
and eax, 2
jne 0x101552bd
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xd0]
and edx, 0x400000
jne 0x101552bd
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xd0]
and ecx, 1
je 0x10155324
mov edx, dword [ebp - 0xf0]
cmp dword [edx], 0
jne 0x10155324
mov eax, dword [ebp - 0xf0]
cmp dword [eax + 4], 0
jne 0x101552e1
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + 0x230]
cmp edx, 1
jne 0x101552e1
mov dword [ebp - 0xc], 0x16
jmp 0x10155322
mov eax, dword [ebp - 8]
add eax, 0x264
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 0xf0]
cmp dword [ecx + 4], 0
jne 0x10155308
mov edx, dword [ebp - 8]
mov byte [edx + 0x22e], 0
jmp 0x10155312
mov eax, dword [ebp - 8]
mov byte [eax + 0x22e], 1
mov ecx, dword [ebp - 8]
add ecx, 0x264
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1015532b
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
cmp dword [ebp + 0x14], 8
jae 0x10155344
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0xf4], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xd0]
and ecx, 2
jne 0x1015536b
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xd0]
and eax, 0x400000
je 0x101553af
mov ecx, dword [ebp - 8]
add ecx, 0x264
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x210]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1015539d
mov ecx, dword [ebp - 4]
add ecx, 0x57c
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp - 8]
add edx, 0x264
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x101553ef
mov eax, dword [ebp - 0xf4]
cmp dword [eax], 2
jbe 0x101553e8
push 1
mov ecx, dword [ebp - 0xf4]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.10180640
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x101553e6
mov dword [ebp - 0xc], 2
jmp 0x10155b51
jmp 0x101553ef
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x10155411
mov dword [ebp - 0xc], 0x16
mov ecx, dword [ebp - 4]
add ecx, 0x57c
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1015551c
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xd0]
and eax, 2
jne 0x10155451
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xd0]
and edx, 0x400000
jne 0x10155451
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xd0]
and ecx, 1
je 0x10155515
mov edx, dword [ebp - 0xf4]
cmp dword [edx], 0
jne 0x10155515
mov eax, dword [ebp - 0xf4]
cmp dword [eax + 4], 0
je 0x10155477
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + 0x22e]
test edx, edx
jne 0x10155477
mov dword [ebp - 0xc], 0x16
jmp 0x10155513
mov eax, dword [ebp - 8]
add eax, 0x264
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 0xf4]
cmp dword [ecx + 4], 0
jne 0x101554cc
mov edx, dword [ebp - 8]
mov byte [edx + 0x230], 0
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x164]
push ecx
push 0xc1
call fcn.10198570
add esp, 8
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x164]
push eax
push 0x80
call fcn.10198570
add esp, 8
jmp 0x10155504
mov ecx, dword [ebp - 8]
mov byte [ecx + 0x230], 1
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x164]
push eax
push 0xc1
call fcn.101984d0
add esp, 8
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x164]
push edx
push 0x80
call fcn.101984d0
add esp, 8
mov eax, dword [ebp - 8]
add eax, 0x264
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1015551c
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
cmp dword [ebp + 0x14], 8
jae 0x10155535
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x128], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xd0]
and eax, 2
jne 0x1015555d
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xd0]
and edx, 0x400000
je 0x1015559f
mov eax, dword [ebp - 8]
add eax, 0x264
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x210]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x1015558d
mov eax, dword [ebp - 4]
add eax, 0x57c
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 8]
add ecx, 0x264
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x101555df
mov edx, dword [ebp - 0x128]
cmp dword [edx], 2
jbe 0x101555d8
push 1
mov eax, dword [ebp - 0x128]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.10180640
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x101555d6
mov dword [ebp - 0xc], 2
jmp 0x10155b51
jmp 0x101555df
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x10155600
mov dword [ebp - 0xc], 0x16
mov eax, dword [ebp - 4]
add eax, 0x57c
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10155682
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xd0]
and edx, 2
jne 0x10155638
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xd0]
and ecx, 0x400000
jne 0x10155638
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xd0]
and eax, 1
je 0x1015567b
mov ecx, dword [ebp - 0x128]
cmp dword [ecx], 0
jne 0x1015567b
mov edx, dword [ebp - 8]
add edx, 0x264
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x128]
cmp dword [eax + 4], 0
jne 0x10155660
mov ecx, dword [ebp - 8]
mov byte [ecx + 0x231], 0
jmp 0x1015566a
mov edx, dword [ebp - 8]
mov byte [edx + 0x231], 1
mov eax, dword [ebp - 8]
add eax, 0x264
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10155682
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
cmp dword [ebp + 0x14], 8
jae 0x1015569b
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x12c], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xd0]
and eax, 2
jne 0x101556c3
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xd0]
and edx, 0x400000
je 0x10155705
mov eax, dword [ebp - 8]
add eax, 0x264
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x210]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x101556f3
mov eax, dword [ebp - 4]
add eax, 0x57c
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 8]
add ecx, 0x264
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10155745
mov edx, dword [ebp - 0x12c]
cmp dword [edx], 2
jbe 0x1015573e
push 1
mov eax, dword [ebp - 0x12c]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.10180640
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1015573c
mov dword [ebp - 0xc], 2
jmp 0x10155b51
jmp 0x10155745
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x10155766
mov dword [ebp - 0xc], 0x16
mov eax, dword [ebp - 4]
add eax, 0x57c
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x101557e8
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xd0]
and edx, 2
jne 0x1015579e
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xd0]
and ecx, 0x400000
jne 0x1015579e
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xd0]
and eax, 1
je 0x101557e1
mov ecx, dword [ebp - 0x12c]
cmp dword [ecx], 0
jne 0x101557e1
mov edx, dword [ebp - 8]
add edx, 0x264
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x12c]
cmp dword [eax + 4], 0
jne 0x101557c6
mov ecx, dword [ebp - 8]
mov byte [ecx + 0x232], 0
jmp 0x101557d0
mov edx, dword [ebp - 8]
mov byte [edx + 0x232], 1
mov eax, dword [ebp - 8]
add eax, 0x264
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x101557e8
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
cmp dword [ebp + 0x14], 8
jae 0x10155801
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x130], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xd0]
and eax, 2
jne 0x10155829
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xd0]
and edx, 0x400000
je 0x1015586b
mov eax, dword [ebp - 8]
add eax, 0x264
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x210]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x10155859
mov eax, dword [ebp - 4]
add eax, 0x57c
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 8]
add ecx, 0x264
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x101558ab
mov edx, dword [ebp - 0x130]
cmp dword [edx], 2
jbe 0x101558a4
push 1
mov eax, dword [ebp - 0x130]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.10180640
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x101558a2
mov dword [ebp - 0xc], 2
jmp 0x10155b51
jmp 0x101558ab
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x101558cc
mov dword [ebp - 0xc], 0x16
mov eax, dword [ebp - 4]
add eax, 0x57c
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1015594e
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xd0]
and edx, 2
jne 0x10155904
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xd0]
and ecx, 0x400000
jne 0x10155904
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xd0]
and eax, 1
je 0x10155947
mov ecx, dword [ebp - 0x130]
cmp dword [ecx], 0
jne 0x10155947
mov edx, dword [ebp - 8]
add edx, 0x264
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x130]
cmp dword [eax + 4], 0
jne 0x1015592c
mov ecx, dword [ebp - 8]
mov byte [ecx + 0x233], 0
jmp 0x10155936
mov edx, dword [ebp - 8]
mov byte [edx + 0x233], 1
mov eax, dword [ebp - 8]
add eax, 0x264
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1015594e
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
cmp dword [ebp + 0x14], 8
jae 0x10155967
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0xd8], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xd0]
and eax, 2
jne 0x1015598f
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xd0]
and edx, 0x400000
je 0x101559d1
mov eax, dword [ebp - 8]
add eax, 0x264
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x210]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x101559bf
mov eax, dword [ebp - 4]
add eax, 0x57c
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 8]
add ecx, 0x264
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10155a11
mov edx, dword [ebp - 0xd8]
cmp dword [edx], 2
jbe 0x10155a0a
push 1
mov eax, dword [ebp - 0xd8]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.10180640
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10155a08
mov dword [ebp - 0xc], 2
jmp 0x10155b51
jmp 0x10155a11
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x10155ad6
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xd8]
mov edx, dword [ecx + 4]
mov dword [eax + 0x4f0], edx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x4f0], 0
jbe 0x10155ac4
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x1c4]
mov dword [ebp - 0x6c], edx
jmp 0x10155a53
mov eax, dword [ebp - 0x6c]
mov ecx, dword [eax]
mov dword [ebp - 0x6c], ecx
cmp dword [ebp - 0x6c], 0
je 0x10155ac4
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 4]
mov ecx, dword [edx + 0x158]
cmp ecx, dword [eax + 0x4f0]
jbe 0x10155ac2
mov edx, dword [ebp - 0x6c]
mov eax, dword [edx + 0x94]
sub eax, 0xc
mov ecx, dword [ebp - 0x6c]
cmp dword [ecx + 0x158], eax
jbe 0x10155ac2
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x4f0]
mov dword [edx + 0x158], ecx
mov edx, dword [ebp - 0x6c]
mov eax, dword [edx + 0x94]
sub eax, 0xc
mov ecx, dword [ebp - 0x6c]
cmp dword [ecx + 0x158], eax
jae 0x10155ac2
mov edx, dword [ebp - 0x6c]
mov eax, dword [edx + 0x94]
sub eax, 0xc
mov ecx, dword [ebp - 0x6c]
mov dword [ecx + 0x158], eax
jmp 0x10155a4b
mov edx, dword [ebp - 4]
add edx, 0x57c
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10155b48
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xd0]
and ecx, 2
jne 0x10155b0d
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xd0]
and eax, 0x400000
jne 0x10155b0d
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xd0]
and edx, 1
je 0x10155b41
mov eax, dword [ebp - 0xd8]
cmp dword [eax], 0
jne 0x10155b41
mov ecx, dword [ebp - 8]
add ecx, 0x264
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xd8]
mov ecx, dword [eax + 4]
mov dword [edx + 0x220], ecx
mov edx, dword [ebp - 8]
add edx, 0x264
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10155b48
mov dword [ebp - 0xc], 0x16
jmp 0x10155b51
mov dword [ebp - 0xc], 0x7b
mov eax, dword [ebp - 0xc]
pop edi
pop esi
mov esp, ebp
pop ebp
ret