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

Disassembly:
sub esp, 0x460
mov eax, dword [0x526f30]
push ebp
mov ebp, dword [esp + 0x470]
push esi
mov esi, dword [esp + 0x46c]
push edi
mov edi, 1
push eax
mov dword [esp + 0xd0], edi
call sub.WIN32K.SYS_EngAcquireSemaphore
mov dword [ebp + 0x2c], edi
test byte [0x520d98], 1
jne 0x2ef1b
push esi
call fcn.0002e8c0
cmp eax, edi
mov dword [ebp + 0x2c], eax
jne 0x31f5d
mov eax, dword [esp + 0x474]
add eax, 0xf8ffffff
cmp eax, 0x45
push ebx
ja case.0x2ef31.117440518
jmp dword [eax*4 + 0x31f7c]
xor esi, esi
mov dword [ebp + 0x30], esi
cmp byte [0x526f28], 0
jbe case.default.0x31752
mov edx, 0x5213a8
nop
xor eax, eax
cmp byte [edx], al
jbe 0x2ef7a
lea ecx, [edx - 0x600]
lea esp, [esp]
mov edi, dword [ebp + 0x30]
mov ebx, dword [ecx]
mov dword [ebp + edi*4 + 0x34], ebx
add dword [ebp + 0x30], 1
movzx edi, byte [edx]
add eax, 1
add ecx, 0x30
cmp eax, edi
jb 0x2ef60
movzx ecx, byte [0x526f28]
add esi, 1
add edx, 0x618
cmp esi, ecx
jb 0x2ef50
jmp case.default.0x31752
xor eax, eax
mov dword [ebp + 0x30], eax
cmp byte [0x526f28], al
jbe case.default.0x31752
mov ecx, 0x5213ac
lea esp, [esp]
mov edx, dword [ebp + 0x30]
mov esi, dword [ecx]
mov dword [ebp + edx*4 + 0x34], esi
add dword [ebp + 0x30], edi
movzx edx, byte [0x526f28]
add eax, edi
add ecx, 0x618
cmp eax, edx
jb 0x2efb0
jmp case.default.0x31752
mov edi, dword [ebp + 0x30]
xor eax, eax
mov ecx, edi
mov dword [ebp + 0x34], eax
movzx edx, word [0x520da2]
shr ecx, 8
and ecx, 0xffff
cmp ecx, edx
jae 0x2effe
mov dword [ebp + 0x2c], 0xffffffec
jmp case.default.0x31752
mov dword [esp + 0x14], eax
mov dword [esp + 0x44], eax
jmp 0x2f010
movzx ecx, byte [0x526f28]
cmp dword [esp + 0x14], ecx
jae 0x2f069
xor edx, edx
test eax, eax
jne 0x2f04a
mov esi, dword [esp + 0x44]
movzx ebx, byte [esi + 0x5213a8]
lea esi, [esi + 0x520da8]
mov ecx, esi
cmp edx, ebx
jae 0x2f04a
cmp dword [ecx], edi
jne 0x2f040
mov eax, esi
add edx, 1
add ecx, 0x30
test eax, eax
je 0x2f036
add dword [esp + 0x14], 1
add dword [esp + 0x44], 0x618
test eax, eax
je 0x2f010
mov eax, dword [eax + 0x604]
mov dword [ebp + 0x34], eax
jmp case.default.0x31752
test eax, eax
je 0x2fffd
mov eax, dword [eax + 0x604]
mov dword [ebp + 0x34], eax
jmp case.default.0x31752
mov esi, dword [ebp + 0x30]
xor edx, edx
mov ecx, esi
mov dword [ebp + 0x34], edx
movzx edi, word [0x520da2]
shr ecx, 8
and ecx, 0xffff
xor eax, eax
cmp ecx, edi
jb 0x2eff2
movzx ebx, byte [0x526f28]
mov ecx, 0x520da8
mov edi, 1
cmp edx, ebx
jae 0x2f0d0
cmp dword [ecx + 0x604], esi
jne 0x2f0c2
mov eax, ecx
add edx, edi
add ecx, 0x618
test eax, eax
je 0x2f0b4
jmp 0x2f0d4
test eax, eax
je 0x2f105
xor ecx, ecx
cmp byte [eax + 0x600], cl
jbe case.default.0x31752
mov edx, eax
mov esi, dword [ebp + 0x34]
mov ebx, dword [edx]
mov dword [ebp + esi*4 + 0x38], ebx
add dword [ebp + 0x34], edi
movzx esi, byte [eax + 0x600]
add ecx, edi
add edx, 0x30
cmp ecx, esi
jb 0x2f0e4
jmp case.default.0x31752
mov dword [ebp + 0x2c], 0xffffffeb
jmp case.default.0x31752
mov esi, dword [esi + 0xa8]
xor ecx, ecx
or ebx, 0xffffffff
test esi, esi
je 0x2f128
and esi, 0xff
mov ebx, esi
mov dword [ebp + 0x30], 0
movzx esi, byte [0x526f28]
xor edx, edx
mov eax, 0x520da8
lea ecx, [ecx]
cmp edx, esi
jae 0x2f175
cmp ebx, 0xffffffff
je 0x2f15b
mov edi, dword [eax + 0x608]
and edi, 0xff
cmp edi, ebx
jne 0x2f15b
mov ecx, eax
add edx, 1
add eax, 0x618
test ecx, ecx
je 0x2f140
mov edx, dword [ecx + 0x604]
mov dword [ebp + 0x30], edx
jmp case.default.0x31752
test ecx, ecx
je 0x2f105
mov edx, dword [ecx + 0x604]
mov dword [ebp + 0x30], edx
jmp case.default.0x31752
movzx edx, word [0x520da2]
xor eax, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x30]
mov ecx, eax
shr ecx, 8
xor edi, edi
and ecx, 0xffff
cmp ecx, edx
mov dword [esp + 0x30], edi
mov dword [esp + 0x14], edi
jb 0x2eff2
lea ecx, [esp + 0x14]
push ecx
push edi
push eax
call fcn.0002ebd0
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x2fffd
mov ecx, dword [esi + 8]
push 0xc
lea edx, [esp + 0x34]
push edx
push ecx
mov ecx, dword [eax + 4]
mov eax, dword [0x520d9c]
mov edx, 0x17000001
call fcn.000353e0
add esp, 0xc
test eax, eax
jne 0x2f828
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov dword [ebp + 0x34], edx
mov dword [ebp + 0x38], eax
mov dword [ebp + 0x3c], ecx
jmp case.default.0x31752
mov eax, dword [ebp + 0x30]
xor edx, edx
mov dword [esp + 0x34], edx
mov ecx, eax
mov dword [esp + 0x38], edx
movzx edx, word [0x520da2]
shr ecx, 8
xor edi, edi
and ecx, 0xffff
cmp ecx, edx
mov dword [esp + 0x30], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x14], edi
jb 0x2eff2
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x48]
push edx
push eax
call fcn.0002ebd0
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x2fffd
movzx eax, byte [eax + 5]
mov edx, dword [esi + 8]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x44]
push 0xc
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [eax + 0x60c]
mov eax, dword [0x520d9c]
push edx
mov edx, 0x1000040
call fcn.000353e0
add esp, 0xc
test eax, eax
jne 0x2f828
mov ecx, dword [esp + 0x34]
mov dword [ebp + 0x34], ecx
jmp case.default.0x31752
xor eax, eax
mov dword [esp + 0x54], eax
xor edx, edx
mov dword [esp + 0x58], eax
mov eax, dword [ebp + 0x30]
mov dword [esp + 0x34], edx
mov ecx, eax
xor edi, edi
mov dword [esp + 0x38], edx
movzx edx, word [0x520da2]
shr ecx, 8
and ecx, 0xffff
cmp ecx, edx
mov dword [esp + 0x30], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x44], edi
jb 0x2eff2
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x18]
push edx
push eax
call fcn.0002ebd0
mov ebx, dword [esp + 0x14]
cmp ebx, edi
je 0x2fffd
mov eax, 1
cmp dword [ebp + 0x38], eax
jne 0x2f312
mov dword [ebp + 0x34], edi
cmp dword [ebp + 0x34], eax
jne 0x2f325
mov eax, dword [esi + 0xb78]
mov dword [ebp + 0x3c], eax
jmp case.default.0x31752
mov edi, dword [esp + 0x44]
movzx ecx, byte [edi + 5]
mov eax, dword [esi + 8]
push 0xc
lea edx, [esp + 0x54]
push edx
mov dword [esp + 0x58], ecx
mov ecx, dword [ebx + 0x60c]
push eax
mov eax, dword [0x520d9c]
mov edx, 0x1000040
call fcn.000353e0
add esp, 0xc
test eax, eax
jne 0x2f828
movzx ecx, byte [edi + 5]
mov edx, dword [esp + 0x54]
mov dword [esp + 0x30], ecx
mov ecx, dword [esi + 8]
push 0xc
lea eax, [esp + 0x34]
push eax
mov eax, dword [0x520d9c]
mov dword [esp + 0x40], edx
push ecx
mov ecx, dword [ebx + 0x60c]
mov edx, 0x1000042
call fcn.000353e0
add esp, 0xc
test eax, eax
jne 0x2f828
mov edx, dword [esp + 0x38]
mov dword [ebp + 0x3c], edx
jmp case.default.0x31752
movzx edx, word [0x520da2]
xor eax, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x30]
mov ecx, eax
shr ecx, 8
xor ebx, ebx
and ecx, 0xffff
cmp ecx, edx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x44], ebx
jb 0x2eff2
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x18]
push edx
push eax
call fcn.0002ebd0
mov edi, dword [esp + 0x14]
cmp edi, ebx
je 0x2fffd
mov ebx, dword [esp + 0x44]
movzx eax, byte [ebx + 5]
mov edx, dword [esi + 8]
push 0xc
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x38], eax
mov ecx, dword [edi + 0x60c]
mov eax, dword [0x520d9c]
push edx
mov edx, 0x1000044
call fcn.000353e0
add esp, 0xc
test eax, eax
je 0x2f430
mov dword [ebp + 0x2c], 0xffffffed
jmp 0x2f437
mov eax, dword [esp + 0x34]
mov dword [ebp + 0x34], eax
cmp dword [edi + 0x610], 0
jne 0x2f44c
mov dword [ebp + 0x38], 0x10000
jmp case.default.0x31752
xor ecx, ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x2c], ecx
movzx edx, byte [ebx + 5]
mov ecx, dword [esi + 8]
push 0x14
lea eax, [esp + 0x20]
push eax
mov eax, dword [0x520d9c]
mov dword [esp + 0x24], edx
push ecx
mov ecx, dword [edi + 0x610]
mov edx, 0x1000043
call fcn.000353e0
add esp, 0xc
test eax, eax
jne 0x2f828
mov edx, dword [esp + 0x2c]
mov dword [ebp + 0x38], edx
jmp case.default.0x31752
mov eax, dword [ebp + 0x30]
movzx edx, word [0x520da2]
mov ecx, eax
shr ecx, 8
xor esi, esi
and ecx, 0xffff
cmp ecx, edx
mov dword [esp + 0x14], esi
mov dword [esp + 0x44], esi
jb 0x2eff2
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x18]
push edx
push eax
call fcn.0002ebd0
cmp dword [esp + 0x14], esi
je 0x2fffd
mov eax, dword [esp + 0x44]
mov ecx, dword [eax + 0xc]
mov dword [ebp + 0x34], ecx
jmp case.default.0x31752
mov eax, dword [ebp + 0x30]
xor edi, edi
xor edx, edx
mov dword [esp + 0x34], edx
mov ecx, eax
mov dword [esp + 0x38], edx
mov dword [ebp + 0x34], edi
movzx edx, word [0x520da2]
shr ecx, 8
and ecx, 0xffff
cmp ecx, edx
mov dword [esp + 0x44], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x30], edi
jb 0x2eff2
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x48]
push edx
push eax
call fcn.0002ebd0
mov ebx, dword [esp + 0x44]
cmp ebx, edi
je 0x2fffd
mov eax, dword [esp + 0x14]
movzx ecx, byte [eax + 5]
mov eax, dword [esi + 8]
push 0xc
lea edx, [esp + 0x34]
push edx
mov dword [esp + 0x38], ecx
mov ecx, dword [ebx + 0x60c]
push eax
mov eax, dword [0x520d9c]
mov edx, 0x1000002
call fcn.000353e0
add esp, 0xc
test eax, eax
jne 0x2f828
cmp dword [esp + 0x38], eax
jbe case.default.0x31752
lea ebx, [ebx]
mov edx, dword [esp + 0x14]
xor ecx, ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x28], ecx
movzx eax, byte [edx + 5]
mov edx, dword [esi + 8]
push 0x10
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x24], eax
mov eax, dword [0x520d9c]
mov dword [esp + 0x28], edi
mov ecx, dword [ebx + 0x60c]
push edx
mov edx, 0x1000046
call fcn.000353e0
add esp, 0xc
test eax, eax
je 0x2f5e6
mov dword [ebp + 0x2c], 0xffffffed
jmp 0x2f5ed
mov eax, dword [esp + 0x28]
or dword [ebp + 0x34], eax
add edi, 1
cmp edi, dword [esp + 0x38]
jb 0x2f590
jmp case.default.0x31752
mov eax, dword [ebp + 0x30]
xor ecx, ecx
mov dword [esp + 0x34], ecx
mov edx, eax
mov dword [esp + 0x38], ecx
movzx ecx, word [0x520da2]
shr edx, 8
xor edi, edi
and edx, 0xffff
cmp edx, ecx
mov dword [esp + 0x30], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x44], edi
jb 0x2eff2
lea edx, [esp + 0x44]
push edx
lea ecx, [esp + 0x18]
push ecx
push eax
call fcn.0002ebd0
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x2fffd
mov edx, dword [esp + 0x44]
movzx ecx, byte [edx + 5]
mov edx, dword [ebp + 0x34]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
mov edx, dword [esi + 8]
push 0xc
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [eax + 0x60c]
mov eax, dword [0x520d9c]
push edx
mov edx, 0x2000040
call fcn.000353e0
add esp, 0xc
test eax, eax
jne 0x2f828
mov eax, dword [esp + 0x38]
mov dword [ebp + 0x38], eax
jmp case.default.0x31752
mov eax, dword [ebp + 0x30]
xor ecx, ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
mov edx, eax
mov dword [esp + 0x2c], ecx
movzx ecx, word [0x520da2]
shr edx, 8
xor ebx, ebx
and edx, 0xffff
cmp edx, ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x44], ebx
jb 0x2eff2
lea edx, [esp + 0x44]
push edx
lea ecx, [esp + 0x18]
push ecx
push eax
call fcn.0002ebd0
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x2fffd
mov edx, dword [esp + 0x44]
movzx ecx, byte [edx + 5]
mov edx, dword [ebp + 0x34]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov edx, dword [esi + 8]
push 0x14
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [eax + 0x60c]
mov eax, dword [0x520d9c]
push edx
mov edx, 0x1000045
call fcn.000353e0
add esp, 0xc
test eax, eax
je 0x2f739
and dword [ebp + 0x38], 0xfffffffe
mov dword [ebp + 0x2c], 0xffffffed
jmp case.default.0x31752
xor eax, eax
cmp dword [esp + 0x20], ebx
setne al
xor eax, dword [ebp + 0x38]
and eax, 1
xor dword [ebp + 0x38], eax
jmp case.default.0x31752
mov eax, dword [ebp + 0x30]
xor ecx, ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov edx, eax
mov dword [esp + 0x28], ecx
movzx ecx, word [0x520da2]
shr edx, 8
xor ebx, ebx
and edx, 0xffff
cmp edx, ecx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], ebx
jb 0x2eff2
lea edx, [esp + 0x14]
push edx
push ebx
push eax
call fcn.0002ebd0
mov edi, dword [esp + 0x14]
cmp edi, ebx
je 0x2fffd
mov ecx, dword [esi + 8]
push 4
lea eax, [esp + 0x48]
push eax
mov eax, dword [0x520d9c]
push ecx
mov ecx, dword [edi + 4]
mov edx, 0x10000001
call fcn.000353e0
add esp, 0xc
test eax, eax
jne 0x2f828
lea eax, [ebp + 0x38]
cdq
mov dword [esp + 0x24], eax
xor eax, eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x20], eax
mov ecx, 1
lea esp, [esp]
test dword [esp + 0x44], ecx
je 0x2f7f9
lea edx, [eax + eax*4 + 0xf]
mov dword [ebp + edx*4], ecx
mov eax, dword [esp + 0x20]
add eax, 1
mov dword [esp + 0x20], eax
add ecx, ecx
jne 0x2f7e0
mov dword [ebp + 0x34], eax
mov ecx, dword [esi + 8]
push 0x10
lea eax, [esp + 0x20]
push eax
push ecx
mov ecx, dword [edi + 4]
mov edx, 0x10000002
mov eax, dword [0x520d9c]
call fcn.000353e0
add esp, 0xc
test eax, eax
je case.default.0x31752
mov dword [ebp + 0x2c], 0xffffffed
jmp case.default.0x31752
mov eax, dword [ebp + 0x30]
xor edx, edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], edx
mov ecx, eax
mov dword [esp + 0x28], edx
movzx edx, word [0x520da2]
shr ecx, 8
xor ebx, ebx
and ecx, 0xffff
cmp ecx, edx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], ebx
jb 0x2eff2
lea ecx, [esp + 0x14]
push ecx
push ebx
push eax
call fcn.0002ebd0
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
je 0x2fffd
lea eax, [ebp + 0x38]
cdq
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x34]
mov dword [esp + 0x28], edx
mov edx, eax
not eax
shr edx, 1
and eax, 1
and edx, 0xff
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
mov edx, dword [esi + 8]
mov ecx, dword [ecx + 4]
push 0x10
lea eax, [esp + 0x20]
push eax
mov eax, dword [0x520d9c]
push edx
mov edx, 0x10000003
call fcn.000353e0
add esp, 0xc
test eax, eax
jne 0x2f828
test dword [ebp + 0x34], 0x1fe
jbe case.default.0x31752
lea ecx, [ebp + 0x44]
nop
cmp dword [ecx], ebx
je 0x2f828
mov edx, dword [ebp + 0x34]
shr edx, 1
add eax, 1
and edx, 0xff
add ecx, 0x14
cmp eax, edx
jb 0x2f8e0
jmp case.default.0x31752
mov eax, dword [ebp + 0x30]
movzx edx, word [0x520da2]
mov ecx, eax
shr ecx, 8
xor ebx, ebx
and ecx, 0xffff
cmp ecx, edx
mov dword [esp + 0x14], ebx
jb 0x2eff2
lea ecx, [esp + 0x14]
push ecx
push ebx
push eax
call fcn.0002ebd0
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
je 0x2fffd
xor edx, edx
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], edx
mov eax, 1
mov dword [esp + 0x5c], eax
mov dword [esp + 0x68], eax
mov eax, dword [ebp + 0x34]
mov dword [esp + 0x74], edx
mov dword [esp + 0x70], eax
mov dword [esp + 0x78], edx
lea eax, [ebp + 0x38]
cdq
mov dword [esp + 0x78], edx
mov dword [esp + 0x74], eax
mov eax, dword [esi + 8]
push 0x20
lea edx, [esp + 0x60]
push edx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], 0x2c
mov ecx, dword [ecx + 4]
push eax
mov eax, dword [0x520d9c]
mov edx, 0x5000111
call fcn.000353e0
add esp, 0xc
test eax, eax
jne 0x2f828
mov ecx, dword [esp + 0x6c]
mov dword [ebp + 0x668], ecx
jmp case.default.0x31752
mov eax, dword [ebp + 0x30]
movzx ecx, word [0x520da2]
mov edx, eax
shr edx, 8
xor ebx, ebx
and edx, 0xffff
cmp edx, ecx
mov dword [esp + 0x14], ebx
jb 0x2eff2
lea edx, [esp + 0x14]
push edx
push ebx
push eax
call fcn.0002ebd0
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
je 0x2fffd
mov edx, dword [ebp + 0x34]
xor eax, eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov eax, 1
mov dword [esp + 0x5c], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x70], edx
lea eax, [ebp + 0x38]
cdq
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], edx
mov edx, dword [esi + 8]
push 0x20
lea eax, [esp + 0x60]
push eax
mov eax, dword [0x520d9c]
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], 0x2c
mov ecx, dword [ecx + 4]
push edx
mov edx, 0x5001011
call fcn.000353e0
add esp, 0xc
test eax, eax
jne 0x2f828
mov eax, dword [esp + 0x6c]
mov dword [ebp + 0x458], eax
jmp case.default.0x31752
mov eax, dword [ebp + 0x30]
movzx edx, word [0x520da2]
mov ecx, eax
shr ecx, 8
and ecx, 0xffff
cmp ecx, edx
mov dword [esp + 0x14], 0
jb 0x2eff2
lea ecx, [esp + 0x14]
push ecx
push 0
push eax
call fcn.0002ebd0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x2fffd
mov edx, dword [ebp + 0x34]
mov ecx, dword [ebp + 0x38]
mov dword [esp + 0x5c], edx
mov edx, dword [ebp + 0x3c]
mov dword [esp + 0x60], ecx
mov ecx, dword [ebp + 0x40]
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], ecx
mov ecx, dword [ebp + 0x144]
lea edx, [ebp + 0x44]
mov dword [esp + 0x6c], edx
mov edx, dword [ebp + 0x148]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], edx
mov edx, dword [esi + 8]
push 0x20
lea ecx, [esp + 0x60]
push ecx
mov ecx, dword [eax + 4]
mov eax, dword [0x520d9c]
push edx
mov edx, 0x6000010
call fcn.000353e0
add esp, 0xc
test eax, eax
jne 0x2f828
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x5c]
mov dword [ebp + 0x14c], eax
mov dword [ebp + 0x34], ecx
jmp case.default.0x31752
mov eax, dword [ebp + 0x30]
movzx ecx, word [0x520da2]
mov edx, eax
shr edx, 8
xor edi, edi
and edx, 0xffff
cmp edx, ecx
mov dword [esp + 0x44], edi
mov dword [esp + 0x14], edi
jb 0x2eff2
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x48]
push ecx
push eax
call fcn.0002ebd0
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x2fffd
movzx edx, byte [eax + 5]
mov eax, dword [ebp + 0x34]
mov dword [esp + 0x1c], edx
mov edx, dword [esi + 8]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x44]
push 0x10
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [eax + 0x60c]
mov eax, dword [0x520d9c]
push edx
mov edx, 0x2000011
call fcn.000353e0
add esp, 0xc
test eax, eax
jne 0x2f828
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov dword [ebp + 0x38], ecx
mov dword [ebp + 0x3c], edx
jmp case.default.0x31752
mov edx, dword [esi + 8]
xor eax, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
push 0x10
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x44], eax
mov eax, dword [0x520d9c]
push edx
xor ebx, ebx
mov edx, 0x2000010
mov ecx, eax
mov dword [esp + 0x3c], ebx
call fcn.000353e0
add esp, 0xc
test eax, eax
jne 0x2f828
mov eax, dword [esp + 0x34]
cmp eax, ebx
mov dword [ebp + 0x30], eax
je 0x2fd49
lea ecx, [eax + eax*2]
add ecx, ecx
add ecx, ecx
sub ecx, eax
add ecx, ecx
push 0x4950414e
add ecx, ecx
push ecx
push 1
call sub.WIN32K.SYS_EngAllocMem
cdq
mov dword [esp + 0x38], eax
or eax, edx
mov dword [esp + 0x3c], edx
je 0x2f828
mov eax, dword [esi + 8]
push 0x10
lea edx, [esp + 0x34]
push edx
push eax
mov eax, dword [0x520d9c]
mov edx, 0x2000010
mov ecx, eax
call fcn.000353e0
add esp, 0xc
test eax, eax
je 0x2fc6f
mov ecx, dword [esp + 0x38]
push ecx
mov dword [ebp + 0x2c], 0xffffffed
call sub.WIN32K.SYS_EngFreeMem
jmp case.default.0x31752
mov eax, 0x40
cmp dword [ebp + 0x30], eax
jbe 0x2fc7c
mov dword [ebp + 0x30], eax
cmp dword [ebp + 0x30], ebx
mov dword [esp + 0x14], ebx
jbe 0x2fd3a
mov ebx, dword [esp + 0x38]
lea edx, [ebp + 0x98]
add ebx, 8
mov dword [esp + 0x44], edx
lea ebx, [ebx]
mov eax, dword [ebx]
mov ecx, dword [esp + 0x44]
mov dword [ecx - 0x64], eax
mov edx, dword [ebx - 4]
mov dword [ecx], edx
xor edx, edx
cmp dword [ebx], edx
jbe 0x2fcd1
lea eax, [ebx + 4]
add ecx, 0xffffffa0
lea ebx, [ebx]
mov esi, dword [eax]
mov dword [ecx], esi
add edx, 1
add eax, 4
add ecx, 0xc
cmp edx, dword [ebx]
jb 0x2fcc0
lea esi, [ebx - 8]
mov ecx, 0xb
lea edi, [esp + 0x5c]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x474]
mov edx, dword [ecx + 8]
push 0x30
lea eax, [esp + 0x60]
push eax
mov eax, dword [0x520d9c]
push edx
mov edx, 0x2000011
mov ecx, eax
call fcn.000353e0
add esp, 0xc
test eax, eax
jne 0x2fd1e
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x5c]
mov dword [eax + 0xc], ecx
mov dword [eax + 8], edx
mov eax, dword [esp + 0x14]
add dword [esp + 0x44], 0x74
add eax, 1
add ebx, 0x2c
cmp eax, dword [ebp + 0x30]
mov dword [esp + 0x14], eax
jb 0x2fca0
mov eax, dword [esp + 0x38]
push eax
call sub.WIN32K.SYS_EngFreeMem
jmp case.default.0x31752
mov ecx, dword [esp + 0x30]
mov dword [ebp + 0x7434], ecx
jmp case.default.0x31752
xor ebx, ebx
cmp dword [ebp + 0x30], ebx
mov dword [esp + 0x44], 0xffffffff
mov dword [esp + 0x14], ebx
jbe 0x2fef3
nop
xor edx, edx
xor eax, eax
mov word [esp + 0xd4], dx
mov ecx, 0x1f
lea edi, [esp + 0xd6]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [esp + 0x1d4], dx
mov ecx, 0x1f
lea edi, [esp + 0x1d6]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov word [esp + 0x254], dx
xor eax, eax
mov ecx, 0x7f
lea edi, [esp + 0x256]
rep stosd dword es:[edi], eax
push ebx
lea edx, [esp + 0xd8]
push 0x2ee30
push edx
stosw word es:[edi], ax
call fcn.003f3712
lea eax, [esp + 0x260]
push 0x2ee40
push eax
call fcn.003f36f6
lea ecx, [esp + 0x1e8]
push 0x2eebc
push ecx
call fcn.003f36f6
mov edx, ebx
shl edx, 4
sub edx, ebx
add edx, edx
sub edx, ebx
add esp, 0x1c
test ebx, ebx
lea esi, [ebp + edx*4 + 0x34]
mov ecx, 0x1d
lea edi, [esp + 0x5c]
rep movsd dword es:[edi], dword [esi]
jne 0x2fe7f
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
lea eax, [ebp + 0x30]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x478]
push 4
lea ecx, [esp + 0x25c]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x4c]
push ecx
mov ecx, dword [eax + 8]
lea edx, [esp + 0x1e0]
push 0x14
mov dword [esp + 0x30], edx
lea edx, [esp + 0x2c]
push edx
push 0x233048
push ecx
mov dword [esp + 0x40], 3
mov dword [esp + 0x48], 4
call sub.WIN32K.SYS_EngDeviceIoControl
xor edx, edx
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], edx
lea eax, [esp + 0x254]
mov dword [esp + 0x30], eax
mov dword [esp + 0x3c], edx
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x478]
push 4
lea ecx, [esp + 0xdc]
mov dword [esp + 0x48], edx
mov dword [esp + 0x3c], ecx
lea ecx, [esp + 0x4c]
push ecx
mov ecx, dword [eax + 8]
lea edx, [esp + 0x68]
push 0x14
mov dword [esp + 0x4c], edx
lea edx, [esp + 0x40]
push edx
push 0x233048
push ecx
mov dword [esp + 0x54], 3
mov dword [esp + 0x5c], 0x74
call sub.WIN32K.SYS_EngDeviceIoControl
add ebx, 1
cmp ebx, dword [ebp + 0x30]
jb 0x2fd70
mov edx, dword [esp + 0x474]
push edx
call fcn.0002ed90
jmp case.default.0x31752
cmp dword [ebp + 0x30], 0
mov dword [esp + 0x14], 0
jbe case.default.0x31752
lea ebx, [ebp + 0x98]
lea ecx, [ecx]
xor eax, eax
mov ecx, 0xb
lea edi, [esp + 0x60]
mov dword [esp + 0x5c], 0
rep stosd dword es:[edi], eax
mov eax, dword [ebx]
mov ecx, dword [ebx - 0x64]
mov dword [esp + 0x60], eax
xor eax, eax
test ecx, ecx
mov dword [esp + 0x64], ecx
jbe 0x2ff62
lea ecx, [ebx - 0x60]
jmp 0x2ff50
mov edx, dword [ecx]
mov dword [esp + eax*4 + 0x68], edx
add eax, 1
add ecx, 0xc
cmp eax, dword [esp + 0x64]
jb 0x2ff50
mov ecx, dword [esi + 8]
push 0x30
lea eax, [esp + 0x60]
push eax
mov eax, dword [0x520d9c]
push ecx
mov edx, 0x2000011
mov ecx, eax
call fcn.000353e0
add esp, 0xc
test eax, eax
jne 0x2ff96
mov edx, dword [esp + 0x88]
mov eax, dword [esp + 0x5c]
mov dword [ebx + 0xc], edx
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x14]
add eax, 1
add ebx, 0x74
cmp eax, dword [ebp + 0x30]
mov dword [esp + 0x14], eax
jb 0x2ff20
jmp case.default.0x31752
mov edx, dword [esi + 8]
mov eax, dword [0x520d9c]
push 0x58
lea ecx, [ebp + 0x30]
push ecx
push edx
mov edx, 0x1000002
mov ecx, eax
jmp 0x2f818
mov ecx, dword [esi + 8]
push 0x44
lea eax, [ebp + 0x30]
push eax
mov eax, dword [0x520d9c]
push ecx
mov edx, 0x1000004
mov ecx, eax
jmp 0x2f818
mov edx, dword [ebp + 0x30]
push edx
call fcn.0002ec90
cmp eax, 0xffffffff
mov dword [ebp + 0x34], eax
jne case.default.0x31752
mov dword [ebp + 0x2c], 0xffffffee
jmp case.default.0x31752
mov eax, dword [ebp + 0x30]
push eax
call fcn.0002ed10
jmp 0x2fff1
mov eax, dword [ebp + 0x30]
movzx edx, word [0x520da2]
mov ecx, eax
shr ecx, 8
xor ebx, ebx
and ecx, 0xffff
cmp ecx, edx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x14], ebx
jb 0x2eff2
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x48]
push edx
push eax
call fcn.0002ebd0
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x2fffd
movzx eax, byte [eax + 5]
mov ecx, dword [ebp + 0x34]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], ecx
mov ecx, dword [esi + 8]
push 0x18
lea eax, [esp + 0x60]
push eax
mov eax, dword [esp + 0x4c]
lea edx, [ebp + 0x38]
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], pe_nt_image_headers32
mov dword [esp + 0x78], 1
push ecx
mov ecx, dword [eax + 0x60c]
mov eax, dword [0x520d9c]
mov edx, 0x2000041
call fcn.000353e0
add esp, 0xc
test eax, eax
jne 0x2f828
mov ecx, dword [esp + 0x6c]
mov dword [ebp + 0x138], ecx
jmp case.default.0x31752
mov eax, dword [ebp + 0x30]
movzx ecx, word [0x520da2]
mov edx, eax
shr edx, 8
xor edi, edi
and edx, 0xffff
cmp edx, ecx
mov dword [esp + 0x44], edi
mov dword [esp + 0x14], edi
jb 0x2eff2
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x48]
push ecx
push eax
call fcn.0002ebd0
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x2fffd
movzx edx, byte [eax + 5]
mov eax, dword [ebp + 0x34]
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 0x38]
cmp eax, edi
mov dword [esp + 0x5c], edx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x68], edi
jne 0x30122
mov dword [esp + 0x64], edi
jmp 0x30129
lea ecx, [ebp + 0x3c]
mov dword [esp + 0x64], ecx
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x44]
mov ecx, dword [ecx + 0x60c]
push 0x18
lea edx, [esp + 0x60]
push edx
push eax
mov eax, dword [0x520d9c]
mov edx, 0x2000042
call fcn.000353e0
add esp, 0xc
test eax, eax
jne 0x2f828
mov edx, dword [esp + 0x6c]
mov esi, dword [esp + 0x474]
mov dword [ebp + 0x13c], edx
call fcn.0002b730
jmp case.default.0x31752
mov eax, dword [ebp + 0x30]
movzx edx, word [0x520da2]
mov ecx, eax
shr ecx, 8
xor edi, edi
and ecx, 0xffff
cmp ecx, edx
mov dword [esp + 0x50], edi
jb 0x2eff2
lea ecx, [esp + 0x50]
push ecx
push edi
push eax
call fcn.0002ebd0
mov ebx, dword [esp + 0x50]
cmp ebx, edi
je 0x2fffd
mov ecx, dword [esi + 8]
xor edx, edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], edx
push 0x10
lea eax, [esp + 0x20]
push eax
mov eax, dword [0x520d9c]
mov dword [esp + 0x30], edx
mov dword [esp + 0x24], edi
push ecx
mov ecx, dword [ebx + 4]
mov edx, 0x20000001
call fcn.000353e0
add esp, 0xc
test eax, eax
jne 0x2f828
mov eax, dword [esp + 0x20]
cmp eax, 0xc
jbe 0x30201
mov eax, 0xc
mov dword [ebp + 0x2c], 0xfffffff1
mov dword [esp + 0x20], eax
mov ecx, dword [ebp + 0x34]
cmp ecx, 0xffffffff
je 0x30219
cmp ecx, eax
jbe 0x30219
mov dword [ebp + 0x2c], 0xfffffff4
jmp case.default.0x31752
cmp eax, edi
jne 0x30229
mov dword [ebp + 0x2c], 0xffffffe9
jmp case.default.0x31752
cmp ecx, 0xffffffff
mov ecx, eax
je 0x30235
mov ecx, 1
mov edx, dword [ebp + 0x38]
cmp edx, edi
mov dword [esp + 0x44], ecx
jne 0x3042b
mov edx, dword [esp + 0x1c]
mov dword [ebp + 0x24f8], edx
xor edx, edx
cmp ecx, edi
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], edx
mov dword [ebp + 0x24e8], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x6c], edx
mov dword [ebp + 0x24f4], eax
mov dword [esp + 0x5c], edi
mov dword [esp + 0x70], edx
jbe 0x30331
lea esi, [ebp + 0x2514]
mov ebx, ecx
jmp 0x30290
mov eax, dword [ebp + 0x34]
cmp eax, 0xffffffff
mov dword [esp + 0x5c], edi
je 0x302a0
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x6c], eax
lea eax, [esi - 4]
cdq
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], edx
mov eax, 1
mov ecx, esi
mov edx, 0x20
test dword [esp + 0x28], eax
je 0x302cb
mov dword [ecx], eax
add ecx, 0x18
add eax, eax
sub edx, 1
jne 0x302c0
mov edx, dword [esp + 0x474]
mov eax, dword [edx + 8]
push 0x18
lea ecx, [esp + 0x60]
push ecx
mov ecx, dword [esp + 0x58]
mov ecx, dword [ecx + 4]
push eax
mov eax, dword [0x520d9c]
mov edx, 0x20000002
call fcn.000353e0
add esp, 0xc
test eax, eax
jne 0x2f828
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x60]
mov dword [esi - 0x10], edx
mov dword [esi - 0xc], eax
add edi, 1
add esi, 0x30c
cmp edi, ebx
jb 0x30290
mov esi, dword [esp + 0x474]
mov ebx, dword [esp + 0x50]
xor edi, edi
mov edx, dword [esi + 8]
mov eax, dword [0x520d9c]
push 4
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x1c], 0xffffffff
mov ecx, dword [ebx + 4]
push edx
mov edx, 0x20000009
call fcn.000353e0
add esp, 0xc
test eax, eax
jne 0x2f828
mov eax, dword [esp + 0x14]
mov dword [ebp + 0x24ec], eax
mov edx, dword [esi + 8]
mov eax, dword [0x520d9c]
push 4
lea ecx, [esp + 0x48]
push ecx
mov dword [esp + 0x4c], edi
mov ecx, dword [ebx + 4]
push edx
mov edx, 0x20000020
call fcn.000353e0
add esp, 0xc
test eax, eax
jne 0x2f828
mov eax, dword [esp + 0x44]
mov dword [ebp + 0x24fc], eax
mov edx, dword [esi + 8]
mov eax, dword [0x520d9c]
push 4
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x18], edi
mov ecx, dword [ebx + 4]
push edx
mov edx, 0x20000007
call fcn.000353e0
add esp, 0xc
test eax, eax
je 0x303d2
and dword [ebp + 0x2500], 0xfffffffd
jmp 0x303ec
mov ecx, dword [ebp + 0x2500]
mov eax, dword [esp + 0x10]
and eax, 1
and ecx, 0xfffffffe
or eax, ecx
or al, 2
mov dword [ebp + 0x2500], eax
mov eax, dword [esi + 8]
push 8
lea edx, [esp + 0x34]
push edx
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov ecx, dword [ebx + 4]
push eax
mov eax, dword [0x520d9c]
mov edx, 0x20000005
call fcn.000353e0
add esp, 0xc
test eax, eax
jne 0x2f828
mov ecx, dword [esp + 0x34]
mov dword [ebp + 0x24f0], ecx
jmp case.default.0x31752
test byte [ebp + 0x54], 1
mov dword [esp + 0x14], edi
je 0x30462
mov eax, dword [esi + 8]
push 4
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], 1
mov ecx, dword [ebx + 4]
push eax
mov eax, dword [0x520d9c]
mov edx, 0x20000008
call fcn.000353e0
add esp, 0xc
jmp case.default.0x31752
cmp edx, 3
jne 0x30561
cmp ecx, edi
mov dword [esp + 0x10], edi
jbe case.default.0x31752
lea eax, [esp + 0xd4]
cdq
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
lea ebx, [ebp + 0x250c]
lea ecx, [ecx]
xor ecx, ecx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], ecx
xor eax, eax
xor edx, edx
cmp dword [ebp + 0x44], 1
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], ecx
sete dl
mov dword [esp + 0x70], ecx
mov dword [esp + 0xd4], ecx
mov ecx, 0x3f
lea edi, [esp + 0xd8]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x5c], edx
mov edx, dword [esp + 0x34]
xor eax, eax
cmp dword [ebp + 0x48], eax
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], edx
jbe 0x3050f
mov edx, dword [ebp + 0x48]
lea ecx, [ebx - 0x24a0]
mov edi, dword [ecx - 4]
mov dword [esp + eax*8 + 0xd4], edi
mov edi, dword [ecx]
mov dword [esp + eax*8 + 0xd8], edi
add eax, 1
add ecx, 0x18
cmp eax, edx
jb 0x304f2
mov ecx, dword [esi + 8]
push 0x18
lea eax, [esp + 0x60]
push eax
mov eax, dword [esp + 0x58]
push ecx
mov ecx, dword [eax + 4]
mov eax, dword [0x520d9c]
mov edx, 0x20000004
call fcn.000353e0
add esp, 0xc
test eax, eax
jne 0x312fc
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x60]
add eax, 1
mov dword [ebx], ecx
add ebx, 0x30c
cmp eax, dword [esp + 0x44]
mov dword [esp + 0x10], eax
jb 0x30490
jmp case.default.0x31752
mov ecx, dword [esi + 8]
push 4
lea eax, [esp + 0x18]
push eax
mov eax, dword [0x520d9c]
mov dword [esp + 0x1c], edi
push ecx
mov ecx, dword [ebx + 4]
mov edx, 0x20000008
call fcn.000353e0
mov eax, dword [ebp + 0x38]
add esp, 0xc
cmp eax, 1
je 0x30596
cmp eax, 2
jne case.default.0x31752
cmp dword [esp + 0x44], edi
mov dword [esp + 0x10], edi
jbe 0x3068a
lea eax, [esp + 0xd4]
cdq
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
lea ebx, [ebp + 0x6c]
jmp 0x305c0
xor edx, edx
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], edx
xor eax, eax
mov dword [esp + 0xd4], edx
mov ecx, 0x3f
lea edi, [esp + 0xd8]
rep stosd dword es:[edi], eax
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebp + 0x48]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x68], eax
xor eax, eax
test ecx, ecx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x64], edx
jbe 0x3063d
mov edx, ecx
mov ecx, ebx
jmp 0x30620
mov edi, dword [ecx - 4]
mov dword [esp + eax*8 + 0xd4], edi
mov edi, dword [ecx]
mov dword [esp + eax*8 + 0xd8], edi
add eax, 1
add ecx, 0x18
cmp eax, edx
jb 0x30620
mov edx, dword [esi + 8]
mov eax, dword [esp + 0x50]
push 0x18
lea ecx, [esp + 0x60]
push ecx
mov ecx, dword [eax + 4]
mov eax, dword [0x520d9c]
push edx
mov edx, 0x20000003
call fcn.000353e0
add esp, 0xc
test eax, eax
jne 0x2f828
mov eax, dword [esp + 0x10]
add eax, 1
add ebx, 0x30c
cmp eax, dword [esp + 0x44]
mov dword [esp + 0x10], eax
jb 0x305c0
mov ebx, dword [esp + 0x50]
xor edi, edi
mov eax, dword [ebp + 0x44]
cmp eax, edi
je case.default.0x31752
xor ecx, ecx
cmp dword [ebp + 0x38], 1
mov dword [esp + 0x34], edi
sete cl
push 8
lea edx, [esp + 0x34]
mov dword [esp + 0x38], eax
mov eax, dword [esi + 8]
push edx
push eax
mov dword [esp + 0x3c], ecx
mov ecx, dword [ebx + 4]
mov edx, 0x20000006
jmp 0x2f813
movzx edx, word [0x520da2]
xor ebx, ebx
xor eax, eax
mov ecx, 0x20
lea edi, [esp + 0xd8]
mov dword [esp + 0xd4], ebx
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x30]
mov ecx, eax
shr ecx, 8
and ecx, 0xffff
cmp ecx, edx
mov dword [esp + 0x10], ebx
jb 0x2eff2
lea ecx, [esp + 0x10]
push ecx
push ebx
push eax
call fcn.0002ebd0
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x2fffd
mov ecx, dword [esi + 8]
push 0x84
lea edx, [esp + 0xd8]
push edx
mov dword [esp + 0xdc], ebx
push ecx
mov ecx, dword [eax + 4]
mov eax, dword [0x520d9c]
mov edx, 0x1000010
call fcn.000353e0
add esp, 0xc
test eax, eax
jne 0x2f828
lea edi, [ebp + 0x34]
mov ecx, 0x10
lea esi, [esp + 0xd8]
rep movsd dword es:[edi], dword [esi]
jmp case.default.0x31752
xor eax, eax
mov byte [esp + 0x5c], 0
mov ecx, 0xf
lea edi, [esp + 0x5d]
rep stosd dword es:[edi], eax
movzx ecx, word [0x520da2]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 0x30]
mov edx, eax
shr edx, 8
and edx, 0xffff
cmp edx, ecx
mov dword [esp + 0x10], 0
jb 0x2eff2
lea edx, [esp + 0x10]
push edx
push 0
push eax
call fcn.0002ebd0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x2fffd
mov edx, dword [esi + 8]
push 0x40
lea ecx, [esp + 0x60]
push ecx
mov ecx, dword [eax + 4]
mov eax, dword [0x520d9c]
push edx
mov edx, 0x1000020
call fcn.000353e0
add esp, 0xc
test eax, eax
jne 0x2f828
lea edi, [ebp + 0x34]
mov ecx, 0x10
lea esi, [esp + 0x5c]
rep movsd dword es:[edi], dword [esi]
jmp case.default.0x31752
mov eax, dword [ebp + 0x30]
movzx edx, word [0x520da2]
mov ecx, eax
shr ecx, 8
and ecx, 0xffff
cmp ecx, edx
mov dword [esp + 0x10], 0
jb 0x2eff2
lea ecx, [esp + 0x10]
push ecx
push 0
push eax
call fcn.0002ebd0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x2fffd
mov ecx, dword [esi + 8]
push 0x10
lea edx, [ebp + 0x34]
push edx
push ecx
mov ecx, dword [eax + 4]
mov edx, 0x18000001
jmp 0x2f813
mov eax, dword [ebp + 0x30]
xor edx, edx
mov dword [esp + 0x24], edx
mov ecx, eax
xor ebx, ebx
mov dword [esp + 0x28], edx
movzx edx, word [0x520da2]
shr ecx, 8
and ecx, 0xffff
cmp ecx, edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x1c], ebx
jb 0x2eff2
lea ecx, [esp + 0x10]
push ecx
push ebx
push eax
call fcn.0002ebd0
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
je 0x2fffd
mov edx, dword [ebp + 0x34]
mov dword [esp + 0x14], edx
lea eax, [esp + 0x14]
cdq
mov dword [esp + 0x24], eax
push 0x10
mov dword [esp + 0x2c], edx
mov edx, dword [esi + 8]
lea eax, [esp + 0x20]
push eax
push edx
mov edx, 0x18000002
jmp 0x30dda
mov eax, dword [esp + 0x18]
mov dword [ebp + 0x38], eax
jmp case.default.0x31752
mov eax, dword [ebp + 0x30]
xor ecx, ecx
mov dword [esp + 0x24], ecx
mov edx, eax
xor ebx, ebx
mov dword [esp + 0x28], ecx
movzx ecx, word [0x520da2]
shr edx, 8
and edx, 0xffff
cmp edx, ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x1c], ebx
jb 0x2eff2
lea edx, [esp + 0x10]
push edx
push ebx
push eax
call fcn.0002ebd0
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
je 0x2fffd
mov eax, dword [ebp + 0x34]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
cdq
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], eax
mov eax, dword [esi + 8]
push 0x10
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x24], 1
mov ecx, dword [ecx + 4]
push eax
mov eax, dword [0x520d9c]
mov edx, 0x13000001
call fcn.000353e0
add esp, 0xc
test eax, eax
jne 0x2f828
mov ecx, dword [esp + 0x18]
mov dword [ebp + 0x38], ecx
jmp case.default.0x31752
mov eax, dword [ebp + 0x30]
xor edx, edx
mov dword [esp + 0x24], edx
mov ecx, eax
xor ebx, ebx
mov dword [esp + 0x28], edx
movzx edx, word [0x520da2]
shr ecx, 8
and ecx, 0xffff
cmp ecx, edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x1c], ebx
jb 0x2eff2
lea ecx, [esp + 0x10]
push ecx
push ebx
push eax
call fcn.0002ebd0
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
je 0x2fffd
mov edx, dword [ebp + 0x34]
mov dword [esp + 0x14], edx
lea eax, [esp + 0x14]
cdq
mov dword [esp + 0x24], eax
push 0x10
mov dword [esp + 0x2c], edx
mov edx, dword [esi + 8]
lea eax, [esp + 0x20]
push eax
push edx
mov edx, 0x8000002
jmp 0x30dda
mov eax, dword [ebp + 0x30]
movzx edx, word [0x520da2]
mov ecx, eax
shr ecx, 8
and ecx, 0xffff
cmp ecx, edx
mov dword [esp + 0x10], 0
jb 0x2eff2
push 0
lea ecx, [esp + 0x14]
push ecx
push eax
call fcn.0002ebd0
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x2fffd
xor edx, edx
lea eax, [ebp + 0x34]
mov edi, eax
mov dword [edi], edx
mov dword [edi + 4], edx
mov dword [edi + 8], edx
mov dword [edi + 0xc], edx
cdq
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edx
mov edx, dword [esi + 8]
push 0x10
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x24], 0xe
mov ecx, dword [ecx + 0x608]
push edx
mov edx, 0x11000002
jmp 0x2f813
mov eax, dword [ebp + 0x30]
movzx edx, word [0x520da2]
mov ecx, eax
shr ecx, 8
and ecx, 0xffff
cmp ecx, edx
mov dword [esp + 0x10], 0
jb 0x2eff2
push 0
lea ecx, [esp + 0x14]
push ecx
push eax
call fcn.0002ebd0
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x2fffd
lea eax, [ebp + 0x34]
mov dword [eax], 0
cdq
mov dword [esp + 0x28], edx
push 0x10
lea edx, [esp + 0x20]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 8]
push edx
mov dword [esp + 0x24], edi
mov ecx, dword [ecx + 0x608]
push eax
mov edx, 0x20000001
jmp 0x2f813
mov eax, dword [ebp + 0x30]
movzx edx, word [0x520da2]
mov ecx, eax
shr ecx, 8
and ecx, 0xffff
cmp ecx, edx
mov dword [esp + 0x10], 0
jb 0x2eff2
push 0
lea ecx, [esp + 0x14]
push ecx
push eax
call fcn.0002ebd0
cmp dword [esp + 0x10], 0
je 0x2fffd
mov eax, dword [ebp + 0x34]
xor edx, edx
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], edx
push 0x18
lea ecx, [esp + 0x60]
push ecx
mov ecx, dword [esi + 0xa4]
mov dword [esp + 0x78], edx
mov edx, dword [esi + 8]
push 0x68
push edx
mov edx, dword [esi + 0xa8]
mov dword [esp + 0x6c], eax
call fcn.000355b0
add esp, 0x10
test eax, eax
je 0x30b54
mov dword [ebp + 0x2c], 0xffffffed
cmp dword [ebp + 0x2c], edi
jne case.default.0x31752
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x6c]
mov dword [ebp + 0x38], eax
mov dword [ebp + 0x3c], ecx
jmp case.default.0x31752
mov eax, dword [ebp + 0x30]
movzx ecx, word [0x520da2]
mov edx, eax
shr edx, 8
xor edi, edi
and edx, 0xffff
cmp edx, ecx
mov dword [esp + 0x10], edi
jb 0x2eff2
push edi
lea edx, [esp + 0x14]
push edx
push eax
call fcn.0002ebd0
cmp dword [esp + 0x10], edi
je 0x2fffd
cmp dword [ebp + 0x38], edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x34], edi
jne 0x30c3a
mov edx, dword [esi + 8]
mov eax, dword [ebp + 0x34]
push 8
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [esi + 0xa4]
push 0x143
push edx
mov edx, dword [esi + 0xa8]
mov dword [esp + 0x40], eax
call fcn.000355b0
add esp, 0x10
test eax, eax
mov edi, 0xffffffed
je 0x30bf1
mov dword [ebp + 0x2c], edi
mov eax, dword [esp + 0x474]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xa8]
push 0x5a
push ecx
mov ecx, dword [eax + 0xa4]
lea esi, [esp + 0x18]
call fcn.000354d0
add esp, 8
test eax, eax
je 0x30c1d
mov dword [ebp + 0x2c], edi
cmp dword [ebp + 0x2c], 1
jne case.default.0x31752
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x10]
mov dword [ebp + 0x3c], edx
mov dword [ebp + 0x40], eax
jmp case.default.0x31752
mov eax, dword [ebp + 0x40]
mov edi, dword [esp + 0x474]
mov ecx, dword [ebp + 0x34]
mov edx, dword [ebp + 0x3c]
push eax
mov eax, dword [edi + 8]
mov dword [esp + 0x34], ecx
mov ecx, dword [edi + 0xa4]
mov dword [esp + 0x38], edx
mov edx, dword [edi + 0xa8]
push 0x5a
push eax
lea esi, [esp + 0x1c]
call fcn.00035540
add esp, 0xc
test eax, eax
mov esi, 0xffffffed
je 0x30c7d
mov dword [ebp + 0x2c], esi
mov edx, dword [edi + 8]
push 8
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [edi + 0xa4]
push 0x144
push edx
mov edx, dword [edi + 0xa8]
call fcn.00035630
add esp, 0x10
test eax, eax
je case.default.0x31752
mov dword [ebp + 0x2c], esi
jmp case.default.0x31752
movzx edx, word [0x520da2]
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x30]
mov ecx, eax
xor ebx, ebx
shr ecx, 8
and ecx, 0xffff
cmp ecx, edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x1c], ebx
jb 0x2eff2
lea ecx, [esp + 0x10]
push ecx
push ebx
push eax
call fcn.0002ebd0
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
je 0x2fffd
mov edx, dword [ebp + 0x34]
mov dword [esp + 0x14], edx
lea eax, [esp + 0x14]
cdq
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edx
mov edx, dword [esi + 8]
push 0x10
lea eax, [esp + 0x20]
push eax
mov eax, dword [0x520d9c]
mov dword [esp + 0x24], 1
mov ecx, dword [ecx + 4]
push edx
mov edx, 0x1000001
call fcn.000353e0
add esp, 0xc
cmp eax, ebx
je 0x30d59
xor ecx, ecx
cmp eax, 0x28
setne cl
lea ecx, [ecx*4 - 0x17]
mov dword [ebp + 0x2c], ecx
jmp case.default.0x31752
mov edx, dword [esp + 0x18]
mov dword [ebp + 0x38], edx
jmp case.default.0x31752
movzx edx, word [0x520da2]
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x30]
mov ecx, eax
xor ebx, ebx
shr ecx, 8
and ecx, 0xffff
cmp ecx, edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x1c], ebx
jb 0x2eff2
lea ecx, [esp + 0x10]
push ecx
push ebx
push eax
call fcn.0002ebd0
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
je 0x2fffd
mov edx, dword [ebp + 0x34]
mov dword [esp + 0x14], edx
lea eax, [esp + 0x14]
cdq
mov dword [esp + 0x24], eax
push 0x10
mov dword [esp + 0x2c], edx
mov edx, dword [esi + 8]
lea eax, [esp + 0x20]
push eax
push edx
mov edx, 0x12000001
mov eax, dword [0x520d9c]
mov dword [esp + 0x28], 1
mov ecx, dword [ecx + 4]
call fcn.000353e0
add esp, 0xc
test eax, eax
je 0x308bc
mov dword [ebp + 0x2c], 0xffffffed
jmp case.default.0x31752
mov edx, dword [esi + 8]
push 4
lea ecx, [ebp + 0x30]
push ecx
mov ecx, dword [esi + 0xa4]
push 0xa028
push edx
mov edx, dword [esi + 0xa8]
call fcn.000355b0
add esp, 0x10
jmp 0x2f820
mov eax, dword [ebp + 0x34]
movzx edx, word [0x520da2]
mov ecx, eax
shr ecx, 8
xor ebx, ebx
and ecx, 0xffff
cmp ecx, edx
mov dword [esp + 0x10], ebx
jb 0x2eff2
lea ecx, [esp + 0x10]
push ecx
push ebx
push eax
call fcn.0002ebd0
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
je 0x2fffd
mov eax, dword [ebp + 0x30]
sub eax, ebx
je 0x30ed5
sub eax, 1
je 0x30eb6
sub eax, 1
jne case.default.0x31752
mov eax, dword [esi + 8]
push 4
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x18], ebx
mov ecx, dword [ecx + 4]
push eax
mov eax, dword [0x520d9c]
mov edx, 0x20000100
call fcn.000353e0
add esp, 0xc
test eax, eax
jne 0x2f828
mov ecx, dword [esp + 0x10]
mov dword [ebp + 0x3c], ecx
jmp case.default.0x31752
mov edx, dword [ebp + 0x38]
mov dword [esp + 0x10], edx
mov edx, dword [esi + 8]
mov ecx, dword [ecx + 4]
push 4
lea eax, [esp + 0x14]
push eax
push edx
mov edx, 0x20000102
jmp 0x2f813
mov edx, dword [esi + 8]
push 4
lea eax, [esp + 0x14]
push eax
mov eax, dword [0x520d9c]
mov dword [esp + 0x18], ebx
mov ecx, dword [ecx + 4]
push edx
mov edx, 0x20000101
call fcn.000353e0
add esp, 0xc
test eax, eax
jne 0x2f828
mov eax, dword [esp + 0x10]
mov dword [ebp + 0x3c], eax
jmp case.default.0x31752
movzx edx, word [0x520da2]
xor ebx, ebx
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x60]
mov dword [esp + 0x5c], ebx
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x30]
mov ecx, eax
shr ecx, 8
and ecx, 0xffff
cmp ecx, edx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
jb 0x2eff2
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
push eax
call fcn.0002ebd0
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x2fffd
mov ecx, dword [esp + 0x14]
movzx edx, byte [ecx + 5]
mov ecx, dword [ebp + 0x34]
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], ecx
mov ecx, dword [esi + 8]
push 0x48
lea edx, [esp + 0x60]
push edx
push ecx
mov ecx, dword [eax + 0x60c]
mov eax, dword [0x520d9c]
mov edx, 0x2000050
call fcn.000353e0
add esp, 0xc
test eax, eax
jne 0x2f828
test byte [esp + 0x64], 1
je 0x30fe1
mov ecx, dword [esp + 0x6c]
cmp ecx, ebx
mov edx, dword [esp + 0xa0]
mov dword [ebp + 0x38], edx
mov dword [ebp + 0x3c], ecx
jbe case.default.0x31752
lea eax, [esp + 0x78]
add ebp, 0x44
mov edx, dword [eax - 4]
mov dword [ebp - 4], edx
mov edx, dword [eax]
mov dword [ebp], edx
add eax, 0xc
add ebp, 8
sub ecx, 1
jne 0x30fc6
jmp case.default.0x31752
or eax, 0xffffffff
mov dword [ebp + 0x38], eax
mov dword [ebp + 0x3c], 1
mov dword [ebp + 0x40], eax
mov dword [ebp + 0x44], ebx
jmp case.default.0x31752
xor eax, eax
mov dword [esp + 0x34], eax
xor ecx, ecx
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x30]
mov dword [esp + 0x48], ecx
mov edx, eax
xor edi, edi
mov dword [esp + 0x4c], ecx
movzx ecx, word [0x520da2]
shr edx, 8
and edx, 0xffff
cmp edx, ecx
mov dword [esp + 0x30], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], edi
jb 0x2eff2
mov ecx, dword [ebp + 0x34]
lea edx, [ecx - 1]
test ecx, edx
je 0x31052
mov dword [ebp + 0x2c], 0xfffffff2
jmp case.default.0x31752
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
push eax
call fcn.0002ebd0
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x2fffd
mov ebx, dword [esp + 0x10]
movzx ecx, byte [ebx + 5]
mov dword [esp + 0x30], ecx
movzx edx, byte [ebx + 5]
mov dword [esp + 0x44], edx
mov edx, dword [esi + 8]
push 0xc
lea ecx, [esp + 0x48]
push ecx
mov ecx, dword [eax + 0x60c]
mov eax, dword [0x520d9c]
push edx
mov edx, 0x1000002
call fcn.000353e0
add esp, 0xc
test eax, eax
jne 0x2f828
mov eax, dword [esp + 0x4c]
xor edi, edi
test eax, eax
mov dword [esp + 0x34], eax
jbe 0x31046
jmp 0x310c0
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x1c], 0
movzx ecx, byte [ebx + 5]
push 0x10
lea edx, [esp + 0x20]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x18]
push edx
mov dword [esp + 0x28], edi
mov ecx, dword [ecx + 0x60c]
push eax
mov eax, dword [0x520d9c]
mov edx, 0x1000046
call fcn.000353e0
add esp, 0xc
test eax, eax
jne 0x2f828
mov edx, dword [ebp + 0x34]
cmp edx, dword [esp + 0x28]
mov eax, dword [esp + 0x4c]
je 0x31127
add edi, 1
cmp edi, eax
jb 0x310c0
jmp 0x3112b
mov dword [esp + 0x34], edi
cmp dword [esp + 0x34], eax
je 0x31046
mov ecx, dword [esi + 8]
push 0xc
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, dword [eax + 0x60c]
mov eax, dword [0x520d9c]
mov edx, 0x1000009
call fcn.000353e0
add esp, 0xc
test eax, eax
je 0x31173
mov dword [ebp + 0x2c], 0xffffffed
mov dword [ebp + 0x38], 0
jmp case.default.0x31752
mov ecx, dword [esp + 0x38]
mov dword [ebp + 0x38], ecx
jmp case.default.0x31752
mov eax, dword [ebp + 0x30]
xor edx, edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], edx
mov ecx, eax
mov dword [esp + 0x28], edx
movzx edx, word [0x520da2]
shr ecx, 8
xor edi, edi
and ecx, 0xffff
cmp ecx, edx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], edi
jb 0x2eff2
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
push eax
call fcn.0002ebd0
mov ecx, dword [esp + 0x10]
cmp ecx, edi
je 0x2fffd
mov eax, dword [esp + 0x14]
cmp eax, edi
je case.default.0x31752
cmp dword [eax + 0x610], edi
je case.default.0x31752
movzx ecx, byte [ecx + 5]
mov edx, dword [ebp + 0x34]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov edx, dword [esi + 8]
push 0x10
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [eax + 0x610]
mov eax, dword [0x520d9c]
push edx
mov edx, 0x2000050
call fcn.000353e0
add esp, 0xc
cmp eax, edi
jne 0x30d42
cmp dword [esp + 0x24], edi
mov edx, dword [esp + 0x28]
mov dword [ebp + 0x38], edx
mov dword [ebp + 0x3c], edi
jne 0x31242
mov dword [ebp + 0x40], 3
jmp case.default.0x31752
mov dword [ebp + 0x40], 0x3f
jmp case.default.0x31752
movzx edx, word [0x520da2]
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x30]
mov ecx, eax
shr ecx, 8
xor edi, edi
and ecx, 0xffff
cmp ecx, edx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], edi
jb 0x2eff2
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
push eax
call fcn.0002ebd0
mov ecx, dword [esp + 0x10]
cmp ecx, edi
je 0x2fffd
mov eax, dword [esp + 0x14]
cmp eax, edi
je case.default.0x31752
cmp dword [eax + 0x610], edi
je case.default.0x31752
movzx ecx, byte [ecx + 5]
mov edx, dword [ebp + 0x34]
mov dword [esp + 0x20], edx
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebp + 0x38]
push 0x10
push edx
mov dword [esp + 0x30], ecx
mov edx, 0x2000051
mov ecx, dword [esi + 8]
push ecx
mov ecx, dword [eax + 0x610]
mov eax, dword [0x520d9c]
call fcn.000353e0
add esp, 0xc
cmp eax, edi
je case.default.0x31752
xor edx, edx
cmp eax, 0x28
setne dl
lea edx, [edx*4 - 0x17]
mov dword [ebp + 0x2c], edx
jmp case.default.0x31752
movzx edx, word [0x520da2]
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x30]
mov ecx, eax
shr ecx, 8
xor edi, edi
and ecx, 0xffff
cmp ecx, edx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], edi
jb 0x2eff2
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
push eax
call fcn.0002ebd0
mov ecx, dword [esp + 0x10]
cmp ecx, edi
je 0x2fffd
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x31378
cmp dword [eax + 0x610], edi
jne 0x31384
mov dword [ebp + 0x2c], 0xffffffe8
jmp case.default.0x31752
movzx ecx, byte [ecx + 5]
mov edx, dword [ebp + 0x34]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov edx, dword [esi + 8]
push 0x10
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [eax + 0x610]
mov eax, dword [0x520d9c]
push edx
mov edx, 0x2000052
call fcn.000353e0
add esp, 0xc
cmp eax, edi
jne 0x30d42
mov edx, dword [esp + 0x24]
mov dword [ebp + 0x38], edx
mov dword [ebp + 0x3c], edi
mov dword [ebp + 0x40], 0x15
jmp case.default.0x31752
movzx edx, word [0x520da2]
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x30]
mov ecx, eax
shr ecx, 8
xor edi, edi
and ecx, 0xffff
cmp ecx, edx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], edi
jb 0x2eff2
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
push eax
call fcn.0002ebd0
mov ecx, dword [esp + 0x10]
cmp ecx, edi
je 0x2fffd
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x31378
cmp dword [eax + 0x610], edi
je 0x31378
movzx ecx, byte [ecx + 5]
mov edx, dword [ebp + 0x34]
mov dword [esp + 0x20], edx
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebp + 0x38]
push 0x10
push edx
mov dword [esp + 0x2c], ecx
mov edx, 0x2000053
jmp 0x312dd
mov eax, dword [ebp + 0x30]
movzx edx, word [0x520da2]
mov ecx, eax
shr ecx, 8
xor esi, esi
and ecx, 0xffff
cmp ecx, edx
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
jb 0x2eff2
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
push eax
call fcn.0002ebd0
cmp dword [esp + 0x10], esi
je 0x2fffd
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x20]
mov dword [ebp + 0x34], ecx
jmp case.default.0x31752
mov eax, dword [ebp + 0x30]
movzx ecx, word [0x520da2]
mov edx, eax
shr edx, 8
xor esi, esi
and edx, 0xffff
cmp edx, ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
jb 0x2eff2
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x14]
push ecx
push eax
call fcn.0002ebd0
cmp dword [esp + 0x10], esi
je 0x2fffd
mov dword [ebp + 0x34], esi
cmp byte [0x526f28], 0
jbe case.default.0x31752
mov edx, 0x5213a8
mov edi, edi
xor ecx, ecx
cmp byte [edx], cl
jbe 0x31549
lea eax, [edx - 0x600]
lea esp, [esp]
mov ebx, dword [esp + 0x14]
mov ebx, dword [ebx + 0x24]
cmp ebx, dword [eax + 0x24]
jne 0x3153d
mov edi, dword [ebp + 0x34]
mov ebx, dword [eax]
mov dword [ebp + edi*4 + 0x38], ebx
mov edi, 1
add dword [ebp + 0x34], edi
movzx ebx, byte [edx]
add ecx, edi
add eax, 0x30
cmp ecx, ebx
jb 0x31520
movzx eax, byte [0x526f28]
add esi, edi
add edx, 0x618
cmp esi, eax
jb 0x31510
jmp case.default.0x31752
mov eax, dword [ebp + 0x30]
movzx edx, word [0x520da2]
mov ecx, eax
shr ecx, 8
and ecx, 0xffff
cmp ecx, edx
mov dword [esp + 0x10], 0
jb 0x2eff2
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
push eax
call fcn.0002ebd0
cmp dword [esp + 0x10], 0
je 0x2fffd
mov edx, dword [esi + 8]
xor eax, eax
mov ecx, 0x86
lea edi, [esp + 0x258]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x34]
push 0x21c
lea ecx, [esp + 0x258]
push ecx
mov ecx, dword [esi + 0xa4]
push 0x146
push edx
mov edx, dword [esi + 0xa8]
mov edi, 1
mov dword [esp + 0x264], 0x21c
mov dword [esp + 0x268], edi
mov dword [esp + 0x26c], 8
mov dword [esp + 0x274], eax
mov dword [esp + 0x270], 0x40753
call fcn.000355b0
add esp, 0x10
test eax, eax
je 0x3161d
mov dword [ebp + 0x2c], 0xffffffed
cmp dword [ebp + 0x2c], edi
jne case.default.0x31752
mov eax, dword [esp + 0x3f4]
mov dword [ebp + 0x38], eax
jmp case.default.0x31752
mov edx, dword [esi + 8]
mov eax, dword [0x520d9c]
push 4
lea ecx, [ebp + 0x30]
push ecx
push edx
mov edx, 0x1000005
mov ecx, eax
jmp 0x2f818
mov eax, dword [ebp + 0x30]
movzx edx, word [0x520da2]
mov ecx, eax
shr ecx, 8
xor edi, edi
and ecx, 0xffff
cmp ecx, edx
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
jb 0x2eff2
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
push eax
call fcn.0002ebd0
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x2fffd
mov edx, dword [esp + 0x14]
xor ecx, ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], edi
mov dword [esp + 0x38], ecx
movzx ecx, byte [edx + 5]
mov edx, dword [ebp + 0x34]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
mov edx, dword [esi + 8]
push 0xc
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [eax + 0x60c]
mov eax, dword [0x520d9c]
push edx
mov edx, 0x11000040
call fcn.000353e0
add esp, 0xc
test eax, eax
je 0x2f68a
mov dword [ebp + 0x2c], 0xffffffed
jmp case.default.0x31752
mov eax, dword [ebp + 0x30]
movzx edx, word [0x520da2]
xor edi, edi
mov ecx, eax
shr ecx, 8
and ecx, 0xffff
cmp ecx, edx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x10], edi
jb 0x2eff2
lea ecx, [esp + 0x10]
push ecx
push edi
push eax
call fcn.0002ebd0
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x2fffd
mov ecx, dword [ebp + 0x44]
cmp ecx, 3
ja case.default.0x31752
jmp dword [ecx*4 + 0x32094]
mov edx, dword [ebp + 0x40]
mov ecx, dword [ebp + 0x38]
mov dword [esp + 0x14], edx
push 8
lea edx, [esp + 0x18]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi + 8]
push edx
push ecx
mov edx, 0x20000105
jmp 0x317d5
mov edx, dword [ebp + 0x40]
mov dword [esp + 0x44], edx
mov edx, dword [esi + 8]
push 8
lea ecx, [esp + 0x48]
push ecx
mov ecx, dword [eax + 4]
mov eax, dword [0x520d9c]
push edx
mov edx, 0x20000106
call fcn.000353e0
add esp, 0xc
cmp eax, edi
mov dword [ebp + 0x34], eax
jne 0x2f828
mov eax, dword [esp + 0x48]
mov dword [ebp + 0x38], eax
jmp case.default.0x31752
mov ecx, dword [ebp + 0x40]
mov edx, dword [ebp + 0x3c]
mov dword [esp + 0x50], ecx
push 8
mov dword [esp + 0x58], edx
mov edx, dword [esi + 8]
lea ecx, [esp + 0x54]
push ecx
push edx
mov edx, 0x20000103
mov ecx, dword [eax + 4]
mov eax, dword [0x520d9c]
call fcn.000353e0
add esp, 0xc
mov dword [ebp + 0x34], eax
cmp eax, edi
jmp 0x2f822
mov ecx, dword [ebp + 0x40]
mov dword [esp + 0x30], ecx
mov ecx, dword [esi + 8]
push 8
lea edx, [esp + 0x34]
push edx
push ecx
mov ecx, dword [eax + 4]
mov eax, dword [0x520d9c]
mov edx, 0x20000104
call fcn.000353e0
add esp, 0xc
cmp eax, edi
mov dword [ebp + 0x34], eax
jne 0x2f828
mov edx, dword [esp + 0x34]
mov dword [ebp + 0x3c], edx
jmp case.default.0x31752
mov eax, dword [ebp + 0x30]
movzx edx, word [0x520da2]
mov ecx, eax
shr ecx, 8
xor edi, edi
and ecx, 0xffff
cmp ecx, edx
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
jb 0x2eff2
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
push eax
call fcn.0002ebd0
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x2fffd
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
movzx edx, byte [ecx + 5]
mov dword [esp + 0x30], edx
mov edx, dword [esi + 8]
push 8
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [eax + 0x60c]
mov eax, dword [0x520d9c]
push edx
mov edx, 0x1000049
call fcn.000353e0
add esp, 0xc
test eax, eax
jne 0x2f828
mov eax, dword [esp + 0x34]
mov dword [ebp + 0x38], eax
jmp case.default.0x31752
mov eax, dword [ebp + 0x30]
xor ecx, ecx
mov dword [esp + 0x24], ecx
mov edx, eax
mov dword [esp + 0x28], ecx
movzx ecx, word [0x520da2]
shr edx, 8
xor edi, edi
and edx, 0xffff
cmp edx, ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], edi
jb 0x2eff2
lea edx, [esp + 0x10]
push edx
push edi
push eax
call fcn.0002ebd0
mov ebx, dword [esp + 0x10]
cmp ebx, edi
je 0x2fffd
xor eax, eax
lea edx, [ebp + 0x38]
mov edi, edx
mov ecx, 0x10
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 8]
mov eax, edx
cdq
mov dword [esp + 0x24], eax
push 0x10
lea eax, [esp + 0x20]
push eax
mov eax, dword [0x520d9c]
mov dword [esp + 0x30], edx
mov dword [esp + 0x24], 0x40
push ecx
mov ecx, dword [ebx + 4]
mov edx, 0x2000002
call fcn.000353e0
add esp, 0xc
test eax, eax
jne 0x2f828
mov edx, dword [esp + 0x1c]
mov dword [ebp + 0x34], edx
jmp case.default.0x31752
movzx edx, word [0x520da2]
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x30]
mov ecx, eax
shr ecx, 8
xor edi, edi
and ecx, 0xffff
cmp ecx, edx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], edi
jb 0x2eff2
lea ecx, [esp + 0x10]
push ecx
push edi
push eax
call fcn.0002ebd0
mov ebx, dword [esp + 0x10]
cmp ebx, edi
je 0x2fffd
xor eax, eax
lea edx, [ebp + 0x38]
mov edi, edx
mov ecx, 0x4000
rep stosd dword es:[edi], eax
mov eax, edx
cdq
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], eax
mov eax, dword [esi + 8]
push 0x10
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x24], 0x10000
mov ecx, dword [ebx + 4]
push eax
mov eax, dword [0x520d9c]
mov edx, 0x8000001
call fcn.000353e0
add esp, 0xc
test eax, eax
jne 0x2f828
mov ecx, dword [esp + 0x1c]
mov dword [ebp + 0x34], ecx
jmp case.default.0x31752
mov eax, dword [ebp + 0x30]
xor edx, edx
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], edx
mov ecx, eax
mov dword [esp + 0x70], edx
movzx edx, word [0x520da2]
shr ecx, 8
xor edi, edi
and ecx, 0xffff
cmp ecx, edx
mov dword [esp + 0x5c], edi
mov dword [esp + 0x10], edi
jb 0x2eff2
lea ecx, [esp + 0x10]
push ecx
push edi
push eax
call fcn.0002ebd0
mov ebx, dword [esp + 0x10]
cmp ebx, edi
je 0x2fffd
xor eax, eax
lea edx, [ebp + 0x38]
mov edi, edx
mov ecx, 0x400
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 8]
mov dword [esp + 0x5c], eax
mov eax, edx
cdq
mov dword [esp + 0x68], edx
mov edx, dword [esi + 8]
push 0x18
lea ecx, [esp + 0x60]
push ecx
mov dword [esp + 0x6c], eax
mov eax, dword [0x520d9c]
push edx
mov edx, 0x1000014
mov ecx, eax
mov word [esp + 0x78], 0x1000
call fcn.000353e0
add esp, 0xc
test eax, eax
jne 0x2f828
movzx eax, word [esp + 0x6c]
mov dword [ebp + 0x34], eax
jmp case.default.0x31752
mov eax, dword [ebp + 0x30]
xor ecx, ecx
mov dword [esp + 0x34], ecx
mov edx, eax
mov dword [esp + 0x38], ecx
movzx ecx, word [0x520da2]
shr edx, 8
xor ebx, ebx
and edx, 0xffff
cmp edx, ecx
mov byte [esp + 0x30], bl
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebx
jb 0x2eff2
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x18]
push ecx
push eax
call fcn.0002ebd0
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x2fffd
mov dl, byte [eax + 5]
mov eax, dword [ebp + 0x34]
mov cl, byte [ebp + 0x38]
mov byte [esp + 0x30], dl
mov dword [esp + 0x34], eax
mov eax, dword [esi + 8]
push 0xc
lea edx, [esp + 0x34]
mov byte [esp + 0x3c], cl
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx + 0x60c]
push edx
push eax
mov eax, dword [0x520d9c]
mov edx, 0x2000073
call fcn.000353e0
add esp, 0xc
cmp eax, ebx
jne 0x312fc
mov dword [ebp + 0x2c], 1
jmp case.default.0x31752
mov ecx, dword [ebp + 0x30]
lea eax, [esp + 0x10]
push eax
xor ebx, ebx
push ebx
push ecx
mov dword [esp + 0x1c], ebx
call fcn.0002ebd0
mov edi, dword [esp + 0x10]
cmp edi, ebx
je 0x2fffd
mov eax, dword [esi + 8]
push 4
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], ebx
mov ecx, dword [edi + 4]
push eax
mov eax, dword [0x520d9c]
mov edx, 0x20000108
call fcn.000353e0
add esp, 0xc
test eax, eax
jne 0x2f828
mov ecx, dword [ebp + 0x34]
mov eax, dword [esi + 8]
push 4
lea edx, [esp + 0x48]
push edx
mov dword [esp + 0x4c], ecx
mov ecx, dword [edi + 4]
push eax
mov eax, dword [0x520d9c]
mov edx, 0x20000107
call fcn.000353e0
mov edx, dword [esi + 8]
push 4
lea ecx, [esp + 0x24]
push ecx
mov ebx, eax
mov eax, dword [0x520d9c]
mov dword [esp + 0x28], 1
mov ecx, dword [edi + 4]
push edx
mov edx, 0x20000108
call fcn.000353e0
add esp, 0x18
test eax, eax
jne 0x2f828
test ebx, ebx
jmp 0x2f822
mov ecx, dword [ebp + 0x30]
lea eax, [esp + 0x10]
push eax
xor ebx, ebx
push ebx
push ecx
mov dword [esp + 0x1c], ebx
call fcn.0002ebd0
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x2fffd
cmp dword [ebp + 0x34], ebx
mov dword [esp + 0x50], ebx
je 0x31c1c
mov dword [esp + 0x50], edi
cmp dword [ebp + 0x38], ebx
je 0x31c25
or dword [esp + 0x50], edi
cmp dword [ebp + 0x3c], ebx
je 0x31c2e
or dword [esp + 0x50], edi
mov ecx, dword [esi + 8]
push 4
lea edx, [esp + 0x54]
push edx
push ecx
mov ecx, dword [eax + 4]
mov edx, 0x20000021
jmp 0x2f813
mov eax, dword [ebp + 0x30]
lea edx, [esp + 0x10]
push edx
push 0
push eax
mov dword [esp + 0x1c], 0
call fcn.0002ebd0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x2fffd
mov edx, dword [esi + 8]
push 4
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [eax + 4]
mov eax, dword [0x520d9c]
push edx
mov edx, 0x20000020
call fcn.000353e0
add esp, 0xc
test eax, eax
jne 0x2f828
mov eax, dword [esp + 0x14]
and eax, edi
mov dword [ebp + 0x34], eax
mov dword [ebp + 0x38], eax
mov dword [ebp + 0x3c], eax
jmp case.default.0x31752
mov ecx, dword [ebp + 0x30]
lea eax, [esp + 0x10]
push eax
push 0
push ecx
mov dword [esp + 0x1c], 0
call fcn.0002ebd0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x2fffd
mov ecx, dword [esi + 8]
push 4
lea edx, [esp + 0x18]
push edx
push ecx
mov ecx, dword [eax + 4]
mov eax, dword [0x520d9c]
mov edx, 0x20000049
call fcn.000353e0
add esp, 0xc
test eax, eax
jne 0x2f828
mov edx, dword [esp + 0x14]
mov dword [ebp + 0x34], edx
jmp case.default.0x31752
mov ecx, dword [ebp + 0x30]
lea eax, [esp + 0x10]
push eax
push 0
push ecx
mov dword [esp + 0x1c], 0
call fcn.0002ebd0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x2fffd
xor edx, edx
cmp dword [ebp + 0x34], edx
push 8
setne dl
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x3c], edx
mov edx, dword [esi + 8]
mov ecx, dword [eax + 4]
push edx
mov edx, 0x20000041
jmp 0x2f813
mov ecx, dword [ebp + 0x30]
lea eax, [esp + 0x10]
push eax
push 0
push ecx
mov dword [esp + 0x1c], 0
call fcn.0002ebd0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x2fffd
mov ecx, dword [esi + 8]
push 4
lea edx, [esp + 0x18]
push edx
push ecx
mov ecx, dword [eax + 4]
mov eax, dword [0x520d9c]
mov edx, 0x20000040
call fcn.000353e0
add esp, 0xc
test eax, eax
jne 0x2f828
mov edx, dword [esp + 0x14]
and edx, edi
mov dword [ebp + 0x34], edx
jmp case.default.0x31752
mov eax, dword [ebp + 0x30]
movzx edx, word [0x520da2]
mov ecx, eax
shr ecx, 8
and ecx, 0xffff
cmp ecx, edx
mov dword [esp + 0x10], 0
jb 0x2eff2
lea ecx, [esp + 0x10]
push ecx
push 0
push eax
call fcn.0002ebd0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x2fffd
mov ecx, dword [esi + 8]
push 0x88
lea edx, [ebp + 0x38]
push edx
push ecx
mov ecx, dword [eax + 4]
mov edx, 0x18000003
jmp 0x2f813
mov eax, dword [ebp + 0x30]
movzx ecx, word [0x520da2]
mov edx, eax
shr edx, 8
and edx, 0xffff
cmp edx, ecx
mov dword [esp + 0x10], 0
jb 0x2eff2
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x18]
push ecx
push eax
call fcn.0002ebd0
mov edx, dword [esp + 0x10]
neg edx
sbb edx, edx
and edx, 0xfffffffa
add edx, 0xffffffee
mov dword [ebp + 0x2c], edx
jmp case.default.0x31752
mov ecx, dword [ebp + 0x34]
mov edx, dword [ebp + 0x38]
xor eax, eax
mov dword [esp + 0x60], eax
mov edi, eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x23c]
cmp eax, 0x200
mov dword [esp + 0x64], edi
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], edx
jb 0x31e92
mov eax, 0x200
mov ecx, eax
shr ecx, 2
mov dword [esp + 0x6c], eax
lea esi, [ebp + 0x3c]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0x30]
test eax, eax
je 0x31edb
movzx edx, word [0x520da2]
mov ecx, eax
shr ecx, 8
and ecx, 0xffff
cmp ecx, edx
jb 0x2eff2
lea ecx, [esp + 0x10]
push ecx
push 0
push eax
call fcn.0002ebd0
mov eax, dword [esp + 0x10]
jmp 0x31ee0
mov eax, 0x520da8
mov ecx, dword [esp + 0x474]
push 0x28
lea edx, [esp + 0x60]
push edx
mov edx, dword [ecx + 8]
mov ecx, dword [eax + 4]
mov eax, dword [0x520d9c]
push edx
mov edx, 0x21000001
call fcn.000353e0
add esp, 0xc
test eax, eax
jne 0x2f828
mov ecx, dword [esp + 0x7c]
cmp ecx, 0x200
mov eax, dword [esp + 0x70]
mov dword [ebp + 0x240], eax
jb 0x31f2a
mov ecx, 0x200
mov esi, dword [esp + 0x74]
mov dword [ebp + 0x444], ecx
mov edx, ecx
shr ecx, 2
lea edi, [ebp + 0x244]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp + 0x2c], 1
jmp case.default.0x31752
mov dword [esp + 0xd0], 0
pop ebx
mov eax, dword [0x526f30]
push eax
call sub.WIN32K.SYS_EngReleaseSemaphore
mov eax, dword [esp + 0xcc]
pop edi
pop esi
pop ebp
add esp, 0x460
ret 0xc