Function at 0x10170f20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x103fbc90]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x28], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x9c], xmm0
xorps xmm0, xmm0
movlpd qword [ebp - 0x58], xmm0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x80], 1
mov dword [ebp - 0x3c], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x68], xmm0
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x30], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x7c], xmm0
mov dword [ebp - 0x70], 0
cmp dword [ebp + 0xc], 0
jne 0x10170ff4
mov eax, 0x16
jmp 0x10172e2c
cmp dword [ebp + 0x1c], 0
je 0x1017101a
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax]
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp - 0x4c]
and edx, 2
je 0x10171018
mov eax, 1
mov ecx, 0x10405f50
lock xadd dword [ecx], eax
jmp 0x10171021
mov dword [ebp - 0x4c], 0
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x10]
mov ecx, dword [edx + 0x14]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], ecx
mov edx, dword [ebp - 0x4c]
and edx, 1
je 0x10171042
mov eax, 0x82
jmp 0x10172e2c
mov eax, dword [ebp - 0x4c]
and eax, 2
je 0x1017105a
cmp dword [ebp + 0x10], 0
je 0x1017105a
mov eax, 0x16
jmp 0x10172e2c
mov ecx, dword [ebp - 0x4c]
and ecx, 0x80
jne 0x10171073
mov edx, dword [ebp + 8]
movsx eax, word [edx + 0xa]
and eax, 0x100
je 0x1017107a
mov dword [ebp - 0x80], 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0x28], edx
cmp dword [ebp - 0x28], 0
jne 0x10171093
mov eax, 0xe
jmp 0x10172e2c
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x8c]
shr ecx, 3
mov dword [ebp - 0x5c], ecx
cmp dword [ebp - 0x5c], 0x5dc
jae 0x101710b2
mov dword [ebp - 0x5c], 0x5dc
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0xc8]
and eax, 0x400000
mov ecx, dword [edx + 0xcc]
and ecx, 0
mov dword [ebp - 0x104], eax
mov dword [ebp - 0x100], ecx
cmp dword [ebp - 0x104], 0x400000
jne 0x101710f6
cmp dword [ebp - 0x100], 0
jne 0x101710f6
mov dword [ebp - 0xa0], 1
jmp 0x10171100
mov dword [ebp - 0xa0], 0
mov edx, dword [ebp - 0xa0]
mov dword [ebp - 0x90], edx
mov eax, dword [0x104060b8]
and eax, 0x1000
je 0x1017113e
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x88]
push ecx
mov edx, dword [ebp - 0x90]
push edx
mov eax, dword [ebp - 0x5c]
push eax
push 0x58
call fcn.1017a580
add esp, 0x14
mov ecx, dword [ebp + 8]
add ecx, 0x58
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 0x44], 1
mov edx, dword [0x104060b8]
and edx, 0x1000
je 0x10171183
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x88]
push eax
mov ecx, dword [ebp - 0x80]
push ecx
mov edx, dword [ebp - 0x5c]
push edx
push 0x59
call fcn.1017a580
add esp, 0x14
cmp dword [ebp - 0x50], 0
je 0x1017118e
jmp 0x10172b75
cmp dword [ebp - 0x44], 0
jne 0x101711a8
mov eax, dword [ebp + 8]
add eax, 0x58
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 0x44], 1
cmp dword [ebp - 0x44], 0
jne 0x101711c2
mov ecx, dword [ebp + 8]
add ecx, 0x58
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 0x44], 1
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0xd0]
and eax, 0x10000000
jne 0x101711e3
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0xd0]
and edx, 0x20000000
je 0x101711e8
jmp 0x10172bd4
mov eax, dword [ebp + 8]
movsx ecx, word [eax + 0xa]
and ecx, 0x20
je 0x10171245
mov edx, dword [ebp + 8]
cmp dword [edx + 0x88], 0
jne 0x10171245
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0x40]
test ecx, ecx
je 0x1017122d
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x40]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x4c]
and ecx, 2
jne 0x10171226
xor edx, edx
mov eax, dword [ebp + 8]
mov word [eax + 0x40], dx
jmp 0x10172bd4
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x88], 0
jne 0x10171245
mov dword [ebp - 0x50], 0
jmp 0x10172bd4
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x88]
cmp eax, dword [ebp - 0x70]
ja 0x10171347
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + 0x40]
test edx, edx
je 0x10171282
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0x40]
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x4c]
and edx, 2
jne 0x1017127d
xor eax, eax
mov ecx, dword [ebp + 8]
mov word [ecx + 0x40], ax
jmp 0x10172bd4
mov edx, dword [ebp + 8]
cmp dword [edx + 0x88], 0
jne 0x1017130a
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0xd0]
and ecx, 2
jne 0x101712ac
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0xd0]
and eax, 0x400000
je 0x1017130a
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0xd0]
and edx, 0x200000
jne 0x1017130a
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0xd0]
and ecx, 0x100000
je 0x101712d5
mov dword [ebp - 0x50], 0x6c
mov edx, dword [ebp + 8]
movsx eax, word [edx + 0xa]
and eax, 0xfffffbf1
mov ecx, dword [ebp + 8]
mov word [ecx + 0xa], ax
cmp dword [ebp - 0x50], 0
jne 0x10171305
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0xd0]
and eax, 0x80000
jne 0x10171305
mov dword [ebp - 0x50], 0x7e
jmp 0x10172bd4
cmp dword [ebp - 0x80], 0
je 0x1017133b
mov ecx, dword [ebp + 8]
add ecx, 0x54
push ecx
call fcn.10140f40
add esp, 4
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
je 0x1017132d
jmp 0x10172bd4
mov dword [ebp - 0x70], 0
jmp 0x101711a8
mov dword [ebp - 0x50], 0x8c
jmp 0x10172bd4
cmp dword [ebp - 0x44], 1
jne 0x10171361
mov edx, dword [ebp + 8]
add edx, 0x58
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0xa0]
mov dword [ebp - 0x24], ecx
cmp dword [ebp - 0x24], 0
jne 0x101713d0
cmp dword [ebp - 0x30], 0
jne 0x10171389
mov edx, dword [ebp - 0x28]
add edx, 0x294
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0xa0]
mov dword [ebp - 0x24], ecx
cmp dword [ebp - 0x24], 0
jne 0x101713b4
mov edx, dword [ebp + 8]
cmp dword [edx + 0x88], 0
je 0x101713b4
mov eax, dword [ebp + 8]
mov dword [eax + 0x88], 0
mov ecx, dword [ebp - 0x28]
add ecx, 0x294
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x30], 0
jmp 0x1017118e
mov edx, dword [ebp - 0x24]
cmp dword [edx + 0x20], 0
jne 0x10171602
mov eax, dword [ebp - 0x24]
movzx ecx, byte [eax + 0x60]
test ecx, ecx
je 0x10171602
cmp dword [ebp - 0x30], 0
jne 0x10171409
mov dword [ebp - 0x30], 1
mov edx, dword [ebp - 0x28]
add edx, 0x294
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x24], 0
mov ecx, dword [ebp - 0x24]
cmp dword [ecx + 0x34], 0
je 0x1017147a
mov dword [ebp - 0x88], 0
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x34]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
je 0x10171469
mov ecx, dword [ebp - 0x6c]
mov edx, dword [ebp - 0x88]
add edx, dword [ecx + 0xc]
mov dword [ebp - 0x88], edx
mov eax, dword [ebp - 0x6c]
cmp dword [eax], 0
jne 0x1017145f
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x6c]
mov dword [ecx + 0x38], edx
mov eax, dword [ebp - 0x24]
mov byte [eax + 0x61], 1
mov ecx, dword [ebp - 0x6c]
mov edx, dword [ecx]
mov dword [ebp - 0x6c], edx
jmp 0x1017142f
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x88]
mov dword [eax + 0x20], ecx
jmp 0x101715e0
mov edx, dword [ebp - 0x24]
cmp dword [edx + 0x44], 0
je 0x10171494
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x44]
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x48]
mov dword [ecx + 0x48], eax
jmp 0x101714a3
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x48]
mov dword [ecx + 0xa4], eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x48]
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x44]
mov dword [edx], ecx
xor edx, edx
jne 0x1017147a
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0x30], 0
je 0x101715c8
or ecx, 0xffffffff
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x30]
add eax, 0x150
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x101715c8
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x30]
cmp dword [edx + 0x70], 0
je 0x1017154d
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x30]
mov edx, dword [ecx + 0x70]
cmp dword [edx + 0xc], 1
jg 0x1017150c
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x30]
mov edx, dword [ecx + 0x70]
push edx
call fcn.10170ee0
add esp, 4
jmp 0x1017152b
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x30]
mov edx, dword [ecx + 0x70]
mov eax, dword [edx + 0xc]
sub eax, 1
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x30]
mov ecx, dword [edx + 0x70]
mov dword [ecx + 0xc], eax
xor edx, edx
jne 0x1017150c
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x30]
mov dword [ecx + 0x70], 0
xor edx, edx
jne 0x101714e9
xor eax, eax
jne 0x101714e9
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x30]
mov dword [edx + 0x70], 0
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x30]
movzx edx, byte [ecx + 0x1b3]
test edx, edx
je 0x10171583
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x30]
mov edx, dword [ecx + 0x90]
push edx
call fcn.1017e840
add esp, 4
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x30]
mov dword [ecx + 0x90], 0
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x30]
mov byte [eax + 0x1b3], 0
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x30]
movzx eax, word [edx + 0x1a4]
and eax, 0xfffffffe
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x30]
mov word [edx + 0x1a4], ax
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x30]
push ecx
call fcn.103201db
add esp, 4
or edx, 0xffffffff
mov eax, 0x10405c74
lock xadd dword [eax], edx
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.103201db
add esp, 4
or edx, 0xffffffff
mov eax, 0x10405c7c
lock xadd dword [eax], edx
cmp dword [ebp - 0x30], 0
je 0x101715fd
mov dword [ebp - 0x30], 0
mov ecx, dword [ebp - 0x28]
add ecx, 0x294
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1017118e
mov edx, dword [ebp - 0x24]
cmp dword [edx + 0x20], 0
jne 0x1017181f
mov eax, dword [ebp - 0x24]
movzx ecx, byte [eax + 0x61]
cmp ecx, 1
jne 0x1017181f
cmp dword [ebp - 0x30], 0
jne 0x1017163c
mov dword [ebp - 0x30], 1
mov edx, dword [ebp - 0x28]
add edx, 0x294
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0x44], 0
je 0x10171656
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x44]
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x48]
mov dword [edx + 0x48], ecx
jmp 0x10171665
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x48]
mov dword [edx + 0xa4], ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x48]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x44]
mov dword [eax], edx
xor eax, eax
jne 0x1017163c
mov ecx, dword [ebp - 0x24]
cmp dword [ecx + 0x34], 0
je 0x101716b0
cmp dword [0x1040613c], 0
je 0x10171697
push str.Strange__data_left_in_the_control_buffer._Cleaning_up._n
call dword [0x1040613c]
add esp, 4
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x34]
push eax
call fcn.10156940
add esp, 4
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x34], 0
mov edx, dword [ebp - 0x24]
cmp dword [edx + 0x3c], 0
je 0x101716d2
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x3c]
push ecx
call fcn.10155d70
add esp, 4
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x3c], 0
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0x30], 0
je 0x101717e5
or ecx, 0xffffffff
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x30]
add eax, 0x150
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x101717e5
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x30]
cmp dword [edx + 0x70], 0
je 0x1017176a
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x30]
mov edx, dword [ecx + 0x70]
cmp dword [edx + 0xc], 1
jg 0x10171729
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x30]
mov edx, dword [ecx + 0x70]
push edx
call fcn.10170ee0
add esp, 4
jmp 0x10171748
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x30]
mov edx, dword [ecx + 0x70]
mov eax, dword [edx + 0xc]
sub eax, 1
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x30]
mov ecx, dword [edx + 0x70]
mov dword [ecx + 0xc], eax
xor edx, edx
jne 0x10171729
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x30]
mov dword [ecx + 0x70], 0
xor edx, edx
jne 0x10171706
xor eax, eax
jne 0x10171706
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x30]
mov dword [edx + 0x70], 0
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x30]
movzx edx, byte [ecx + 0x1b3]
test edx, edx
je 0x101717a0
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x30]
mov edx, dword [ecx + 0x90]
push edx
call fcn.1017e840
add esp, 4
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x30]
mov dword [ecx + 0x90], 0
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x30]
mov byte [eax + 0x1b3], 0
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x30]
movzx eax, word [edx + 0x1a4]
and eax, 0xfffffffe
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x30]
mov word [edx + 0x1a4], ax
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x30]
push ecx
call fcn.103201db
add esp, 4
or edx, 0xffffffff
mov eax, 0x10405c74
lock xadd dword [eax], edx
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.103201db
add esp, 4
or edx, 0xffffffff
mov eax, 0x10405c7c
lock xadd dword [eax], edx
cmp dword [ebp - 0x30], 0
je 0x1017181a
mov dword [ebp - 0x30], 0
mov ecx, dword [ebp - 0x28]
add ecx, 0x294
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1017118e
mov edx, dword [ebp - 0x24]
cmp dword [edx + 0x20], 0
jne 0x101719a1
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0xc8]
and ecx, 8
mov edx, dword [eax + 0xcc]
and edx, 0
mov dword [ebp - 0x10c], ecx
mov dword [ebp - 0x108], edx
cmp dword [ebp - 0x10c], 8
jne 0x10171981
cmp dword [ebp - 0x108], 0
jne 0x10171981
cmp dword [ebp + 0x24], 0
je 0x10171981
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x44]
mov dword [ebp - 0x40], ecx
cmp dword [ebp - 0x40], 0
je 0x10171981
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x24]
mov ecx, dword [edx + 0x40]
cmp ecx, dword [eax + 0x40]
je 0x101718ed
mov edx, dword [ebp - 0x40]
cmp dword [edx + 0x20], 0
je 0x101718ed
mov eax, dword [ebp - 0x40]
movzx ecx, byte [eax + 0x64]
test ecx, ecx
jne 0x101718dd
mov edx, dword [ebp - 0x40]
movzx eax, word [edx + 0x5e]
and eax, 0x100
jne 0x101718dd
mov ecx, dword [ebp - 0x40]
movzx edx, byte [ecx + 0x60]
test edx, edx
jne 0x101718ed
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + 0x40]
mov edx, dword [ebp - 0x40]
movzx eax, word [edx]
imul edx, eax, 0x18
mov eax, dword [ecx + 0x218]
movzx ecx, byte [eax + edx + 0x16]
test ecx, ecx
jne 0x101718ed
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x24], edx
jmp 0x101719ab
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0xc8]
and ecx, 0x10
mov edx, dword [eax + 0xcc]
and edx, 0
mov dword [ebp - 0x114], ecx
mov dword [ebp - 0x110], edx
cmp dword [ebp - 0x114], 0x10
jne 0x10171973
cmp dword [ebp - 0x110], 0
jne 0x10171973
mov eax, dword [ebp - 0x40]
cmp dword [eax + 0x20], 0
je 0x10171973
mov ecx, dword [ebp - 0x40]
movzx edx, byte [ecx + 0x64]
test edx, edx
jne 0x1017196b
mov eax, dword [ebp - 0x40]
movzx ecx, byte [eax + 0x60]
test ecx, ecx
jne 0x10171973
mov edx, dword [ebp - 0x40]
movzx eax, word [edx + 0x5e]
and eax, 0x100
jne 0x10171973
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx + 0x40]
mov eax, dword [ebp - 0x40]
movzx ecx, word [eax]
imul eax, ecx, 0x18
mov ecx, dword [edx + 0x218]
movzx edx, byte [ecx + eax + 0x16]
test edx, edx
jne 0x10171973
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x24], eax
jmp 0x101719ab
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx + 0x44]
mov dword [ebp - 0x40], edx
jmp 0x1017187a
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x88]
mov dword [ebp - 0x70], ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x24], ecx
jmp 0x1017118e
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x24], 0
cmp dword [ebp - 0x30], 0
jne 0x101719c7
mov dword [ebp - 0x30], 1
mov eax, dword [ebp - 0x28]
add eax, 0x294
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 0x24]
mov dl, byte [ecx + 0x64]
add dl, 1
mov eax, dword [ebp - 0x24]
mov byte [eax + 0x64], dl
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x40]
mov dword [ebp - 0x2c], edx
cmp dword [ebp - 0x2c], 0
je 0x10171a75
mov eax, dword [ebp - 0x24]
movzx ecx, byte [eax + 0x60]
test ecx, ecx
jne 0x10171a13
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x30]
and eax, 0x200
je 0x10171a13
cmp dword [ebp - 0x84], 0
jne 0x10171a11
mov dword [ebp - 0x2c], 0
jmp 0x10171a75
mov ecx, dword [ebp - 0x24]
movzx edx, byte [ecx + 0x60]
test edx, edx
jne 0x10171a75
cmp dword [ebp - 0x84], 0
je 0x10171a40
cmp dword [0x1040613c], 0
je 0x10171a3e
push str.refcnt_already_incremented__n
call dword [0x1040613c]
add esp, 4
jmp 0x10171a5c
mov eax, 1
mov ecx, dword [ebp - 0x2c]
add ecx, 0x464
lock xadd dword [ecx], eax
mov dword [ebp - 0x84], 1
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x568]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0x568], 0
cmp dword [ebp - 0x2c], 0
je 0x10171aab
mov edx, dword [ebp - 0x24]
movzx eax, word [edx + 0x5e]
and eax, 0x100
jne 0x10171aab
mov ecx, dword [ebp - 0x24]
movzx edx, byte [ecx + 0x60]
test edx, edx
jne 0x10171aab
mov eax, dword [ebp - 0x24]
movzx ecx, word [eax]
imul edx, ecx, 0x18
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x218]
mov byte [ecx + edx + 0x16], 1
cmp dword [ebp + 0x20], 0
je 0x10171cf9
cmp dword [ebp + 0x24], 0
je 0x10171cf9
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp - 0x24]
mov cx, word [eax]
mov word [edx], cx
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp - 0x24]
mov cx, word [eax + 0x1c]
mov word [edx + 2], cx
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp - 0x24]
mov cx, word [eax + 2]
mov word [edx + 4], cx
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 4]
mov dword [edx + 8], ecx
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 8]
mov dword [edx + 0xc], ecx
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0xc]
mov dword [edx + 0x10], ecx
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x10]
mov dword [edx + 0x14], ecx
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x14]
mov dword [edx + 0x18], ecx
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x18]
mov dword [edx + 0x1c], ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x44]
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0xc8]
and edx, 2
mov eax, dword [ecx + 0xcc]
and eax, 0
mov dword [ebp - 0x150], edx
mov dword [ebp - 0x14c], eax
cmp dword [ebp - 0x150], 2
jne 0x10171b6b
cmp dword [ebp - 0x14c], 0
je 0x10171bac
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0xc8]
and edx, 0x10000000
mov eax, dword [ecx + 0xcc]
and eax, 0
mov dword [ebp - 0x120], edx
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x120], 0x10000000
jne 0x10171ca3
cmp dword [ebp - 0x11c], 0
jne 0x10171ca3
mov ecx, dword [ebp + 0x20]
mov dword [ebp - 0x48], ecx
cmp dword [ebp - 0x60], 0
je 0x10171c6c
mov edx, dword [ebp - 0x60]
cmp dword [edx + 0x20], 0
je 0x10171c6c
mov eax, 1
mov ecx, dword [ebp - 0x48]
mov word [ecx + 0x20], ax
mov edx, dword [ebp - 0x60]
movzx eax, word [edx + 2]
and eax, 0x400
je 0x10171bf4
mov ecx, dword [ebp - 0x48]
movzx edx, word [ecx + 0x20]
or edx, 4
mov eax, dword [ebp - 0x48]
mov word [eax + 0x20], dx
mov ecx, dword [ebp - 0x60]
movzx edx, word [ecx + 0x5e]
and edx, 0x100
je 0x10171c14
mov eax, dword [ebp - 0x48]
movzx ecx, word [eax + 0x20]
or ecx, 8
mov edx, dword [ebp - 0x48]
mov word [edx + 0x20], cx
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x60]
mov edx, dword [ecx + 0x18]
mov dword [eax + 0x24], edx
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x60]
mov edx, dword [ecx + 0x20]
mov dword [eax + 0x28], edx
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x60]
mov edx, dword [ecx + 4]
mov dword [eax + 0x2c], edx
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x60]
mov dx, word [ecx]
mov word [eax + 0x22], dx
mov eax, dword [ebp - 0x60]
cmp dword [eax + 0x38], 0
je 0x10171c6a
mov ecx, dword [ebp - 0x60]
movzx edx, byte [ecx + 0x61]
test edx, edx
je 0x10171c6a
mov eax, dword [ebp - 0x48]
movzx ecx, word [eax + 0x20]
or ecx, 2
mov edx, dword [ebp - 0x48]
mov word [edx + 0x20], cx
jmp 0x10171ca3
mov dword [ebp - 0x60], 0
xor eax, eax
mov ecx, dword [ebp - 0x48]
mov word [ecx + 0x20], ax
mov edx, dword [ebp - 0x48]
mov dword [edx + 0x24], 0
mov eax, dword [ebp - 0x48]
mov dword [eax + 0x28], 0
mov ecx, dword [ebp - 0x48]
mov dword [ecx + 0x2c], 0
xor edx, edx
mov eax, dword [ebp - 0x48]
mov word [eax + 0x22], dx
mov ecx, dword [ebp - 0x24]
movzx edx, byte [ecx + 0x60]
test edx, edx
jne 0x10171cc3
cmp dword [ebp - 0x2c], 0
je 0x10171cc3
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x300]
mov dword [eax + 0x18], edx
mov eax, dword [ebp + 0x20]
movzx ecx, word [eax + 4]
and ecx, 0xff
mov edx, dword [ebp + 0x20]
mov word [edx + 4], cx
mov eax, dword [ebp - 0x24]
movzx ecx, word [eax + 2]
sar ecx, 8
and ecx, 4
je 0x10171cf9
mov edx, dword [ebp + 0x20]
movzx eax, word [edx + 4]
or eax, 0x400
mov ecx, dword [ebp + 0x20]
mov word [ecx + 4], ax
cmp dword [ebp + 0x18], 0
jle 0x10171d94
cmp dword [ebp + 0x14], 0
je 0x10171d94
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x30]
movzx ecx, word [eax + 0x74]
mov dword [ebp - 0xe8], ecx
cmp dword [ebp - 0xe8], 0x7b
je 0x10171d28
jmp 0x10171d51
mov dword [ebp - 0x8c], 8
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x30]
mov ecx, dword [eax + 0x74]
mov edx, dword [eax + 0x78]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x24]
mov cx, word [eax + 0x5c]
mov word [ebp - 0x1e], cx
jmp 0x10171d5b
mov dword [ebp - 0x8c], 0
mov edx, dword [ebp + 0x18]
cmp edx, dword [ebp - 0x8c]
jae 0x10171d71
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xa4], eax
jmp 0x10171d7d
mov ecx, dword [ebp - 0x8c]
mov dword [ebp - 0xa4], ecx
mov edx, dword [ebp - 0xa4]
push edx
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.10316b20
add esp, 0xc
cmp dword [ebp - 0x30], 0
je 0x10171db1
mov edx, dword [ebp - 0x28]
add edx, 0x294
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x30], 0
cmp dword [ebp - 0x44], 0
je 0x10171dcb
mov eax, dword [ebp + 8]
add eax, 0x58
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x44], 0
cmp dword [ebp + 0x10], 0
jne 0x101728b9
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x34]
mov dword [ebp - 0x38], edx
cmp dword [ebp - 0x38], 0
je 0x10172323
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 0xc]
cdq
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x98], edx
mov ecx, dword [ebp - 0x54]
cmp ecx, dword [ebp - 0x98]
jl 0x10171e34
jg 0x10171e22
mov edx, dword [ebp - 0x58]
cmp edx, dword [ebp - 0x9c]
jbe 0x10171e34
mov eax, dword [ebp - 0x9c]
mov ecx, dword [ebp - 0x98]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], ecx
cmp dword [ebp - 0x30], 0
je 0x10171e51
mov edx, dword [ebp - 0x28]
add edx, 0x294
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x30], 0
cmp dword [ebp - 0x54], 0
jl 0x10171e79
jg 0x10171e5f
cmp dword [ebp - 0x58], 0
jbe 0x10171e79
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x58]
push ecx
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 8]
push eax
call fcn.10140da0
add esp, 0xc
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0xd0]
and edx, 0x10000000
je 0x10171e8f
jmp 0x10172b3f
mov eax, dword [ebp - 0x24]
movzx ecx, byte [eax + 0x60]
test ecx, ecx
jne 0x10171eb4
cmp dword [ebp - 0x2c], 0
je 0x10171eb4
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x30]
and eax, 0x200
je 0x10171eb4
mov dword [ebp - 0x74], 1
cmp dword [ebp - 0x50], 0
je 0x10171ebf
jmp 0x10172b3f
mov ecx, dword [ebp - 0x28]
add ecx, 0x294
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 0x30], 1
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 0xc]
cdq
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x124], edx
mov eax, dword [ebp - 0x58]
cmp eax, dword [ebp - 0x128]
jne 0x1017216b
mov ecx, dword [ebp - 0x54]
cmp ecx, dword [ebp - 0x124]
jne 0x1017216b
mov edx, dword [ebp - 0x38]
cmp dword [edx], 0
jne 0x10171f60
mov eax, dword [ebp - 0x24]
movzx ecx, byte [eax + 0x61]
test ecx, ecx
je 0x10171f60
mov edx, dword [ebp - 0x34]
or edx, 8
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x24]
movzx ecx, byte [eax + 0x60]
test ecx, ecx
jne 0x10171f60
mov edx, dword [ebp - 0x24]
cmp dword [edx + 0x40], 0
je 0x10171f60
mov eax, dword [ebp - 0x24]
movzx ecx, word [eax + 0x5e]
and ecx, 0x100
jne 0x10171f60
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x40]
mov ecx, dword [ebp - 0x24]
movzx edx, word [ecx]
imul ecx, edx, 0x18
mov edx, dword [eax + 0x218]
mov byte [edx + ecx + 0x16], 0
mov eax, dword [ebp - 0x24]
movzx ecx, word [eax + 0x5e]
and ecx, 0x100
je 0x10171f7b
mov edx, dword [ebp - 0x34]
or edx, 0x2000
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x4c]
and eax, 2
je 0x10171fa2
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x68]
add eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x64]
adc ecx, dword [ebp - 0x54]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], ecx
jmp 0x10172166
mov edx, dword [0x104060b8]
and edx, 0x10000
je 0x10171fef
mov eax, dword [ebp - 0x24]
movzx ecx, byte [eax + 0x60]
test ecx, ecx
je 0x10171fc7
mov dword [ebp - 0xa8], 0
jmp 0x10171fd0
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0xa8], edx
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0xc]
push ecx
push 0x36
mov edx, dword [ebp - 0xa8]
push edx
mov eax, dword [ebp + 8]
add eax, 0x54
push eax
call fcn.1017a5c0
add esp, 0x10
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + 0xc]
neg edx
mov eax, dword [ebp + 8]
add eax, 0x88
lock xadd dword [eax], edx
mov dword [ebp - 0xec], edx
cmp dword [ebp - 0xec], 0
jge 0x1017201f
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x88], 0
mov edx, 0xffffff00
mov eax, dword [ebp + 8]
add eax, 0x90
lock xadd dword [eax], edx
mov dword [ebp - 0xf0], edx
cmp dword [ebp - 0xf0], 0
jge 0x1017204c
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x90], 0
mov edx, dword [ebp - 0x24]
movzx eax, byte [edx + 0x60]
test eax, eax
jne 0x101720ba
cmp dword [ebp - 0x2c], 0
je 0x101720ba
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + 0xc]
neg edx
mov eax, dword [ebp - 0x2c]
add eax, 0x35c
lock xadd dword [eax], edx
mov dword [ebp - 0xf4], edx
cmp dword [ebp - 0xf4], 0
jge 0x1017208d
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0x35c], 0
mov edx, 0xffffff00
mov eax, dword [ebp - 0x2c]
add eax, 0x364
lock xadd dword [eax], edx
mov dword [ebp - 0xf8], edx
cmp dword [ebp - 0xf8], 0
jge 0x101720ba
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0x364], 0
mov edx, dword [0x104060b8]
and edx, 0x10000
je 0x10172102
mov eax, dword [ebp - 0x24]
movzx ecx, byte [eax + 0x60]
test ecx, ecx
je 0x101720df
mov dword [ebp - 0xac], 0
jmp 0x101720e8
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0xac], edx
push 0
push 0x37
mov eax, dword [ebp - 0xac]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x54
push ecx
call fcn.1017a5c0
add esp, 0x10
mov edx, dword [ebp - 0x68]
add edx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x64]
adc eax, dword [ebp - 0x54]
mov dword [ebp - 0x68], edx
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x58]
add ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x3c]
add edx, 0x100
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x58]
neg eax
mov ecx, dword [ebp - 0x24]
add ecx, 0x20
lock xadd dword [ecx], eax
mov edx, dword [ebp - 0x38]
push edx
call fcn.10155d70
add esp, 4
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x34], eax
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x34]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x24]
cmp dword [ecx + 0x34], 0
jne 0x10172166
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x38], 0
jmp 0x101722be
mov eax, dword [ebp - 0x24]
movzx ecx, word [eax + 0x5e]
and ecx, 0x100
je 0x10172186
mov edx, dword [ebp - 0x34]
or edx, 0x2000
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x4c]
and eax, 2
jne 0x101722ac
mov ecx, dword [ebp - 0x58]
mov edx, dword [ebp - 0x38]
add ecx, dword [edx + 8]
mov eax, dword [ebp - 0x38]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + 0xc]
sub edx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x38]
mov dword [eax + 0xc], edx
mov ecx, dword [0x104060b8]
and ecx, 0x10000
je 0x101721fa
mov edx, dword [ebp - 0x24]
movzx eax, byte [edx + 0x60]
test eax, eax
je 0x101721d5
mov dword [ebp - 0xc4], 0
jmp 0x101721de
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0xc4], ecx
mov edx, dword [ebp - 0x58]
push edx
push 0x36
mov eax, dword [ebp - 0xc4]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x54
push ecx
call fcn.1017a5c0
add esp, 0x10
mov edx, dword [ebp - 0x58]
neg edx
mov eax, dword [ebp + 8]
add eax, 0x88
lock xadd dword [eax], edx
mov ecx, dword [ebp - 0x24]
movzx edx, byte [ecx + 0x60]
test edx, edx
jne 0x1017222e
cmp dword [ebp - 0x2c], 0
je 0x1017222e
mov eax, dword [ebp - 0x58]
neg eax
mov ecx, dword [ebp - 0x2c]
add ecx, 0x35c
lock xadd dword [ecx], eax
mov edx, dword [ebp - 0x68]
add edx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x64]
adc eax, dword [ebp - 0x54]
mov dword [ebp - 0x68], edx
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x58]
add ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x3c]
add edx, 0x100
mov dword [ebp - 0x3c], edx
mov eax, dword [0x104060b8]
and eax, 0x10000
je 0x1017229b
mov ecx, dword [ebp - 0x24]
movzx edx, byte [ecx + 0x60]
test edx, edx
je 0x10172278
mov dword [ebp - 0xc0], 0
jmp 0x10172281
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0xc0], eax
push 0
push 0x37
mov ecx, dword [ebp - 0xc0]
push ecx
mov edx, dword [ebp + 8]
add edx, 0x54
push edx
call fcn.1017a5c0
add esp, 0x10
mov eax, dword [ebp - 0x58]
neg eax
mov ecx, dword [ebp - 0x24]
add ecx, 0x20
lock xadd dword [ecx], eax
jmp 0x101722be
mov edx, dword [ebp - 0x68]
add edx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x64]
adc eax, dword [ebp - 0x54]
mov dword [ebp - 0x68], edx
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x34]
and ecx, 8
jne 0x101722e3
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0xbc], edx
mov eax, dword [ebp - 0xbc]
mov ecx, dword [ebp - 0xbc]
mov edx, dword [eax + 0x10]
or edx, dword [ecx + 0x14]
jne 0x101722e5
jmp 0x10172323
cmp dword [ebp - 0x2c], 0
je 0x1017231e
mov eax, dword [ebp - 0x4c]
and eax, 2
jne 0x1017231e
mov ecx, dword [ebp - 0x24]
movzx edx, byte [ecx + 0x60]
test edx, edx
jne 0x1017231e
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x5c]
jb 0x1017231e
mov ecx, dword [ebp - 0x5c]
push ecx
mov edx, dword [ebp - 0x30]
push edx
lea eax, [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.1017d3a0
add esp, 0x10
jmp 0x10171dde
mov edx, dword [ebp - 0x34]
and edx, 8
je 0x101725a0
mov eax, dword [ebp - 0x4c]
and eax, 2
jne 0x101725a0
mov ecx, dword [ebp - 0x24]
cmp dword [ecx + 0x20], 0
jne 0x1017258d
mov edx, dword [ebp - 0x24]
cmp dword [edx + 0x34], 0
je 0x10172381
cmp dword [0x1040613c], 0
je 0x10172368
push str.Strange__data_left_in_the_control_buffer_.._invarients_would_panic__n
call dword [0x1040613c]
add esp, 4
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x34]
push ecx
call fcn.10156940
add esp, 4
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x34], 0
cmp dword [ebp - 0x30], 0
jne 0x1017239d
mov eax, dword [ebp - 0x28]
add eax, 0x294
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 0x30], 1
mov ecx, dword [ebp - 0x24]
cmp dword [ecx + 0x44], 0
je 0x101723b7
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x44]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x48]
mov dword [eax + 0x48], edx
jmp 0x101723c6
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x48]
mov dword [eax + 0xa4], edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x48]
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x44]
mov dword [ecx], eax
xor ecx, ecx
jne 0x1017239d
mov edx, dword [ebp - 0x24]
cmp dword [edx + 0x24], 0
je 0x101723fc
mov dword [ebp - 0x70], 0
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x24], 0
mov dword [ebp - 0x94], 1
mov ecx, dword [ebp - 0x24]
cmp dword [ecx + 0x3c], 0
je 0x1017241e
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x3c]
push eax
call fcn.10155d70
add esp, 4
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x3c], 0
mov edx, dword [ebp - 0x24]
movzx eax, byte [edx + 0x60]
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x24]
cmp dword [ecx + 0x30], 0
je 0x1017253c
or edx, 0xffffffff
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x30]
add ecx, 0x150
lock xadd dword [ecx], edx
cmp edx, 1
jne 0x1017253c
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x30]
cmp dword [eax + 0x70], 0
je 0x101724c1
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x30]
mov eax, dword [edx + 0x70]
cmp dword [eax + 0xc], 1
jg 0x10172480
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x30]
mov eax, dword [edx + 0x70]
push eax
call fcn.10170ee0
add esp, 4
jmp 0x1017249f
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x30]
mov eax, dword [edx + 0x70]
mov ecx, dword [eax + 0xc]
sub ecx, 1
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x30]
mov edx, dword [eax + 0x70]
mov dword [edx + 0xc], ecx
xor eax, eax
jne 0x10172480
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x30]
mov dword [edx + 0x70], 0
xor eax, eax
jne 0x1017245d
xor ecx, ecx
jne 0x1017245d
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x30]
mov dword [eax + 0x70], 0
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x30]
movzx eax, byte [edx + 0x1b3]
test eax, eax
je 0x101724f7
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x30]
mov eax, dword [edx + 0x90]
push eax
call fcn.1017e840
add esp, 4
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x30]
mov dword [edx + 0x90], 0
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x30]
mov byte [ecx + 0x1b3], 0
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x30]
movzx ecx, word [eax + 0x1a4]
and ecx, 0xfffffffe
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x30]
mov word [eax + 0x1a4], cx
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x30]
push edx
call fcn.103201db
add esp, 4
or eax, 0xffffffff
mov ecx, 0x10405c74
lock xadd dword [ecx], eax
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x34], 0
mov eax, dword [ebp - 0x24]
push eax
call fcn.103201db
add esp, 4
or ecx, 0xffffffff
mov edx, 0x10405c7c
lock xadd dword [edx], ecx
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x5c]
jb 0x1017258b
cmp dword [ebp - 0x74], 0
jne 0x1017258b
mov ecx, dword [ebp - 0x5c]
push ecx
mov edx, dword [ebp - 0x30]
push edx
lea eax, [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.1017d3a0
add esp, 0x10
jmp 0x101725a0
mov edx, dword [ebp - 0x24]
movzx eax, byte [edx + 0x60]
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x34]
and ecx, 0xfffffff7
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x34]
and edx, 8
je 0x101725ad
jmp 0x10172b3f
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc8], eax
mov ecx, dword [ebp - 0xc8]
mov edx, dword [ebp - 0xc8]
mov eax, dword [ecx + 0x10]
or eax, dword [edx + 0x14]
je 0x10172625
cmp dword [ebp - 0x90], 0
je 0x1017262a
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x9c], 1
jle 0x101725f0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x9c]
mov dword [ebp - 0xb0], eax
jmp 0x101725fa
mov dword [ebp - 0xb0], 1
mov eax, dword [ebp - 0xb0]
cdq
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x12c], edx
mov ecx, dword [ebp - 0x64]
cmp ecx, dword [ebp - 0x12c]
jl 0x1017262a
jg 0x10172625
mov edx, dword [ebp - 0x68]
cmp edx, dword [ebp - 0x130]
jb 0x1017262a
jmp 0x10172b3f
cmp dword [ebp - 0x80], 0
jne 0x10172635
jmp 0x10172b3f
cmp dword [ebp - 0x2c], 0
je 0x10172674
mov eax, dword [ebp - 0x4c]
and eax, 2
jne 0x10172674
mov ecx, dword [ebp - 0x3c]
cmp ecx, dword [ebp - 0x5c]
jb 0x10172674
mov edx, dword [ebp - 0x24]
movzx eax, byte [edx + 0x60]
test eax, eax
jne 0x10172674
cmp dword [ebp - 0x74], 0
jne 0x10172674
mov ecx, dword [ebp - 0x5c]
push ecx
mov edx, dword [ebp - 0x30]
push edx
lea eax, [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.1017d3a0
add esp, 0x10
mov edx, dword [ebp + 8]
movsx eax, word [edx + 0xa]
and eax, 0x20
je 0x10172685
jmp 0x10172b3f
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0xd0]
and edx, 0x10000000
je 0x1017269b
jmp 0x10172b3f
cmp dword [ebp - 0x30], 1
jne 0x101726b7
mov eax, dword [ebp - 0x28]
add eax, 0x294
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x30], 0
cmp dword [ebp - 0x44], 0
jne 0x101726d1
mov ecx, dword [ebp + 8]
add ecx, 0x58
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 0x44], 1
mov edx, dword [ebp - 0x68]
or edx, dword [ebp - 0x64]
je 0x1017271a
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0x20], 0
jne 0x1017271a
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0xc8]
and edx, 8
mov eax, dword [ecx + 0xcc]
and eax, 0
mov dword [ebp - 0x138], edx
mov dword [ebp - 0x134], eax
cmp dword [ebp - 0x138], 8
jne 0x1017271a
cmp dword [ebp - 0x134], 0
jne 0x1017271a
jmp 0x10172b3f
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x24]
mov eax, dword [ecx + 0x88]
cmp eax, dword [edx + 0x24]
ja 0x10172752
mov ecx, dword [ebp + 8]
add ecx, 0x54
push ecx
call fcn.10140f40
add esp, 4
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
je 0x10172748
jmp 0x10172b75
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x24], 0
cmp dword [ebp - 0x44], 0
je 0x1017276c
mov eax, dword [ebp + 8]
add eax, 0x58
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x44], 0
mov ecx, dword [ebp - 0x24]
cmp dword [ecx + 0x20], 0
jne 0x10172842
mov edx, dword [ebp - 0x24]
movzx eax, byte [edx + 0x61]
cmp eax, 1
jne 0x10172817
mov ecx, dword [ebp - 0x34]
or ecx, 8
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x24]
movzx eax, byte [edx + 0x62]
test eax, eax
je 0x101727de
mov ecx, dword [ebp - 0x24]
movzx edx, byte [ecx + 0x60]
test edx, edx
jne 0x101727d1
mov eax, dword [ebp - 0x24]
movzx ecx, word [eax + 0x5e]
and ecx, 0x100
jne 0x101727d1
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x40]
mov ecx, dword [ebp - 0x24]
movzx edx, word [ecx]
imul ecx, edx, 0x18
mov edx, dword [eax + 0x218]
mov byte [edx + ecx + 0x16], 0
mov eax, dword [ebp - 0x34]
or eax, 0x100
mov dword [ebp - 0x34], eax
jmp 0x10172812
mov ecx, dword [ebp - 0x24]
movzx edx, byte [ecx + 0x60]
test edx, edx
jne 0x10172812
mov eax, dword [ebp - 0x24]
movzx ecx, word [eax + 0x5e]
and ecx, 0x100
jne 0x10172812
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x40]
mov ecx, dword [ebp - 0x24]
movzx edx, word [ecx]
imul ecx, edx, 0x18
mov edx, dword [eax + 0x218]
mov byte [edx + ecx + 0x16], 0
jmp 0x10172381
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x88]
cmp ecx, dword [ebp - 0x70]
jbe 0x1017283b
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x24], ecx
mov dword [ebp - 0x70], 0
jmp 0x10172674
mov edx, dword [ebp - 0x24]
cmp dword [edx + 0x34], 0
jne 0x101728af
mov eax, dword [ebp - 0x28]
add eax, 0x294
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 0x24]
cmp dword [ecx + 0x20], 0
jbe 0x1017289f
mov edx, dword [ebp - 0x24]
cmp dword [edx + 0x34], 0
jne 0x1017289f
mov eax, dword [ebp - 0x34]
or eax, 8
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
or ecx, 0x100
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x20], 0
mov eax, dword [ebp - 0x28]
add eax, 0x294
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10172381
mov ecx, dword [ebp - 0x28]
add ecx, 0x294
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10171dd5
mov dword [ebp - 0x94], 0
mov edx, dword [ebp - 0x24]
movzx eax, byte [edx + 0x61]
test eax, eax
je 0x101728d7
mov ecx, dword [ebp - 0x24]
cmp dword [ecx + 0x44], 0
jne 0x101728f4
cmp dword [ebp - 0x30], 0
jne 0x101728f4
mov edx, dword [ebp - 0x28]
add edx, 0x294
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 0x30], 1
mov eax, dword [ebp - 0x24]
movzx ecx, byte [eax + 0x61]
test ecx, ecx
je 0x10172945
mov edx, dword [ebp - 0x34]
or edx, 8
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x24]
movzx ecx, byte [eax + 0x60]
test ecx, ecx
jne 0x10172945
mov edx, dword [ebp - 0x24]
cmp dword [edx + 0x40], 0
je 0x10172945
mov eax, dword [ebp - 0x24]
movzx ecx, word [eax + 0x5e]
and ecx, 0x100
jne 0x10172945
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x40]
mov ecx, dword [ebp - 0x24]
movzx edx, word [ecx]
imul ecx, edx, 0x18
mov edx, dword [eax + 0x218]
mov byte [edx + ecx + 0x16], 0
mov eax, dword [ebp - 0x24]
movzx ecx, word [eax + 0x5e]
and ecx, 0x100
je 0x10172960
mov edx, dword [ebp - 0x34]
or edx, 0x2000
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x20]
xor edx, edx
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x34]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x34]
mov dword [ebp - 0x38], edx
cmp dword [ebp - 0x38], 0
je 0x10172b14
mov eax, dword [0x104060b8]
and eax, 0x10000
je 0x101729da
mov ecx, dword [ebp - 0x24]
movzx edx, byte [ecx + 0x60]
test edx, edx
je 0x101729b2
mov dword [ebp - 0xb4], 0
jmp 0x101729bb
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0xb4], eax
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + 0xc]
push edx
push 0x36
mov eax, dword [ebp - 0xb4]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x54
push ecx
call fcn.1017a5c0
add esp, 0x10
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 0xc]
neg eax
mov ecx, dword [ebp + 8]
add ecx, 0x88
lock xadd dword [ecx], eax
mov dword [ebp - 0xfc], eax
cmp dword [ebp - 0xfc], 0
jge 0x10172a0b
mov edx, dword [ebp + 8]
mov dword [edx + 0x88], 0
mov eax, 0xffffff00
mov ecx, dword [ebp + 8]
add ecx, 0x90
lock xadd dword [ecx], eax
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0
jge 0x10172a39
mov edx, dword [ebp + 8]
mov dword [edx + 0x90], 0
mov eax, dword [ebp - 0x24]
movzx ecx, byte [eax + 0x60]
test ecx, ecx
jne 0x10172aa9
cmp dword [ebp - 0x2c], 0
je 0x10172aa9
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 0xc]
neg eax
mov ecx, dword [ebp - 0x2c]
add ecx, 0x35c
lock xadd dword [ecx], eax
mov dword [ebp - 0xdc], eax
cmp dword [ebp - 0xdc], 0
jge 0x10172a7b
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x35c], 0
mov eax, 0xffffff00
mov ecx, dword [ebp - 0x2c]
add ecx, 0x364
lock xadd dword [ecx], eax
mov dword [ebp - 0xe0], eax
cmp dword [ebp - 0xe0], 0
jge 0x10172aa9
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x364], 0
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x3c]
add ecx, dword [eax + 0xc]
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x3c]
add edx, 0x100
mov dword [ebp - 0x3c], edx
mov eax, dword [0x104060b8]
and eax, 0x10000
je 0x10172b07
mov ecx, dword [ebp - 0x24]
movzx edx, byte [ecx + 0x60]
test edx, edx
je 0x10172ae4
mov dword [ebp - 0xb8], 0
jmp 0x10172aed
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0xb8], eax
push 0
push 0x37
mov ecx, dword [ebp - 0xb8]
push ecx
mov edx, dword [ebp + 8]
add edx, 0x54
push edx
call fcn.1017a5c0
add esp, 0x10
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
mov dword [ebp - 0x38], ecx
jmp 0x10172985
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x38], 0
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x34], 0
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x20], 0
mov edx, dword [ebp - 0x34]
and edx, 8
je 0x10172b3f
jmp 0x10172381
cmp dword [ebp - 0x30], 1
jne 0x10172b5b
mov eax, dword [ebp - 0x28]
add eax, 0x294
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x30], 0
cmp dword [ebp - 0x44], 0
jne 0x10172b75
mov ecx, dword [ebp + 8]
add ecx, 0x58
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 0x44], 1
cmp dword [ebp - 0x44], 0
je 0x10172b8f
mov edx, dword [ebp + 8]
add edx, 0x58
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x44], 0
cmp dword [ebp - 0x2c], 0
je 0x10172bd4
mov eax, dword [ebp - 0x4c]
and eax, 2
jne 0x10172bd4
mov ecx, dword [ebp - 0x3c]
cmp ecx, dword [ebp - 0x5c]
jb 0x10172bd4
cmp dword [ebp - 0x24], 0
je 0x10172bd4
mov edx, dword [ebp - 0x24]
movzx eax, byte [edx + 0x60]
test eax, eax
jne 0x10172bd4
cmp dword [ebp - 0x74], 0
jne 0x10172bd4
mov ecx, dword [ebp - 0x5c]
push ecx
mov edx, dword [ebp - 0x30]
push edx
lea eax, [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.1017d3a0
add esp, 0x10
cmp dword [ebp + 0x1c], 0
je 0x10172be2
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp - 0x34]
mov dword [edx], eax
mov ecx, dword [ebp - 0x34]
and ecx, 8
jne 0x10172c85
mov edx, dword [ebp - 0x4c]
and edx, 2
jne 0x10172c85
cmp dword [ebp + 0x20], 0
je 0x10172c85
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0xc8]
and ecx, 2
mov edx, dword [eax + 0xcc]
and edx, 0
mov dword [ebp - 0x140], ecx
mov dword [ebp - 0x13c], edx
cmp dword [ebp - 0x140], 2
jne 0x10172c37
cmp dword [ebp - 0x13c], 0
je 0x10172c70
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0xc8]
and ecx, 0x10000000
mov edx, dword [eax + 0xcc]
and edx, 0
mov dword [ebp - 0x148], ecx
mov dword [ebp - 0x144], edx
cmp dword [ebp - 0x148], 0x10000000
jne 0x10172c85
cmp dword [ebp - 0x144], 0
jne 0x10172c85
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0xe4], eax
xor ecx, ecx
mov edx, dword [ebp - 0xe4]
mov word [edx + 0x20], cx
cmp dword [ebp - 0x30], 1
jne 0x10172c9a
mov eax, dword [ebp - 0x28]
add eax, 0x294
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0x44], 0
je 0x10172cad
mov ecx, dword [ebp + 8]
add ecx, 0x58
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0x84], 0
je 0x10172cdd
cmp dword [ebp - 0x2c], 0
jne 0x10172cc1
jmp 0x10172da9
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x3c]
mov dword [edx + 0x568], eax
or ecx, 0xffffffff
mov edx, dword [ebp - 0x2c]
add edx, 0x464
lock xadd dword [edx], ecx
mov eax, dword [0x104060b8]
and eax, 0x1000
je 0x10172da9
cmp dword [ebp - 0x2c], 0
je 0x10172d53
cmp dword [ebp + 0xc], 0
je 0x10172d16
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x7c]
sub edx, dword [ecx + 0x10]
mov eax, dword [ebp - 0x78]
sbb eax, dword [ecx + 0x14]
mov dword [ebp - 0xd0], edx
mov dword [ebp - 0xcc], eax
jmp 0x10172d28
mov ecx, dword [ebp - 0x7c]
mov edx, dword [ebp - 0x78]
mov dword [ebp - 0xd0], ecx
mov dword [ebp - 0xcc], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x88]
push ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x34c]
push eax
mov ecx, dword [ebp - 0xd0]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
push 0x56
call fcn.1017a580
add esp, 0x14
jmp 0x10172da9
cmp dword [ebp + 0xc], 0
je 0x10172d76
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x7c]
sub ecx, dword [eax + 0x10]
mov edx, dword [ebp - 0x78]
sbb edx, dword [eax + 0x14]
mov dword [ebp - 0xd8], ecx
mov dword [ebp - 0xd4], edx
jmp 0x10172d88
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x78]
mov dword [ebp - 0xd8], eax
mov dword [ebp - 0xd4], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x88]
push eax
push 0
mov ecx, dword [ebp - 0xd8]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
push 0x56
call fcn.1017a580
add esp, 0x14
cmp dword [ebp - 0x94], 0
je 0x10172e29
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0xd0]
and ecx, 0x800000
je 0x10172ddc
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0xd0]
or eax, 0x2000000
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 0xd0], eax
jmp 0x10172e25
mov edx, dword [ebp + 8]
add edx, 0x58
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
movsx ecx, word [eax + 0xa4]
and ecx, 0x1bc
je 0x10172e10
mov edx, dword [ebp + 8]
add edx, 0x54
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.10140d20
add esp, 8
jmp 0x10172e1d
mov ecx, dword [ebp + 8]
add ecx, 0x58
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor edx, edx
jne 0x10172de9
xor eax, eax
jne 0x10172ddc
xor ecx, ecx
jne 0x10172db2
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10314cf5
mov esp, ebp
pop ebp
ret