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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push ebx
push esi
push edi
xor eax, eax
xor edi, edi
inc edi
cmp dword [ebp + 0x18], edi
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0xb0], eax
jge 0x3000e989
mov dword [ebp + 0x18], edi
push dword [ebp + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalLock]
call ebx
mov esi, eax
mov eax, dword [esi + 0x34]
cmp eax, 0x13
je 0x3000e9a7
cmp eax, 0x1c
jne 0x3000ea30
mov eax, dword [esi + 0x2c]
cmp eax, 0xffffffff
mov dword [ebp - 0x18], edi
je 0x3000ea1d
lea ecx, [ebp - 0xe8]
push ecx
push eax
push 0x65
push dword [ebp + 0xc]
call fcn.3003a5eb
test eax, eax
jne 0x3000ea1d
push dword [ebp - 0xe8]
call ebx
push dword [esi + 0x30]
push eax
call fcn.3001c300
mov ebx, eax
test byte [ebx + 0xf4], 0x80
mov dword [ebp - 0x48], ebx
je 0x3000ea07
push 0
push 0x1000
lea eax, [ebx + 0x2c]
push eax
call fcn.30067eb7
and dword [ebx + 0xfc], 0
and dword [ebx + 0x100], 0
jmp 0x3000ea0b
and dword [ebp - 0x18], 0
push dword [ebp - 0xe8]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp dword [ebp - 0x18], 0
je 0x3000ea30
xor eax, eax
cmp dword [esi + 0x34], 0x13
setne al
dec eax
and eax, 0xffffffed
add eax, 0x21
mov dword [esi + 0x34], eax
mov eax, dword [esi + 0xa0]
mov ecx, dword [esi + 0x8c]
mov edx, dword [esi + 0x80]
add eax, esi
mov dword [ebp - 0x84], eax
mov eax, ecx
sub eax, dword [esi + 0x90]
mov dword [ebp - 0x34], edx
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x34]
mov dword [ebp - 0x58], eax
sub eax, 0x17
je 0x3000eaa4
dec eax
dec eax
je 0x3000ea9b
sub eax, 3
je 0x3000ea92
dec eax
je 0x3000ea83
sub eax, 4
mov ebx, dword [ebp - 4]
jne 0x3000ead0
mov dword [ebp - 0x58], 0xe
mov dword [ebp - 0x68], edi
jmp 0x3000ead0
mov dword [ebp - 0x58], 6
mov ebx, dword [ebp - 4]
mov dword [ebp - 0x68], edi
jmp 0x3000ead0
mov dword [ebp - 0x58], 0x13
jmp 0x3000ea8a
mov dword [ebp - 0x58], 5
jmp 0x3000eaab
mov dword [ebp - 0x58], 0x10
dec ecx
push ecx
push esi
mov dword [ebp - 0xb0], edi
mov dword [ebp - 0x68], edi
call fcn.3001c300
mov ebx, eax
push ebx
push esi
call fcn.3001c5e9
test eax, eax
jge 0x3000ead0
and dword [ebp - 0xb0], 0
cmp dword [ebp + 0x18], 4
jne 0x3000eafe
cmp dword [ebp - 0xc], edi
jne 0x3000eafe
cmp dword [ebp - 0x58], 3
mov dword [ebp + 0x18], 2
je 0x3000eaf7
cmp dword [ebp - 0x58], 8
jne 0x3000eafe
mov dword [ebp - 0x58], 0xf
jmp 0x3000eafe
mov dword [ebp - 0x58], 5
mov eax, dword [ebp - 0xc]
cdq
idiv dword [ebp + 0x18]
xor ecx, ecx
cmp dword [ebp + 0x18], edi
setg cl
inc ecx
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp - 0xc]
mov edx, eax
imul edx, dword [ebp + 0x18]
sub ecx, edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x70], ecx
je 0x3000eb28
inc eax
mov dword [ebp - 0x14], eax
push 3
pop ecx
cmp dword [ebp - 0x58], ecx
jne 0x3000eb4b
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0xac], edi
mov dword [ebp - 0xa8], 2
mov dword [ebp - 0xa4], edi
jmp 0x3000eb68
cmp dword [ebp - 0x30], 0
jle 0x3000eb68
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x30]
cdq
idiv ecx
lea edi, [ebp - 0xac]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x14]
xor edi, edi
inc edi
mov edx, dword [esi + 0x78]
add edx, dword [esi + 0x70]
and dword [ebp - 0x88], 0
add edx, dword [esi + 0x84]
and dword [ebp - 0x8c], 0
xor ecx, ecx
mov dword [ebp - 0x6c], edx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x90], ecx
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x94], ecx
inc edx
lea ecx, [edx - 1]
mov dword [ebp - 0x4c], ecx
add ecx, eax
mov dword [ebp - 0x5c], ecx
mov ecx, dword [ebp - 0x58]
cmp ecx, 0xd
mov dword [ebp - 0x98], edi
mov dword [ebp - 0x24], edi
jg 0x3000ec3e
je 0x3000ec33
sub ecx, 3
je 0x3000ec0b
dec ecx
je 0x3000ebfd
dec ecx
dec ecx
je 0x3000ebf5
dec ecx
dec ecx
je 0x3000ecba
dec ecx
je 0x3000ec00
sub ecx, 3
jne 0x3000ec87
lea eax, [edx + eax + 1]
mov dword [ebp - 0x90], edi
mov dword [ebp - 0x94], edi
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x54], edi
jmp 0x3000ec87
mov dword [ebp - 0x54], edi
push 2
pop eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x24], eax
jmp 0x3000ec7b
cmp dword [ebp - 0xc], 2
jle 0x3000ec1d
mov dword [ebp - 0x94], 2
jmp 0x3000ec28
cmp dword [ebp - 0xc], edi
jle 0x3000ec28
mov dword [ebp - 0x94], edi
lea eax, [edx + eax*2]
add eax, dword [ebp - 0x94]
jmp 0x3000ec63
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x8c], edi
jmp 0x3000ec7e
sub ecx, 0xe
je 0x3000ec6f
dec ecx
je 0x3000ecba
sub ecx, 3
je 0x3000ec36
dec ecx
je 0x3000ec6b
sub ecx, 3
jne 0x3000ec87
mov dword [ebp - 0x90], edi
mov dword [ebp - 0x94], edi
lea eax, [edx + eax + 1]
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x5c], eax
jmp 0x3000ec87
and dword [ebp - 0x6c], 0
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x60], edi
mov eax, dword [esi + 0x88]
mov dword [ebp - 0x34], eax
cmp dword [esi + 0x2c], 0xffffffff
jne 0x3000ecea
cmp dword [ebp - 0xc], edi
jne 0x3000ecea
mov eax, dword [esi + 0x34]
sub eax, 6
mov dword [ebp - 0x64], edi
je 0x3000ecd0
sub eax, 0xa
je 0x3000ecd0
sub eax, 7
je 0x3000ecb0
dec eax
dec eax
je 0x3000ecb0
sub eax, 4
jne 0x3000ecea
mov eax, dword [esi + 0x8c]
dec eax
push eax
jmp 0x3000ecd2
mov ecx, dword [ebp - 0xc]
and dword [ebp - 0x98], 0
add ecx, ecx
mov dword [ebp - 0x4c], ecx
add ecx, eax
mov dword [ebp - 0x5c], ecx
jmp 0x3000ec87
push 0
push esi
call fcn.3001c300
mov ebx, eax
push ebx
push esi
call fcn.3001c5e9
cmp eax, 0xffffffff
je 0x3000ecea
and dword [ebp - 0x64], 0
xor edx, edx
cmp dword [esi + 0x9c], edx
je 0x3000ecf9
cmp dword [ebp - 0x64], edx
je 0x3000ed02
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x70]
cmp eax, edx
je 0x3000ed2b
xor ecx, ecx
cmp dword [ebp - 0x30], edx
jle 0x3000ed32
sub eax, dword [ebp + ecx*4 - 0xac]
cmp eax, edx
mov dword [ebp - 0x70], eax
jle 0x3000ed26
inc ecx
cmp ecx, dword [ebp - 0x30]
jl 0x3000ed10
jmp 0x3000ed32
mov dword [ebp - 0x70], ecx
jmp 0x3000ed32
mov eax, dword [ebp - 0x30]
dec eax
mov dword [ebp - 0x70], eax
push 0xc
xor eax, eax
pop ecx
lea edi, [ebp - 0xe4]
rep stosd dword es:[edi], eax
xor ecx, ecx
cmp dword [ebp - 0x60], ecx
je 0x3000ed70
cmp dword [ebp - 0x58], 0x13
lea ecx, [ebp - 0x108]
sete al
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0xf8]
push eax
push esi
lea eax, [ebp - 0xe0]
call fcn.3000e653
xor ecx, ecx
mov eax, dword [ebp - 0x60]
neg eax
sbb eax, eax
and eax, dword [ebp - 0xf4]
cmp dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x44], eax
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
jle 0x3000f0f4
mov dword [ebp - 0x40], ecx
xor eax, eax
cmp dword [ebp - 0x30], eax
mov dword [ebp - 0x10], 0x7fff
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x38], eax
jle 0x3000effc
mov ecx, dword [ebp - 0x38]
test ecx, ecx
mov eax, dword [ebp - 0x28]
je 0x3000edc7
add eax, dword [ebp + ecx*4 - 0xb0]
mov dword [ebp - 0x28], eax
mov edi, dword [ebp + ecx*4 - 0xac]
mov ecx, dword [ebp - 0x1c]
add edi, eax
add eax, ecx
cmp eax, dword [ebp - 0xc]
mov dword [ebp - 0xa0], eax
jge 0x3000effc
mov eax, dword [ebp - 0x14]
dec eax
cmp dword [ebp - 8], eax
mov dword [ebp - 0xb4], eax
jl 0x3000ee2e
cmp dword [ebp - 0x68], 0
jne 0x3000ee2e
cmp dword [ebp - 0x38], 0
jne 0x3000ee9b
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x14]
push dword [ebp - 0x44]
push dword [ebp - 0xc]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.30012ccc
test eax, eax
mov dword [ebp - 0x64], eax
jne 0x30010c6b
jmp 0x3000ee9b
mov eax, dword [ebp - 0x1c]
add eax, edi
cmp eax, dword [ebp - 0xc]
jg 0x3000ee69
push dword [ebp + 0x20]
mov eax, dword [ebp - 0x1c]
push dword [ebp + 0x1c]
add eax, edi
push dword [ebp + 0x14]
push dword [ebp - 0x44]
push eax
push dword [ebp - 0xa0]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.30012ccc
test eax, eax
mov dword [ebp - 0x64], eax
jne 0x30010c6b
cmp dword [ebp - 0x58], 8
jne 0x3000ee9b
mov eax, dword [ebp - 0x1c]
add eax, edi
cmp eax, dword [ebp - 0xc]
jge 0x3000ee9b
mov eax, dword [ebp - 0x1c]
add edi, eax
add edi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x84]
imul edi, edi, 0x14
push 1
push 0x4000
lea eax, [edi + eax - 4]
push eax
call fcn.30067eb7
mov eax, dword [ebp - 0x38]
and dword [ebp - 0x20], 0
cmp dword [ebp + eax*4 - 0xac], 0
jle 0x3000efa5
mov eax, dword [ebp - 0xa0]
mov edi, dword [ebp - 0x20]
add eax, edi
cmp eax, dword [ebp - 0xc]
jge 0x3000efa5
push eax
push esi
call fcn.3001c300
test edi, edi
mov ebx, eax
lea ecx, [ebx + 0x30]
jne 0x3000eedc
mov eax, dword [ecx]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], ebx
cmp dword [ebp - 0x8c], 0
je 0x3000eeea
mov eax, dword [ebx + 0x68]
jmp 0x3000ef2d
mov eax, dword [ecx + 0xc]
mov edx, dword [ebx + 0xf0]
sub eax, dword [ecx + 4]
test edx, edx
je 0x3000eefc
mov eax, edx
mov edi, dword [ebx + 0xe8]
test edi, edi
je 0x3000ef08
sub eax, edi
test word [ebx + 0x2c], 0x2000
jne 0x3000ef1e
mov edx, dword [ebx + 0x84]
sub edx, dword [ebx + 0x8c]
add eax, edx
cdq
sub eax, edx
sar eax, 1
add eax, edi
cmp eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
jge 0x3000ef30
mov dword [ebp - 0x10], eax
mov edi, dword [ebp - 0x38]
test edi, edi
jne 0x3000ef4c
mov eax, dword [ebp - 0x20]
mov edx, dword [ecx + 8]
lea eax, [ebp + eax*4 - 0xe0]
cmp edx, dword [eax]
jle 0x3000ef80
mov dword [eax], edx
jmp 0x3000ef80
cmp dword [ebp - 0x20], 1
jne 0x3000ef80
cmp dword [ebp - 0x30], 3
jge 0x3000ef68
mov eax, edi
shl eax, 4
lea edx, [ebp + eax - 0xdc]
mov eax, dword [ecx]
jmp 0x3000ef77
mov eax, dword [ecx + 8]
mov edx, edi
shl edx, 4
lea edx, [ebp + edx - 0xdc]
sub eax, dword [ebp - 0x2c]
cmp eax, dword [edx]
jle 0x3000ef80
mov dword [edx], eax
cmp dword [ebp - 0x44], 0
jle 0x3000ef92
push dword [ebp - 0x44]
push 0
push ecx
call dword [sym.imp.USER32.dll_OffsetRect]
inc dword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp + edi*4 - 0xac]
jl 0x3000eeb0
mov eax, dword [ebp - 0xb4]
cmp dword [ebp - 8], eax
jl 0x3000efbc
cmp dword [ebp - 0x68], 0
jne 0x3000efbc
cmp dword [ebp - 0x38], 0
jne 0x3000efc5
mov eax, dword [esi + 0x24]
mov ecx, dword [ebp - 0x3c]
mov dword [ecx + 0x14], eax
mov eax, dword [esi + 0x28]
sub eax, dword [esi + 0x20]
cmp dword [ebp - 0x9c], eax
jge 0x3000efd9
mov dword [ebp - 0x9c], eax
mov eax, dword [esi + 0xa4]
push dword [esi + 0x94]
add eax, esi
push eax
call fcn.3001b958
inc dword [ebp - 0x38]
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x30]
jl 0x3000edb3
cmp dword [ebp - 0x60], 0
jne 0x3000f0a2
xor eax, eax
cmp dword [ebp - 0x98], eax
je 0x3000f16b
cmp dword [ebp - 8], eax
jne 0x3000f038
cmp dword [ebp - 0x30], 3
jge 0x3000f038
cmp dword [ebp - 0x90], eax
jne 0x3000f038
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x10]
lea edi, [ecx + eax]
xor eax, eax
push eax
push eax
push eax
push eax
jmp 0x3000f094
cmp dword [ebp - 0x58], 3
je 0x3000f046
cmp dword [ebp - 0x90], eax
je 0x3000f056
cmp dword [ebp - 4], eax
jne 0x3000f056
mov eax, dword [esi + 0x84]
neg eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x10]
push 0x2000
lea edi, [ecx + eax]
mov ecx, dword [ebp - 0x4c]
xor eax, eax
push eax
push eax
push eax
mov eax, dword [ebp - 8]
push edi
push dword [ebp - 4]
add eax, ecx
push eax
push esi
call fcn.3001ba39
cmp dword [ebp - 0x30], 2
jle 0x3000f09f
mov ecx, dword [ebp - 0x4c]
xor eax, eax
push eax
push 1
push eax
push eax
mov eax, dword [ebp - 8]
add eax, ecx
add eax, dword [ebp - 0x14]
push edi
push dword [ebp - 4]
push eax
push esi
call fcn.3001ba39
mov dword [ebp - 4], edi
mov edi, dword [ebp - 0x44]
mov eax, dword [ebp + 0x18]
add dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
add edi, dword [ebp - 0x9c]
lea ecx, [eax - 1]
cmp dword [ebp - 8], ecx
mov dword [ebp - 0x44], edi
jge 0x3000f0d7
add edi, dword [ebp - 0x34]
cmp dword [ebp - 0x98], 0
mov dword [ebp - 0x44], edi
jne 0x3000f0d7
add edi, dword [esi + 0x84]
mov dword [ebp - 0x44], edi
cmp edi, 0x870
ja 0x3000f1f0
inc dword [ebp - 8]
cmp dword [ebp - 8], eax
jl 0x3000ed95
mov eax, dword [ebp - 0x44]
xor ecx, ecx
cmp dword [ebp - 0x14], 1
mov dword [ebp - 0x9c], eax
jg 0x3000f236
cmp dword [ebp - 0x68], ecx
jne 0x3000f236
cmp dword [ebp - 0x98], ecx
jne 0x3000f3b8
push 0
push esi
call fcn.3001c300
mov edi, eax
lea eax, [ebp - 0x80]
push eax
push edi
call fcn.30010d33
test byte [edi + 0xf4], 4
je 0x3000f204
push edi
push esi
call fcn.3001c5e9
cmp eax, 0xffffffff
je 0x3000f204
mov eax, dword [edi + 0x60]
mov ecx, dword [edi + 0x30]
add ecx, eax
mov eax, dword [edi + 0x34]
push 2
push 0
push ecx
push ecx
mov ecx, dword [edi + 0xf0]
sub ecx, dword [ebp - 0x74]
add ecx, eax
jmp 0x3000f220
cmp dword [ebp - 8], eax
mov edi, dword [ebp - 0x44]
jle 0x3000f1c8
mov eax, dword [esi + 0x84]
xor ecx, ecx
push 0x2000
push ecx
push ecx
push ecx
mov ecx, edi
sub ecx, eax
push ecx
mov ecx, dword [ebp - 4]
sub ecx, eax
mov eax, dword [ebp - 8]
push ecx
mov ecx, dword [ebp - 0x4c]
add eax, ecx
push eax
push esi
call fcn.3001ba39
cmp dword [ebp - 0x30], 2
jle 0x3000f1e8
mov eax, dword [esi + 0x84]
xor ecx, ecx
push ecx
push 1
push ecx
push ecx
mov ecx, edi
sub ecx, eax
push ecx
mov ecx, dword [ebp - 4]
sub ecx, eax
mov eax, dword [ebp - 8]
push ecx
mov ecx, dword [ebp - 0x4c]
add eax, ecx
add eax, dword [ebp - 0x14]
jmp 0x3000f1e1
push 0x2001
xor eax, eax
push eax
push eax
mov ecx, edi
sub ecx, dword [esi + 0x84]
push eax
push ecx
mov ecx, dword [ebp - 0x6c]
neg ecx
push ecx
push eax
push esi
call fcn.3001ba39
mov dword [ebp - 4], edi
jmp 0x3000f0a5
mov eax, dword [esi + 0x38]
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], eax
mov dword [ebp - 0x64], 0x67
jmp 0x30010c6b
mov eax, dword [edi + 0x64]
mov ecx, dword [edi + 0x30]
add ecx, eax
mov eax, dword [edi + 0x34]
push 2
push 0
push ecx
push ecx
mov ecx, dword [edi + 0xe8]
add ecx, eax
add ecx, dword [ebp - 0x7c]
sub eax, dword [esi + 0x84]
push ecx
push eax
push dword [ebp - 0x24]
push esi
call fcn.3001ba39
jmp 0x3000f3b8
cmp dword [ebp - 0x14], ecx
mov dword [ebp - 8], ecx
jle 0x3000f3b8
mov eax, dword [ebp + 0x18]
neg eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x34], eax
push dword [ebp - 0x28]
push esi
call fcn.3001c300
mov edi, eax
lea eax, [ebp - 0x80]
push eax
push edi
call fcn.30010d33
cmp dword [ebp - 0x54], 0
jne 0x3000f28a
mov eax, dword [ebp - 0xe0]
sub eax, dword [edi + 0x38]
cmp dword [ebp - 0x88], 0
mov dword [ebp - 0x18], eax
je 0x3000f291
xor eax, eax
mov dword [ebp - 0x18], eax
jmp 0x3000f291
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x3000f32e
mov eax, dword [ebp - 0x18]
sub dword [edi + 0x18], eax
add dword [edi + 0x14], eax
push 0
push eax
lea eax, [edi + 0x30]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [ebp - 0x14]
dec eax
cmp dword [ebp - 8], eax
mov eax, dword [ebp - 0x34]
je 0x3000f2c1
mov eax, dword [ebp - 0xac]
mov dword [ebp - 4], eax
xor eax, eax
inc eax
cmp dword [ebp - 4], eax
mov dword [ebp - 0x20], eax
jle 0x3000f32e
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x28]
add eax, ecx
push eax
push esi
call fcn.3001c300
push 0
push dword [ebp - 0x18]
mov ebx, eax
lea eax, [ebx + 0x30]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
cmp dword [ebp - 0x20], 1
jne 0x3000f306
mov eax, dword [ebp - 0xdc]
sub eax, dword [ebx + 0x38]
jns 0x3000f306
sub dword [ebp - 0xdc], eax
mov ecx, dword [ebx + 0x38]
mov eax, dword [ebx + 0x14]
sub eax, ecx
add eax, dword [ebx + 0x30]
test eax, eax
jle 0x3000f319
add eax, ecx
jmp 0x3000f31b
mov eax, ecx
cmp eax, dword [edi + 0x14]
jle 0x3000f323
mov dword [edi + 0x14], eax
inc dword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 4]
jl 0x3000f2cf
cmp dword [ebp - 0x98], 0
jne 0x3000f39d
test byte [edi + 0xf4], 4
je 0x3000f36a
push edi
push esi
call fcn.3001c5e9
cmp eax, 0xffffffff
je 0x3000f36a
mov eax, dword [edi + 0x60]
mov ecx, dword [edi + 0x30]
add ecx, eax
mov eax, dword [edi + 0x34]
push 2
push 0
push ecx
push ecx
mov ecx, dword [edi + 0xf0]
sub ecx, dword [ebp - 0x74]
add ecx, eax
jmp 0x3000f386
mov eax, dword [edi + 0x64]
mov ecx, dword [edi + 0x30]
add ecx, eax
mov eax, dword [edi + 0x34]
push 2
push 0
push ecx
push ecx
mov ecx, dword [edi + 0xe8]
add ecx, eax
add ecx, dword [ebp - 0x7c]
sub eax, dword [esi + 0x84]
push ecx
mov ecx, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x28]
add eax, ecx
push eax
push esi
call fcn.3001ba39
mov eax, dword [ebp + 0x18]
add dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x2c]
inc dword [ebp - 8]
add dword [ebp - 0x34], eax
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x14]
jl 0x3000f253
cmp dword [ebp - 0xac], 1
jle 0x3000f658
xor eax, eax
cmp dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
jle 0x3000f658
imul eax, dword [ebp + 0x18]
lea edi, [eax + 1]
cmp edi, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
jge 0x3000f648
push eax
push esi
call fcn.3001c300
push edi
push esi
mov dword [ebp - 0x3c], eax
call fcn.3001c300
mov ebx, eax
lea eax, [ebp - 0x80]
push eax
mov edi, ebx
push ebx
mov dword [ebp - 0x48], edi
call fcn.30010d33
cmp dword [ebp - 0x14], 1
jle 0x3000f41c
mov eax, dword [ebp - 0xdc]
sub eax, dword [ebx + 0x38]
mov dword [ebp - 0x18], eax
jmp 0x3000f423
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
test eax, eax
jle 0x3000f496
mov eax, dword [ebp - 0x14]
dec eax
cmp dword [ebp - 8], eax
jne 0x3000f438
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x1c]
jmp 0x3000f43e
mov eax, dword [ebp - 0xac]
xor ecx, ecx
inc ecx
cmp eax, ecx
mov dword [ebp - 4], eax
mov dword [ebp - 0x20], ecx
jle 0x3000f496
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
add eax, ecx
push eax
push esi
call fcn.3001c300
push 0
push dword [ebp - 0x18]
mov ebx, eax
lea eax, [ebx + 0x30]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [ebx + 0x38]
mov eax, dword [ebx + 0x14]
sub eax, ecx
add eax, dword [ebx + 0x30]
test eax, eax
jle 0x3000f47e
add eax, ecx
jmp 0x3000f480
mov eax, ecx
mov ecx, dword [ebp - 0x3c]
cmp eax, dword [ecx + 0x14]
jle 0x3000f48b
mov dword [ecx + 0x14], eax
inc dword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 4]
jl 0x3000f44b
cmp dword [ebp - 0x60], 0
jne 0x3000f648
xor ecx, ecx
cmp dword [ebp - 0x98], ecx
je 0x3000f53e
mov eax, dword [ebp - 8]
cmp eax, ecx
jne 0x3000f4c3
cmp dword [ebp - 0x30], 3
jge 0x3000f4c3
cmp dword [ebp - 0x90], ecx
je 0x3000f4c8
cmp dword [ebp - 0x5c], ecx
jne 0x3000f4d3
mov eax, dword [ebp - 0x84]
mov eax, dword [eax + 8]
jmp 0x3000f4e5
mov ecx, dword [ebp - 0x4c]
add eax, ecx
mov ecx, dword [ebp - 0x84]
imul eax, eax, 0x14
mov eax, dword [eax + ecx + 8]
test byte [edi + 0xf4], 4
mov dword [ebp - 0x10], eax
je 0x3000f532
push edi
push esi
call fcn.3001c5e9
cmp eax, 0xffffffff
je 0x3000f532
test word [edi + 0xf4], 0x100
mov ecx, dword [ebp - 0x1c]
push 0
push 1
je 0x3000f529
push dword [edi + 0x38]
mov eax, dword [ebp - 0x3c]
push dword [eax + 0x38]
mov eax, dword [ebp - 0x24]
push dword [ebp - 0x10]
add ecx, eax
push dword [ebp - 0x10]
push ecx
jmp 0x3000f642
mov eax, dword [edi + 0x60]
add eax, dword [edi + 0x30]
push eax
jmp 0x3000f512
mov ecx, dword [ebp - 0x1c]
push 0
push 1
push dword [edi + 0x30]
jmp 0x3000f512
test byte [edi + 0xf4], 4
je 0x3000f571
push edi
push esi
call fcn.3001c5e9
cmp eax, 0xffffffff
je 0x3000f571
mov eax, dword [edi + 0x60]
mov ecx, dword [edi + 0x30]
add ecx, eax
mov eax, dword [edi + 0x34]
push 2
push 0
push ecx
push ecx
mov ecx, dword [edi + 0xf0]
sub ecx, dword [ebp - 0x74]
add ecx, eax
jmp 0x3000f58d
mov eax, dword [edi + 0x64]
mov ecx, dword [edi + 0x30]
add ecx, eax
mov eax, dword [edi + 0x34]
push 2
push 0
push ecx
push ecx
mov ecx, dword [edi + 0xe8]
add ecx, eax
add ecx, dword [ebp - 0x7c]
sub eax, dword [esi + 0x84]
push ecx
mov ecx, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x1c]
lea eax, [eax + ecx + 1]
push eax
push esi
call fcn.3001ba39
mov eax, dword [ebp - 0x3c]
test byte [eax + 0xf4], 4
je 0x3000f5c6
push eax
push esi
call fcn.3001c5e9
cmp eax, 0xffffffff
je 0x3000f5c6
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x60]
jmp 0x3000f5cc
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x64]
test byte [edi + 0xf4], 4
mov dword [ebp - 4], eax
je 0x3000f601
push edi
push esi
call fcn.3001c5e9
cmp eax, 0xffffffff
je 0x3000f601
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x34]
sub eax, dword [esi + 0x84]
xor ecx, ecx
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x14]
dec eax
cmp dword [ebp - 8], eax
mov eax, dword [edi + 0x60]
jmp 0x3000f61c
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x34]
sub eax, dword [esi + 0x84]
xor ecx, ecx
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x14]
dec eax
cmp dword [ebp - 8], eax
mov eax, dword [edi + 0x64]
sete cl
add eax, dword [edi + 0x30]
push 0
push ecx
mov ecx, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x30]
add eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0x1c]
push dword [ebp - 0x34]
add eax, ecx
push dword [ebp - 0x34]
add eax, dword [ebp - 0xc]
push eax
push esi
call fcn.3001ba39
mov eax, dword [ebp - 8]
inc eax
cmp eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
jl 0x3000f3d3
cmp dword [ebp - 0x30], 1
jle 0x3000f7c1
cmp dword [ebp - 0xa8], 1
jle 0x3000f7c1
cmp dword [ebp - 0x14], 1
jle 0x3000f7c1
xor eax, eax
cmp dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
jle 0x3000f7c1
mov ecx, dword [ebp - 0xac]
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x18]
neg eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0xc]
sub eax, ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 0x28], eax
jge 0x3000f7c1
push dword [ebp - 0x28]
push esi
call fcn.3001c300
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x14]
dec eax
cmp dword [ebp - 8], eax
jge 0x3000f6db
push dword [ebp - 0x28]
push esi
call fcn.3001c300
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0xa8]
jmp 0x3000f6ea
push dword [ebp - 0x34]
push esi
call fcn.3001c300
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
xor eax, eax
inc eax
cmp dword [ebp - 4], eax
mov dword [ebp - 0x20], eax
jle 0x3000f7a3
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x28]
add eax, ecx
cmp eax, dword [ebp - 0xc]
jge 0x3000f7a3
push eax
push esi
call fcn.3001c300
cmp dword [ebp - 0x20], 1
mov ebx, eax
jne 0x3000f763
mov eax, dword [ebp - 0x14]
dec eax
cmp dword [ebp - 0x30], 3
jge 0x3000f741
cmp dword [ebp - 8], eax
jge 0x3000f736
mov edi, dword [ebp - 0xcc]
sub edi, dword [ebx + 0x30]
jmp 0x3000f760
mov eax, dword [ebp - 0x48]
mov edi, dword [eax + 0x30]
sub edi, dword [ebx + 0x30]
jmp 0x3000f75a
cmp dword [ebp - 8], eax
jge 0x3000f751
mov edi, dword [ebp - 0xcc]
sub edi, dword [ebx + 0x38]
jmp 0x3000f760
mov eax, dword [ebp - 0x48]
mov edi, dword [eax + 0x30]
sub edi, dword [ebx + 0x38]
add edi, dword [ebp - 0xcc]
mov dword [ebp - 0x18], edi
test edi, edi
jle 0x3000f794
push 0
push edi
lea eax, [ebx + 0x30]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [ebx + 0x38]
mov eax, dword [ebx + 0x14]
sub eax, ecx
add eax, dword [ebx + 0x30]
test eax, eax
jle 0x3000f787
add eax, ecx
jmp 0x3000f789
mov eax, ecx
mov ecx, dword [ebp - 0x3c]
cmp eax, dword [ecx + 0x14]
jle 0x3000f794
mov dword [ecx + 0x14], eax
inc dword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 4]
jl 0x3000f6fc
mov eax, dword [ebp + 0x18]
inc dword [ebp - 8]
add dword [ebp - 0x34], eax
add dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
add dword [ebp - 0x1c], ecx
cmp eax, dword [ebp - 0x14]
jl 0x3000f6a6
xor eax, eax
cmp dword [ebp - 0x30], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x38], eax
jle 0x3000fb5d
mov eax, dword [ebp - 0x14]
dec eax
imul eax, dword [ebp + 0x18]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0xe4]
mov dword [ebp - 4], eax
xor ecx, ecx
cmp dword [ebp - 0x30], 1
jne 0x3000f823
cmp dword [ebp - 0x54], ecx
je 0x3000f7fe
mov eax, dword [esi + 0x7c]
mov dword [ebp - 0xe4], eax
jmp 0x3000f823
mov eax, dword [ebp - 0xe0]
cmp dword [ebp - 0xd8], eax
jge 0x3000f812
mov dword [ebp - 0xd8], eax
cmp dword [ebp - 0x88], ecx
jne 0x3000f823
mov eax, dword [esi + 0x7c]
add dword [ebp - 0xd8], eax
cmp dword [ebp - 0x68], ecx
je 0x3000f832
cmp dword [ebp - 0x60], ecx
jne 0x3000f832
mov eax, dword [ebp - 0x14]
jmp 0x3000f836
mov eax, dword [ebp - 0x14]
dec eax
cmp eax, ecx
mov dword [ebp - 0x8c], eax
mov dword [ebp - 8], ecx
jle 0x3000f986
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 0x34], eax
jge 0x3000f986
push dword [ebp - 0x34]
push esi
call fcn.3001c300
cmp dword [ebp - 0x30], 1
mov edi, eax
jne 0x3000f903
cmp dword [ebp - 0x54], 0
je 0x3000f8ac
mov eax, dword [esi + 0x7c]
add dword [edi + 0x18], eax
mov eax, dword [esi + 0xa8]
mov ecx, dword [edi + 0x18]
cdq
sub eax, edx
sar eax, 1
add ecx, eax
mov dword [edi + 0x18], ecx
cmp dword [esi + 0xb0], 0
je 0x3000f8eb
mov eax, dword [esi + 0xbc]
test eax, eax
jge 0x3000f8eb
cdq
xor eax, edx
sub eax, edx
add eax, ecx
mov dword [edi + 0x18], eax
jmp 0x3000f8eb
cmp dword [ebp - 0x88], 0
jne 0x3000f8eb
mov eax, dword [esi + 0x7c]
add dword [edi + 0x14], eax
mov eax, dword [esi + 0xa8]
mov ecx, dword [edi + 0x14]
cdq
sub eax, edx
sar eax, 1
add ecx, eax
mov dword [edi + 0x14], ecx
cmp dword [esi + 0xb0], 0
je 0x3000f8eb
mov eax, dword [esi + 0xbc]
test eax, eax
jle 0x3000f8eb
cdq
xor eax, edx
sub eax, edx
add eax, ecx
mov dword [edi + 0x14], eax
cmp dword [ebp - 0x60], 0
je 0x3000f903
mov eax, dword [ebp - 0xf0]
add dword [edi + 0x14], eax
mov eax, dword [ebp - 0xf8]
add dword [edi + 0x18], eax
mov eax, dword [edi + 0x14]
mov ecx, dword [ebp - 4]
cmp eax, dword [ecx + 0xc]
jle 0x3000f911
mov dword [ecx + 0xc], eax
mov ecx, dword [ebp - 0x38]
test ecx, ecx
jle 0x3000f922
cmp dword [edi + 0x18], 0
jge 0x3000f922
and dword [edi + 0x18], 0
xor eax, eax
inc eax
cmp dword [ebp + ecx*4 - 0xac], eax
mov dword [ebp - 0x20], eax
jle 0x3000f962
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x20]
add eax, ecx
push eax
push esi
call fcn.3001c300
mov ebx, eax
mov eax, dword [ebx + 0x18]
sub eax, dword [ebx + 0x30]
cmp eax, dword [edi + 0x18]
jle 0x3000f950
mov dword [edi + 0x18], eax
inc dword [ebp - 0x20]
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [ebp + eax*4 - 0xac]
jl 0x3000f931
mov edi, dword [edi + 0x18]
mov eax, dword [ebp - 4]
cmp edi, dword [eax]
jle 0x3000f96e
mov dword [eax], edi
mov eax, dword [ebp + 0x18]
inc dword [ebp - 8]
add dword [ebp - 0x34], eax
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x8c]
jl 0x3000f84d
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x2c]
add eax, ecx
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp + ecx*4 - 0xac]
add dword [ebp - 0x28], edx
cmp eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
jge 0x3000fb3e
push eax
push esi
call fcn.3001c300
cmp dword [ebp - 0x30], 1
mov edi, eax
jne 0x3000fab5
cmp dword [ebp - 0x54], 0
je 0x3000fa37
mov eax, dword [esi + 0x7c]
add dword [edi + 0x18], eax
mov eax, dword [esi + 0xa8]
mov ecx, dword [edi + 0x18]
cdq
sub eax, edx
sar eax, 1
lea ebx, [eax + ecx]
mov ecx, dword [ebp - 0xe4]
mov dword [edi + 0x18], ebx
mov eax, dword [esi + 0xa8]
cdq
sub eax, edx
sar eax, 1
sub ecx, eax
cmp dword [esi + 0xb0], 0
mov dword [ebp - 0x50], ecx
je 0x3000fa1d
mov eax, dword [esi + 0xbc]
test eax, eax
jge 0x3000fa1d
cdq
xor eax, edx
sub eax, edx
add eax, ebx
mov dword [edi + 0x18], eax
mov eax, dword [esi + 0xbc]
cdq
xor eax, edx
sub eax, edx
sub ecx, eax
mov dword [ebp - 0x50], ecx
mov eax, dword [esi + 0xa8]
mov ebx, dword [esi + 0x7c]
cdq
sub eax, edx
sar eax, 1
mov edx, ebx
sub edx, eax
cmp ecx, edx
jge 0x3000fa9d
add ecx, ebx
jmp 0x3000fa9a
cmp dword [ebp - 0x88], 0
jne 0x3000fa9d
mov eax, dword [esi + 0x7c]
add dword [edi + 0x14], eax
mov eax, dword [esi + 0xa8]
mov ebx, dword [edi + 0x14]
mov ecx, dword [ebp - 0xd8]
cdq
sub eax, edx
sar eax, 1
add ebx, eax
sub ecx, eax
mov dword [edi + 0x14], ebx
cmp dword [esi + 0xb0], 0
mov dword [ebp - 0x50], ecx
je 0x3000fa91
mov eax, dword [esi + 0xbc]
test eax, eax
jle 0x3000fa91
cdq
xor eax, edx
sub eax, edx
add eax, ebx
mov dword [edi + 0x14], eax
mov eax, dword [esi + 0xbc]
cdq
xor eax, edx
sub eax, edx
sub ecx, eax
mov dword [ebp - 0x50], ecx
mov eax, dword [esi + 0x7c]
cmp ecx, eax
jge 0x3000fa9d
add ecx, eax
mov dword [ebp - 0x50], ecx
cmp dword [ebp - 0x60], 0
je 0x3000fab5
mov eax, dword [ebp - 0xf0]
add dword [edi + 0x14], eax
mov eax, dword [ebp - 0xf8]
add dword [edi + 0x18], eax
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp + eax*4 - 0xac]
lea eax, [eax + ecx - 1]
mov ecx, dword [ebp - 0xc]
cmp eax, ecx
jl 0x3000fad0
lea eax, [ecx - 1]
push eax
push esi
call fcn.3001c300
mov ebx, eax
mov eax, dword [ebp - 0x30]
dec eax
cmp dword [ebp - 0x38], eax
jge 0x3000faf4
mov ecx, dword [ebx + 0x38]
mov eax, dword [edi + 0x30]
mov edx, dword [ebp - 4]
sub ecx, eax
cmp ecx, dword [edx + 0xc]
jle 0x3000fb19
jmp 0x3000fb16
mov eax, dword [ebx + 0x38]
mov ecx, dword [ebx + 0x14]
sub ecx, eax
add ecx, dword [ebx + 0x30]
test ecx, ecx
jle 0x3000fb07
add ecx, eax
jmp 0x3000fb09
mov ecx, eax
mov eax, dword [edi + 0x30]
mov edx, dword [ebp - 4]
sub ecx, eax
cmp ecx, dword [edx + 0xc]
jle 0x3000fb19
mov dword [edx + 0xc], ecx
cmp dword [ebp - 0x38], 0
jle 0x3000fb35
sub eax, dword [edi + 0x18]
mov ecx, dword [esi + 0x7c]
sub eax, dword [ebp - 0x40]
add ecx, ecx
sub eax, ecx
mov ecx, dword [ebp - 4]
cmp eax, dword [ecx]
jle 0x3000fb35
mov dword [ecx], eax
mov eax, dword [ebx + 0x38]
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x40], eax
test ecx, ecx
jle 0x3000fb4c
mov edx, dword [esi + 0x7c]
mov eax, dword [ebp - 4]
add edx, edx
add dword [eax], edx
add dword [ebp - 4], 0x10
inc ecx
cmp ecx, dword [ebp - 0x30]
mov dword [ebp - 0x38], ecx
jl 0x3000f7e6
cmp dword [ebp - 0x60], 0
je 0x3000fb98
mov ecx, dword [ebp - 0x44]
mov eax, dword [ebp - 0xec]
add eax, ecx
mov dword [ebp - 0x9c], eax
mov eax, dword [esi + 0xa8]
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 0xe4]
sar ecx, 1
cmp dword [ebp - 0x54], 0
jne 0x3000fb93
mov eax, dword [ebp - 0xd8]
sub eax, ecx
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x30], 1
jle 0x30010224
and dword [ebp - 8], 0
cmp dword [ebp - 0x14], 0
jle 0x30010224
mov edi, dword [ebp - 8]
imul edi, dword [ebp + 0x18]
and dword [ebp - 0x1c], 0
push edi
push esi
call fcn.3001c300
mov dword [ebp - 0x3c], eax
xor eax, eax
inc eax
cmp dword [ebp - 0x30], eax
mov dword [ebp - 0x38], eax
jle 0x30010215
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0xd4]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0x4c]
add ecx, eax
mov dword [ebp - 0x34], ecx
cmp edi, dword [ebp - 0xc]
jge 0x30010215
mov edx, dword [ebp - 0x38]
shl edx, 2
lea ecx, [ebp + edx - 0xac]
mov eax, dword [ecx - 4]
add edi, eax
add eax, edx
mov eax, dword [ebp + eax*4 - 0xf4]
add eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0xa0]
mov dword [ebp - 0x40], eax
mov eax, dword [edx - 4]
add eax, dword [ebp - 0x1c]
mov edx, dword [edx]
add edx, eax
add eax, dword [esi + 0x7c]
cmp edi, dword [ebp - 0xc]
mov dword [ebp - 0x8c], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x2c], eax
jge 0x3000fd0a
mov eax, dword [ecx]
mov dword [ebp - 4], eax
mov eax, edx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
dec eax
cmp dword [ebp - 8], eax
jne 0x3000fc8f
mov eax, dword [ebp - 0xc]
push edi
sub eax, edi
push esi
mov dword [ebp - 4], eax
call fcn.3001c300
mov ebx, eax
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebx + 0x30]
test edi, edi
mov dword [ebp - 0x18], eax
jle 0x3000fc8f
lea eax, [edi - 1]
push eax
push esi
call fcn.3001c300
mov ecx, dword [esi + 0x7c]
mov dword [ebp - 0x48], eax
mov eax, dword [eax + 0x38]
lea eax, [eax + ecx*2]
sub eax, dword [ebx + 0x30]
cmp eax, dword [ebp - 0x18]
jle 0x3000fc8f
mov dword [ebp - 0x18], eax
xor ecx, ecx
cmp dword [ebp - 0x18], ecx
jle 0x3000fd2a
cmp dword [ebp - 4], ecx
mov dword [ebp - 0x20], ecx
jle 0x3000fd2a
mov eax, dword [ebp - 0x20]
add eax, edi
push eax
push esi
call fcn.3001c300
push 0
push dword [ebp - 0x18]
mov ebx, eax
lea eax, [ebx + 0x30]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [ebp - 0x14]
dec eax
cmp dword [ebp - 8], eax
jne 0x3000fceb
mov ecx, dword [ebx + 0x38]
mov eax, dword [ebx + 0x14]
sub eax, ecx
add eax, dword [ebx + 0x30]
test eax, eax
jle 0x3000fcdf
add eax, ecx
jmp 0x3000fce1
mov eax, ecx
mov ecx, dword [ebp - 0x3c]
cmp eax, dword [ecx + 0x14]
jle 0x3000fcfd
jmp 0x3000fcf7
cmp dword [ebp - 0x20], 0
jne 0x3000fcfd
mov eax, dword [ebx + 0x14]
add eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x3c]
mov dword [ecx + 0x14], eax
inc dword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 4]
jl 0x3000fca6
jmp 0x3000fd28
cmp dword [ebp - 0x38], 1
mov edi, dword [ebp - 0xc]
jle 0x3000fd28
mov eax, dword [ebp - 0x14]
dec eax
imul eax, dword [ebp + 0x18]
mov ecx, edi
sub ecx, eax
cmp ecx, 2
je 0x300101fb
xor ecx, ecx
cmp dword [ebp - 0x60], ecx
jne 0x300101dd
cmp dword [ebp - 0x98], ecx
je 0x3000ff0b
cmp dword [ebp - 8], ecx
jne 0x3000fd52
cmp dword [ebp - 0x30], 3
jge 0x3000fd52
cmp dword [ebp - 0x90], ecx
je 0x3000fd5a
cmp dword [ebp - 0x5c], ecx
je 0x3000fd5a
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x84]
mov eax, ecx
imul eax, eax, 0x14
add eax, edx
mov edx, dword [eax + 8]
mov eax, dword [eax]
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 0x30]
dec edx
cmp dword [ebp - 0x38], edx
jne 0x3000fd86
cmp dword [ebp - 0xb0], 0
jne 0x3000fd86
xor edx, edx
inc edx
jmp 0x3000fd88
xor edx, edx
push 0x2000
push edx
push dword [ebp - 0x2c]
push dword [ebp - 0x2c]
push dword [ebp - 0x10]
push eax
push ecx
push esi
call fcn.3001ba39
lea eax, [edi - 1]
push eax
push esi
call fcn.3001c300
mov ebx, eax
lea eax, [ebp - 0x80]
push eax
push ebx
call fcn.30010d33
test byte [ebx + 0xf4], 4
je 0x3000fdf5
push ebx
push esi
call fcn.3001c5e9
cmp eax, 0xffffffff
je 0x3000fdf5
test word [ebx + 0xf4], 0x100
push 0
push 1
push dword [ebp - 0x2c]
je 0x3000fdea
mov eax, dword [ebx + 0x30]
sub eax, dword [ebx + 0x38]
add eax, dword [ebp - 0x80]
add eax, dword [ebp - 0x40]
jmp 0x3000fe02
mov eax, dword [ebx + 0x60]
sub eax, dword [ebx + 0x38]
add eax, dword [ebx + 0x30]
jmp 0x3000fde5
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0x78]
push 1
push 1
push dword [ebp - 0x2c]
push eax
push dword [ebp - 0x10]
mov eax, dword [ebp - 0x24]
push dword [ebp - 0x10]
lea eax, [edi + eax - 1]
push eax
push esi
call fcn.3001ba39
cmp edi, dword [ebp - 0xc]
jge 0x3000fe89
push edi
push esi
call fcn.3001c300
lea ecx, [ebp - 0x80]
push ecx
push eax
mov dword [ebp - 0x48], eax
call fcn.30010d33
mov eax, dword [ebp - 0x48]
test byte [eax + 0xf4], 4
je 0x3000fe67
push eax
push esi
call fcn.3001c5e9
cmp eax, 0xffffffff
je 0x3000fe67
mov eax, dword [ebp - 0x48]
test word [eax + 0xf4], 0x100
mov eax, dword [eax + 0x60]
push 0
push 1
je 0x3000fe62
add eax, eax
sub eax, dword [ebp - 0x78]
add eax, dword [ebp - 0x1c]
jmp 0x3000fe73
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x1c]
push 2
push 1
add eax, ecx
push eax
push dword [ebp - 0x2c]
mov eax, dword [ebp - 0x24]
push dword [ebp - 0x10]
add eax, edi
push dword [ebp - 0x10]
push eax
push esi
call fcn.3001ba39
mov eax, dword [ebp - 0x8c]
cmp dword [eax], 1
jle 0x300101dd
lea eax, [edi + 1]
cmp eax, dword [ebp - 0xc]
jge 0x300101dd
cmp dword [ebp - 0x30], 3
jge 0x300101dd
push eax
push esi
call fcn.3001c300
mov ebx, eax
test byte [ebx + 0xf4], 4
je 0x3000ff02
push ebx
push esi
call fcn.3001c5e9
cmp eax, 0xffffffff
je 0x3000ff02
test word [ebx + 0xf4], 0x100
mov eax, dword [ebx + 0x60]
push 0
push 1
je 0x3000fefd
mov ecx, dword [ebx + 0x30]
lea eax, [ecx + eax*2]
push eax
mov eax, dword [ebp - 0x48]
push dword [eax + 0x38]
mov eax, dword [ebp - 0x24]
push dword [ebp - 0x10]
lea eax, [edi + eax + 1]
push dword [ebp - 0x10]
jmp 0x300101d6
add eax, dword [ebx + 0x30]
jmp 0x3000fee4
push 0
push 1
push dword [ebx + 0x30]
jmp 0x3000fee5
cmp dword [ebp - 8], ecx
mov dword [ebp - 0x18], ecx
jne 0x3000ff1f
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x18], 1
jmp 0x3000ff25
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x18]
imul eax, eax, 0x14
mov ecx, dword [ebp - 0x84]
or edx, 0x2000
push edx
mov edx, dword [ebp - 0x30]
add eax, ecx
mov ecx, dword [eax + 8]
mov eax, dword [eax]
dec edx
xor ebx, ebx
cmp dword [ebp - 0x38], edx
mov dword [ebp - 0x10], ecx
sete bl
push ebx
push dword [ebp - 0x2c]
push dword [ebp - 0x2c]
push ecx
push eax
push dword [ebp - 0x44]
push esi
call fcn.3001ba39
lea eax, [edi - 1]
push eax
push esi
call fcn.3001c300
mov ebx, eax
test byte [ebx + 0xf4], 4
je 0x3000ffc8
push ebx
push esi
call fcn.3001c5e9
cmp eax, 0xffffffff
je 0x3000ffc8
mov eax, dword [ebp - 0x14]
xor ecx, ecx
dec eax
test word [ebx + 0xf4], 0x100
push ecx
je 0x3000ffb2
cmp dword [ebp - 8], eax
mov eax, dword [ebp - 0x24]
sete cl
mov dword [ebp - 0x40], ecx
push dword [ebp - 0x40]
mov ecx, dword [ebp - 0xc]
push dword [ebp - 0x2c]
add eax, ecx
push dword [ebx + 0x30]
jmp 0x3000ffee
cmp dword [ebp - 8], eax
mov eax, dword [ebp - 0x24]
sete cl
mov dword [ebp - 0x40], ecx
mov ecx, dword [ebp - 0xc]
add eax, ecx
mov ecx, dword [ebx + 0x60]
jmp 0x3000ffe4
mov eax, dword [ebp - 0x14]
xor ecx, ecx
dec eax
cmp dword [ebp - 8], eax
mov eax, dword [ebp - 0x24]
sete cl
push 0
mov dword [ebp - 0x40], ecx
mov ecx, dword [ebp - 0xc]
add eax, ecx
mov ecx, dword [ebx + 0x64]
push dword [ebp - 0x40]
add ecx, dword [ebx + 0x30]
push dword [ebp - 0x2c]
push ecx
push dword [ebp - 0x10]
mov dword [ebp - 0x28], eax
push dword [ebp - 0x10]
lea eax, [edi + eax - 1]
push eax
push esi
call fcn.3001ba39
cmp edi, dword [ebp - 0xc]
jge 0x300101dd
push edi
push esi
call fcn.3001c300
mov ebx, eax
lea eax, [ebp - 0x80]
push eax
push ebx
call fcn.30010d33
test byte [ebx + 0xf4], 4
je 0x30010090
push ebx
push esi
call fcn.3001c5e9
cmp eax, 0xffffffff
je 0x30010090
mov eax, dword [ebx + 0x60]
add eax, dword [ebx + 0x30]
push 0
push dword [ebp - 0x40]
push eax
push dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
push dword [ebp - 0x10]
add eax, edi
push dword [ebp - 0x10]
push eax
push esi
call fcn.3001ba39
mov eax, dword [ebx + 0x60]
mov ecx, dword [ebx + 0x30]
add ecx, eax
mov eax, dword [ebx + 0x34]
xor edx, edx
cmp dword [ebp - 0x38], edx
push 0
setg dl
push edx
push ecx
push ecx
mov ecx, dword [ebx + 0xf0]
sub ecx, dword [ebp - 0x74]
add ecx, eax
sub eax, dword [esi + 0x84]
push ecx
push eax
mov eax, dword [ebp - 0x24]
add eax, edi
push eax
push esi
call fcn.3001ba39
mov eax, dword [ebx + 0x60]
jmp 0x300100eb
mov eax, dword [ebx + 0x30]
add eax, dword [ebx + 0x64]
push 0
push dword [ebp - 0x40]
push eax
push dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
push dword [ebp - 0x10]
add eax, edi
push dword [ebp - 0x10]
push eax
push esi
call fcn.3001ba39
mov eax, dword [ebx + 0x30]
mov ecx, dword [ebx + 0x64]
add ecx, eax
mov eax, dword [ebx + 0x34]
xor edx, edx
cmp dword [ebp - 0x38], edx
push 2
setg dl
push edx
push ecx
push ecx
mov ecx, dword [ebx + 0xe8]
add ecx, eax
add ecx, dword [ebp - 0x7c]
sub eax, dword [esi + 0x84]
push ecx
push eax
mov eax, dword [ebp - 0x24]
add eax, edi
push eax
push esi
call fcn.3001ba39
mov eax, dword [ebx + 0x64]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x8c]
cmp dword [eax], 1
mov dword [ebp - 0x48], ebx
jle 0x300101dd
lea eax, [edi + 1]
cmp eax, dword [ebp - 0xc]
jge 0x300101dd
push eax
push esi
call fcn.3001c300
mov ebx, eax
lea eax, [ebp - 0x80]
push eax
push ebx
call fcn.30010d33
test byte [ebx + 0xf4], 4
je 0x3001015a
push ebx
push esi
call fcn.3001c5e9
cmp eax, 0xffffffff
je 0x3001015a
mov eax, dword [ebx + 0x60]
mov ecx, dword [ebx + 0x30]
add ecx, eax
mov eax, dword [ebx + 0x34]
xor edx, edx
cmp dword [ebp - 0x38], 1
push 0
setg dl
push edx
push ecx
push ecx
mov ecx, dword [ebx + 0xf0]
sub ecx, dword [ebp - 0x74]
add ecx, eax
jmp 0x3001017e
mov eax, dword [ebx + 0x64]
mov ecx, dword [ebx + 0x30]
add ecx, eax
mov eax, dword [ebx + 0x34]
xor edx, edx
cmp dword [ebp - 0x38], 1
push 2
setg dl
push edx
push ecx
push ecx
mov ecx, dword [ebx + 0xe8]
add ecx, eax
add ecx, dword [ebp - 0x7c]
sub eax, dword [esi + 0x84]
push ecx
push eax
mov eax, dword [ebp - 0x24]
lea eax, [edi + eax + 1]
push eax
push esi
call fcn.3001ba39
test byte [ebx + 0xf4], 4
je 0x300101ae
push ebx
push esi
call fcn.3001c5e9
cmp eax, 0xffffffff
je 0x300101ae
mov edx, dword [ebx + 0x60]
jmp 0x300101b1
mov edx, dword [ebx + 0x64]
mov ecx, dword [ebp - 0x48]
mov eax, dword [ecx + 0x34]
sub eax, dword [esi + 0x84]
add edx, dword [ebx + 0x30]
mov ecx, dword [ecx + 0x30]
add ecx, dword [ebp - 4]
push 0
push dword [ebp - 0x40]
push edx
push ecx
push eax
push eax
mov eax, dword [ebp - 0x28]
lea eax, [edi + eax + 1]
push eax
push esi
call fcn.3001ba39
mov eax, dword [ebp - 0x14]
inc dword [ebp - 0x38]
add dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x38]
add dword [ebp - 0xa0], 0x10
cmp eax, dword [ebp - 0x30]
jl 0x3000fbeb
jmp 0x30010215
mov ecx, dword [ebp - 0x4c]
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
mov eax, dword [ebp - 8]
add eax, ecx
add eax, dword [ebp - 0x14]
push eax
push esi
call fcn.3001ba39
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x14]
jl 0x3000fbb0
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x84]
dec eax
imul eax, dword [ebp + 0x18]
push eax
push esi
mov dword [ebp - 0x2c], eax
call fcn.3001c300
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x20], eax
jmp 0x30010269
push dword [ebp - 0x20]
push esi
call fcn.3001c300
mov ecx, dword [ebp - 0x3c]
mov ebx, eax
mov eax, dword [ebx + 0x18]
sub eax, dword [ebx + 0x30]
cmp eax, dword [ecx + 0x18]
jle 0x30010263
mov dword [ecx + 0x18], eax
inc dword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0xc]
jl 0x30010247
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x18]
cmp eax, dword [ebp - 0xe4]
jle 0x30010282
mov dword [ebp - 0xe4], eax
cmp dword [ebp - 0x14], 1
jne 0x300102bd
mov eax, dword [ebp - 0x30]
dec eax
cmp dword [ebp - 0x70], eax
jge 0x300102bd
mov eax, dword [ebp - 0xc]
dec eax
push eax
push esi
call fcn.3001c300
mov edx, dword [esi + 0x7c]
mov ebx, eax
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x14]
mov ecx, eax
sub ecx, dword [ebx + 0x38]
cmp ecx, edx
mov dword [ebp - 0x18], ecx
jge 0x300102bd
sub eax, ecx
mov ecx, dword [ebp - 0x3c]
add eax, edx
mov dword [ecx + 0x14], eax
cmp dword [ebp - 0x30], 1
jne 0x300104b6
and dword [ebp - 8], 0
cmp dword [ebp - 0x14], 0
jle 0x300104b6
mov eax, dword [ebp - 8]
imul eax, dword [ebp + 0x18]
push eax
push esi
mov dword [ebp - 0x1c], eax
call fcn.3001c300
mov edi, eax
lea eax, [ebp - 0x80]
push eax
push ebx
call fcn.30010d33
xor ecx, ecx
cmp dword [ebp - 8], ecx
jne 0x30010301
cmp dword [ebp - 0x90], ecx
je 0x3001031b
cmp dword [ebp - 0x60], ecx
jne 0x3001031b
cmp dword [esi + 0x9c], ecx
je 0x3001031b
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x4c]
add eax, edx
mov dword [ebp - 0x44], eax
jmp 0x3001031e
mov dword [ebp - 0x44], ecx
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x84]
imul eax, eax, 0x14
add eax, edx
cmp dword [ebp - 0x60], ecx
mov edx, dword [eax + 8]
mov eax, dword [eax]
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
je 0x30010381
cmp dword [ebp - 0x58], 0x13
jne 0x300104a1
mov ecx, dword [ebp - 0x100]
sub ecx, dword [ebp - 0xf0]
xor eax, eax
add ecx, dword [ebp - 0xd8]
push eax
push eax
push ecx
mov ecx, dword [ebp - 0xf8]
sub ecx, dword [ebp - 0x108]
mov dword [ebp - 0x6c], 2
sub ecx, dword [ebp - 0xe4]
push ecx
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push eax
jmp 0x3001049b
cmp dword [ebp - 0x54], ecx
je 0x3001040d
test byte [edi + 0xf4], 4
je 0x300103c6
push edi
push esi
call fcn.3001c5e9
cmp eax, 0xffffffff
je 0x300103c6
mov eax, dword [ebp - 0x50]
neg eax
test word [edi + 0xf4], 0x100
push 0
push 1
mov dword [ebp - 0x70], eax
je 0x300103be
mov ecx, dword [edi + 0x38]
sub ecx, dword [ebp - 0x78]
jmp 0x300103d8
mov ecx, dword [edi + 0x60]
add ecx, dword [edi + 0x30]
jmp 0x300103d8
mov eax, dword [ebp - 0x50]
mov ecx, dword [edi + 0x30]
neg eax
add ecx, dword [ebp - 0x80]
push 2
mov dword [ebp - 0x70], eax
push 1
push ecx
mov ecx, dword [ebp - 0x24]
push eax
push dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
push dword [ebp - 0x10]
add eax, ecx
push eax
push esi
call fcn.3001ba39
mov eax, dword [ebp - 0x14]
xor ecx, ecx
dec eax
cmp dword [ebp - 8], eax
mov dword [ebp - 0x18], ecx
jne 0x30010400
mov dword [ebp - 0x18], ecx
push ecx
push ecx
push dword [ebp - 0x70]
push dword [ebp - 0x70]
jmp 0x30010492
test byte [edi + 0xf4], 4
je 0x30010447
push edi
push esi
call fcn.3001c5e9
cmp eax, 0xffffffff
je 0x30010447
test word [edi + 0xf4], 0x100
mov ecx, dword [ebp - 0x24]
push 0
push 1
push dword [ebp - 0x50]
je 0x3001043f
mov eax, dword [edi + 0x30]
sub eax, dword [ebp - 0x80]
jmp 0x30010457
mov eax, dword [edi + 0x60]
add eax, dword [edi + 0x30]
jmp 0x30010457
mov eax, dword [edi + 0x38]
sub eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x24]
push 1
push 1
push dword [ebp - 0x50]
push eax
push dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
push dword [ebp - 0x10]
add eax, ecx
push eax
push esi
call fcn.3001ba39
mov eax, dword [ebp - 0x14]
xor ecx, ecx
dec eax
cmp dword [ebp - 8], eax
mov dword [ebp - 0x18], ecx
jne 0x3001047b
mov dword [ebp - 0x18], ecx
xor eax, eax
cmp dword [ebp - 0xb0], ecx
push 0x2000
sete al
push eax
push dword [ebp - 0x50]
push dword [ebp - 0x50]
push dword [ebp - 0x10]
push dword [ebp - 4]
push dword [ebp - 0x44]
push esi
call fcn.3001ba39
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x14]
jl 0x300102d5
mov edi, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x30]
cmp ecx, 1
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0x28], eax
jle 0x300104dc
lea eax, [ebp - 0xd4]
dec ecx
mov edx, dword [eax + 0xc]
add edx, dword [eax]
add eax, 0x10
add dword [ebp - 0x28], edx
dec ecx
jne 0x300104ce
push dword [ebp - 0x2c]
push esi
call fcn.3001c300
mov eax, dword [eax + 0x14]
cmp dword [ebp - 0x28], eax
jge 0x300104f0
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0xe4]
mov eax, dword [ebp - 0x28]
add eax, ecx
mov ecx, dword [ebp - 0x6c]
xor ebx, ebx
cmp dword [ebp - 0x90], ebx
mov dword [esi + 0x50], eax
mov dword [esi + 0x18], ecx
je 0x300105b8
mov eax, dword [ebp - 0xe0]
cdq
sub eax, edx
sar eax, 1
cmp dword [ebp - 0x5c], ebx
mov dword [esi + 0x14], eax
jle 0x3001097c
xor ecx, ecx
cmp dword [ebp - 0x58], 0xc
push ebx
sete cl
push ecx
push eax
push eax
mov eax, dword [esi + 0x84]
neg eax
push eax
mov eax, dword [ebp - 0x6c]
neg eax
push eax
push ebx
push esi
call fcn.3001ba39
mov eax, dword [ebp - 0x4c]
imul eax, eax, 0x14
cmp dword [ebp - 0x54], ebx
mov dword [ebp - 0x18], ebx
je 0x30010569
mov ecx, dword [eax + edi + 4]
mov eax, dword [esi + 0x14]
mov dword [esi + 0x58], ebx
mov dword [ebp - 0x18], ebx
jmp 0x30010579
mov edx, dword [ebp - 0xe0]
mov eax, dword [eax + edi + 4]
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x58], edx
cmp dword [esi + 0x2c], 0xffffffff
jne 0x3001059d
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x24]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
add eax, ecx
push eax
push esi
call fcn.3001ba39
mov eax, dword [ebp - 0x5c]
dec eax
jmp 0x3001096f
mov edx, dword [esi + 0x84]
push 0x2000
push ebx
push eax
mov eax, dword [ebp - 0x5c]
neg edx
push ecx
push edx
push edx
dec eax
jmp 0x30010975
cmp dword [ebp - 0x88], ebx
je 0x30010600
cdq
sub eax, edx
sar eax, 1
sub eax, dword [ebp - 0xe4]
push ebx
push esi
mov dword [esi + 0x14], eax
call fcn.3001c300
lea ecx, [ebp - 0x80]
push ecx
push eax
call fcn.30010d33
cmp dword [ebp - 0x58], 0xe
jne 0x3001097c
mov eax, dword [esi + 0x14]
push 3
push ebx
push eax
push eax
push dword [ebp - 0x7c]
mov eax, dword [ebp - 0x6c]
neg eax
push eax
push ebx
jmp 0x30010976
cmp dword [ebp - 0x54], ebx
je 0x30010612
mov eax, dword [ebp - 0x50]
neg eax
mov dword [esi + 0x14], eax
jmp 0x3001097c
cmp dword [ebp + 0x18], 1
jne 0x3001061d
mov eax, dword [ebp - 0x50]
jmp 0x3001060a
cmp dword [ebp - 0x30], 3
jge 0x30010755
mov eax, dword [esi + 0x7c]
add eax, dword [ebp - 0xd8]
cmp dword [ebp - 0x14], 1
mov dword [esi + 0x14], eax
jne 0x3001097c
cmp dword [ebp + 0x18], 2
je 0x3001064d
cmp dword [ebp - 0xc], 2
jl 0x3001064d
push 1
jmp 0x3001064e
push ebx
push esi
call fcn.3001c300
mov eax, dword [eax + 0x38]
mov ecx, dword [esi + 0x7c]
add eax, ecx
cmp dword [esi + 0x14], eax
jge 0x30010664
mov dword [esi + 0x14], eax
mov edi, dword [esi + 0xa0]
add edi, esi
cmp dword [esi + 0x9c], ebx
je 0x3001097c
cmp dword [ebp - 0x98], ebx
mov eax, dword [esi + 0x14]
mov dword [edi + 4], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 0xc], eax
je 0x300106f8
cmp dword [ebp - 0xc], 1
mov eax, dword [esi + 0x14]
mov dword [edi + 0x20], eax
jle 0x3001097c
mov eax, dword [esi + 0x14]
push 1
push esi
mov dword [edi + 0x2c], eax
call fcn.3001c300
lea ecx, [ebp - 0x80]
push ecx
push eax
mov dword [ebp - 0x48], eax
call fcn.30010d33
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax + 0x30]
mov dword [edi + 0x34], ecx
test byte [eax + 0xf4], 4
je 0x300106f3
push eax
push esi
call fcn.3001c5e9
cmp eax, 0xffffffff
je 0x300106f3
mov eax, dword [ebp - 0x48]
test word [eax + 0xf4], 0x100
mov eax, dword [eax + 0x60]
je 0x300106eb
add eax, eax
sub eax, dword [ebp - 0x78]
add dword [edi + 0x34], eax
jmp 0x3001097c
mov eax, dword [ebp - 0x80]
jmp 0x300106eb
cmp dword [ebp + 0x18], 2
jne 0x30010721
mov eax, dword [ebp - 0xc]
mov ecx, dword [esi + 0x14]
imul eax, eax, 0x14
add eax, edi
cmp dword [ebp - 0xc], 1
mov dword [eax + 0x20], ecx
jle 0x3001097c
mov ecx, dword [esi + 0x14]
mov dword [eax + 0x2c], ecx
jmp 0x3001097c
cmp dword [ebp - 0xc], 1
jne 0x30010732
mov eax, dword [esi + 0x14]
mov dword [edi + 0x34], eax
jmp 0x3001097c
mov eax, dword [ebp - 0xc]
mov ecx, dword [esi + 0x14]
imul eax, eax, 0x14
add eax, edi
cmp dword [ebp - 0xc], 2
mov dword [eax + 0x34], ecx
jle 0x3001097c
mov ecx, dword [esi + 0x14]
mov dword [eax + 0x40], ecx
jmp 0x3001097c
mov eax, dword [ebp - 0x4c]
imul eax, eax, 0x14
add eax, edi
cmp dword [ebp - 0xc], 2
mov dword [ebp - 0xb4], eax
mov eax, dword [eax + 4]
mov dword [ebp - 0x2c], eax
jle 0x300107ab
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x4c]
add eax, ecx
imul eax, eax, 0x14
mov eax, dword [eax + edi + 4]
push 1
push esi
mov dword [ebp - 0x40], eax
call fcn.3001c300
push 2
push esi
mov dword [ebp - 4], eax
call fcn.3001c300
mov eax, dword [eax + 0x38]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x30]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
mov dword [esi + 0x14], eax
jmp 0x300107cd
jne 0x300107bd
push 1
push esi
call fcn.3001c300
mov eax, dword [eax + 0x38]
add eax, dword [esi + 0x7c]
jmp 0x300107c7
push ebx
push esi
call fcn.3001c300
mov eax, dword [ebp - 0x2c]
mov dword [esi + 0x14], eax
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x14], 1
jne 0x300108ba
push ebx
push esi
call fcn.3001c300
lea ecx, [ebp - 0x80]
push ecx
push eax
mov dword [ebp - 4], eax
call fcn.30010d33
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x38]
sub ecx, dword [ebp - 0x78]
mov dword [edi + 0x18], ecx
mov eax, dword [eax + 0x30]
add eax, dword [ebp - 0x2c]
cmp dword [ebp - 0xc], 1
mov dword [edi + 0x20], eax
jle 0x3001082d
push 1
push esi
call fcn.3001c300
lea ecx, [ebp - 0x80]
push ecx
push eax
mov dword [ebp - 4], eax
call fcn.30010d33
mov eax, dword [edi + 0x20]
mov dword [edi + 0x2c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
add eax, dword [ebp - 0x80]
mov dword [edi + 0x34], eax
cmp dword [ebp - 0xc], 2
mov eax, dword [edi + 0x20]
mov ecx, dword [ebp - 0xb4]
mov dword [ebp - 0x2c], eax
mov dword [ecx + 4], eax
mov dword [ecx + 0xc], eax
jle 0x300108ba
push 2
push esi
call fcn.3001c300
lea ecx, [ebp - 0x80]
push ecx
push eax
mov dword [ebp - 4], eax
call fcn.30010d33
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
sub eax, dword [ebp - 0x78]
push ebx
push esi
mov dword [edi + 0x40], eax
call fcn.3001c300
mov eax, dword [eax + 0x30]
mov ecx, dword [ebp - 0x40]
add eax, ecx
cmp dword [ebp - 0xc], 3
mov dword [edi + 0x48], eax
mov dword [ebp - 0x40], eax
jle 0x300108a8
push 3
push esi
call fcn.3001c300
lea ecx, [ebp - 0x80]
push ecx
push eax
mov dword [ebp - 4], eax
call fcn.30010d33
mov eax, dword [ebp - 0x40]
mov dword [edi + 0x54], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
add eax, dword [ebp - 0x80]
mov dword [edi + 0x5c], eax
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x40]
inc eax
imul eax, eax, 0x14
add eax, edi
mov dword [eax + 4], ecx
mov dword [eax + 0xc], ecx
mov eax, dword [esi + 0x14]
xor ecx, ecx
cmp dword [ebp - 0xc], 2
push ebx
setle cl
push ecx
push eax
push eax
mov eax, dword [esi + 0x84]
neg eax
push eax
mov eax, dword [ebp - 0x6c]
neg eax
push eax
push ebx
push esi
call fcn.3001ba39
cmp dword [ebp - 0x94], ebx
jle 0x3001091c
mov eax, dword [esi + 0x84]
push ebx
push ebx
push dword [esi + 0x14]
neg eax
push dword [ebp - 0x2c]
mov dword [ebp - 0x18], ebx
push eax
push eax
mov eax, dword [ebp - 0x5c]
sub eax, dword [ebp - 0x94]
push eax
push esi
call fcn.3001ba39
mov eax, dword [ebp - 0x2c]
add eax, 0xa
mov dword [esi + 0x58], eax
mov eax, dword [esi + 0x14]
mov dword [esi + 0x5c], eax
cmp dword [ebp - 0x94], 1
jle 0x30010952
mov eax, dword [esi + 0x84]
push 0x2000
push ebx
push dword [ebp - 0x40]
neg eax
push dword [esi + 0x14]
mov dword [ebp - 0x18], ebx
push eax
push eax
mov eax, dword [ebp - 0x5c]
dec eax
push eax
push esi
call fcn.3001ba39
mov eax, dword [ebp - 0x40]
add eax, 0xfffffff6
mov dword [esi + 0x5c], eax
mov eax, dword [ebp - 0xc]
and eax, 0x80000003
jns 0x30010961
dec eax
or eax, 0xfffffffc
inc eax
cmp eax, 1
jne 0x3001097c
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
lea eax, [eax + ecx*2]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push esi
call fcn.3001ba39
cmp dword [ebp - 0x60], ebx
je 0x30010a52
cmp dword [ebp - 0x88], ebx
jne 0x30010a52
mov eax, dword [ebp - 0xc]
dec eax
push eax
push esi
call fcn.3001c300
mov eax, dword [eax + 0x3c]
cdq
sub eax, edx
sar eax, 1
cmp dword [esi + 0xb0], ebx
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], ebx
je 0x300109cf
mov eax, dword [esi + 0xbc]
cmp eax, ebx
jge 0x300109c3
cmp dword [ebp - 0x54], ebx
jne 0x300109ca
cmp eax, ebx
jle 0x300109cf
cmp dword [ebp - 0x54], ebx
jne 0x300109cf
neg eax
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x14]
mov ecx, dword [ebp - 0x18]
add eax, ecx
xor ecx, ecx
cmp dword [ebp - 0x54], ebx
push 1
sete cl
push ecx
push eax
push eax
push dword [ebp - 4]
mov eax, dword [ebp - 0x6c]
neg eax
push eax
push ebx
push esi
call fcn.3001ba39
push ebx
push esi
call fcn.3001c300
lea ecx, [ebp - 0x80]
push ecx
push eax
call fcn.30010d33
cmp dword [ebp - 0x54], ebx
je 0x30010a1d
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x7c]
add ecx, dword [ebp - 0x18]
add eax, dword [ebp - 0x80]
push 2
add eax, ecx
pop edx
jmp 0x30010a30
mov eax, dword [esi + 0x14]
add eax, dword [ebp - 0x18]
mov edx, 0x2001
mov ecx, eax
sub ecx, dword [esi + 0x7c]
sub ecx, dword [ebp - 0x78]
cmp dword [esi + 0x2c], 0xffffffff
je 0x30010a43
push edx
push 1
push eax
push ecx
push dword [ebp - 4]
push dword [ebp - 4]
jmp 0x30010a4a
push ebx
push 1
push ebx
push ebx
push ebx
push ebx
push 1
push esi
call fcn.3001ba39
cmp dword [ebp - 0x60], ebx
mov eax, dword [ebp - 0x5c]
mov dword [esi + 0x98], eax
je 0x30010b3b
mov ecx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x9c]
push ebx
push esi
push ebx
add eax, ecx
push eax
push dword [ebp - 0x28]
mov eax, dword [esi + 0xa4]
push dword [ebp - 0xe4]
add eax, esi
push dword [esi + 0x94]
push eax
call fcn.3001b571
mov eax, dword [esi + 0xa4]
add eax, esi
push eax
push esi
call fcn.3001bbce
cmp dword [ebp - 0x88], ebx
je 0x30010b69
mov eax, dword [esi + 0x24]
sub eax, dword [esi + 0x1c]
cmp dword [ebp - 0xc], ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], ebx
jle 0x30010b69
push dword [ebp - 8]
push esi
call fcn.3001c300
mov edx, eax
mov ecx, dword [edx + 0x18]
mov eax, dword [ebp - 0xf8]
cmp ecx, eax
mov dword [ebp - 4], ecx
jge 0x30010ade
mov dword [ebp - 4], eax
test word [edx + 0xf4], 0x100
jne 0x30010b2e
mov eax, dword [edx + 0xa8]
sub eax, ebx
push ebx
je 0x30010b1d
dec eax
dec eax
je 0x30010b15
mov eax, dword [ebp - 0x18]
sub eax, dword [edx + 0x14]
lea ecx, [edx + 0x30]
sub eax, dword [ebp - 4]
cdq
sub eax, edx
sar eax, 1
sub eax, dword [ecx]
add eax, dword [ebp - 4]
add eax, dword [esi + 0x1c]
push eax
push ecx
jmp 0x30010b28
mov eax, dword [esi + 0x24]
sub eax, dword [edx + 0x14]
jmp 0x30010b23
mov eax, dword [esi + 0x1c]
add eax, dword [ebp - 4]
push eax
add edx, 0x30
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
jl 0x30010ac0
jmp 0x30010b69
xor eax, eax
inc eax
cmp dword [ebp + 0x18], eax
jne 0x30010b48
cmp dword [ebp - 0x54], ebx
je 0x30010b4a
xor eax, eax
mov ecx, dword [ebp - 0x6c]
push eax
push dword [ebp - 0x54]
mov eax, dword [ebp - 0x9c]
push dword [ebp - 0x50]
add eax, ecx
push eax
push dword [ebp + 0x18]
push dword [ebp - 0x14]
push esi
call fcn.3001bd25
mov ecx, dword [esi + 0x28]
sub ecx, dword [esi + 0x20]
mov eax, 0xb40
cmp ecx, eax
jg 0x30010b82
mov ecx, dword [esi + 0x24]
sub ecx, dword [esi + 0x1c]
cmp ecx, eax
jle 0x30010b91
mov eax, dword [esi + 0x38]
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], eax
mov dword [ebp - 0x64], 0x67
cmp dword [ebp - 0x68], ebx
je 0x30010c5e
cmp dword [ebp - 0x64], 0
jne 0x30010c5e
push dword [ebp - 0xc]
push esi
call fcn.3001c300
xor ecx, ecx
push ecx
push ecx
push ecx
mov ebx, eax
lea eax, [ebx + 0x30]
push ecx
push eax
mov dword [ebp + 0x18], eax
call dword [sym.imp.USER32.dll_SetRect]
xor ecx, ecx
push ecx
push ecx
push ecx
lea eax, [ebx + 0xe4]
push ecx
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [ebx]
and dword [ebx + 0x60], 0
and dword [ebx + 0x64], 0
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x34]
sub eax, 0x17
je 0x30010c37
dec eax
dec eax
je 0x30010c37
sub eax, 3
je 0x30010bfb
dec eax
je 0x30010c37
sub eax, 4
jne 0x30010c5e
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x24]
push dword [esi + 0x28]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
push eax
push dword [ebp + 0x18]
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [esi + 0x1c]
add eax, dword [ebp - 0xf8]
mov dword [ebx + 0xe4], eax
mov eax, dword [esi + 0x24]
sub eax, dword [ebp - 0xf0]
mov dword [ebx + 0xec], eax
jmp 0x30010c5e
mov eax, dword [ebp - 0x14]
cmp eax, 1
jne 0x30010c43
xor eax, eax
jmp 0x30010c4a
mov ecx, dword [ebp - 0x4c]
lea eax, [eax + ecx - 1]
imul eax, eax, 0x14
add eax, edi
push dword [eax + 8]
push dword [eax + 4]
push dword [ebp + 0x18]
call dword [sym.imp.USER32.dll_OffsetRect]
push 0
push 2
add esi, 0x10
push esi
call fcn.30067eb7
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp dword [ebp - 0x68], 0
pop edi
pop esi
pop ebx
je 0x30010ca3
cmp dword [ebp - 0x64], 0
jne 0x30010ca3
cmp dword [ebp - 0x18], 0xffffffff
je 0x30010ca3
push dword [ebp + 0x20]
push dword [ebp + 0x14]
push dword [ebp - 0x18]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.3000e799
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
leave
ret 0x1c