Function at 0x1001b4d0
Capabilities:
Check for peb ntglobalflag flag
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x258
mov esi, esp
mov dword [esi + 0x240], ebp
mov dword [esi + 8], ecx
lea eax, [esi + 0x248]
mov dword [eax - 4], esp
mov dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x100229a0
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
mov dword [esi + 0x50], edx
mov edi, 0x190
lea ebx, [esi + 0xb0]
push edi
push 0xff
push ebx
call fcn.10027f80
add esp, 0xc
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], fcn.10001c90
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
add edi, ebx
mov dword [esi + 0x64], edi
xor eax, eax
mov dword [esi + 0x74], eax
mov dword [esi + 0x70], eax
mov dword [esi + 0x78], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x84], eax
mov dword [esi + 0x80], eax
mov dword [esi + 0x88], eax
cmp byte [ebp + 8], 0
je 0x1001b684
mov dword [esi + 0x250], 1
mov ecx, dword [ebp + 0xc]
push 0x1005ed40
call fcn.1001f00e
mov dword [esi + 4], eax
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
lea edx, [esi + 0x44]
push edx
call dword [eax + 0x28]
mov eax, dword [esi + 0x44]
mov dword [esi + 0x9c], eax
mov dword [esi + 0x98], eax
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
lea edx, [esi + 0x44]
push edx
call dword [eax + 0x1c]
cmp byte [esi + 0x33], 0
jns 0x1001b5d6
push dword [esi + 0x28]
call fcn.10024829
add esp, 4
mov eax, dword [esi + 0x4c]
mov dword [esi + 0x30], eax
movsd xmm0, qword [esi + 0x44]
movsd qword [esi + 0x28], xmm0
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
lea edx, [esi + 0x44]
push edx
call dword [eax + 0x18]
cmp byte [esi + 0x43], 0
jns 0x1001b603
push dword [esi + 0x38]
call fcn.10024829
add esp, 4
mov eax, dword [esi + 0x4c]
mov dword [esi + 0x40], eax
movsd xmm0, qword [esi + 0x44]
movsd qword [esi + 0x38], xmm0
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
call dword [eax + 8]
mov word [esi + 0x5c], ax
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov word [esi + 0x5e], ax
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
lea edx, [esi + 0x44]
push edx
call dword [eax + 0x10]
mov eax, dword [esi + 0x4c]
mov dword [esi + 0x78], eax
movsd xmm0, qword [esi + 0x44]
movsd qword [esi + 0x70], xmm0
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
lea edx, [esi + 0x44]
push edx
call dword [eax + 0x14]
cmp byte [esi + 0x23], 0
jns 0x1001b664
push dword [esi + 0x18]
call fcn.10024829
add esp, 4
mov eax, dword [esi + 0x4c]
mov dword [esi + 0x20], eax
movsd xmm0, qword [esi + 0x44]
movsd qword [esi + 0x18], xmm0
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
call dword [eax + 0x20]
mov dword [esi + 0x60], eax
jmp 0x1001b77f
mov dword [esi + 0x250], 1
mov ecx, dword [ebp + 0xc]
push 0x1005ed38
call fcn.1001f00e
mov dword [esi + 4], eax
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
lea edx, [esi + 0x44]
push edx
call dword [eax + 0x28]
mov eax, dword [esi + 0x44]
mov dword [esi + 0x9c], eax
mov dword [esi + 0x98], eax
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
lea edx, [esi + 0x44]
push edx
call dword [eax + 0x1c]
cmp byte [esi + 0x33], 0
jns 0x1001b6d6
push dword [esi + 0x28]
call fcn.10024829
add esp, 4
mov eax, dword [esi + 0x4c]
mov dword [esi + 0x30], eax
movsd xmm0, qword [esi + 0x44]
movsd qword [esi + 0x28], xmm0
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
lea edx, [esi + 0x44]
push edx
call dword [eax + 0x18]
cmp byte [esi + 0x43], 0
jns 0x1001b703
push dword [esi + 0x38]
call fcn.10024829
add esp, 4
mov eax, dword [esi + 0x4c]
mov dword [esi + 0x40], eax
movsd xmm0, qword [esi + 0x44]
movsd qword [esi + 0x38], xmm0
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
call dword [eax + 8]
mov word [esi + 0x5c], ax
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov word [esi + 0x5e], ax
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
lea edx, [esi + 0x44]
push edx
call dword [eax + 0x10]
mov eax, dword [esi + 0x4c]
mov dword [esi + 0x78], eax
movsd xmm0, qword [esi + 0x44]
movsd qword [esi + 0x70], xmm0
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
lea edx, [esi + 0x44]
push edx
call dword [eax + 0x14]
cmp byte [esi + 0x23], 0
jns 0x1001b764
push dword [esi + 0x18]
call fcn.10024829
add esp, 4
mov eax, dword [esi + 0x4c]
mov dword [esi + 0x20], eax
movsd xmm0, qword [esi + 0x44]
movsd qword [esi + 0x18], xmm0
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
call dword [eax + 0x20]
mov dword [esi + 0x60], eax
mov ecx, dword [ebp + 0x24]
mov eax, dword [ebp + 0x20]
mov edx, dword [ebp + 0x10]
mov eax, dword [eax]
mov dword [ecx], eax
shr edx, 9
and edx, 1
mov dword [esi + 0xac], edx
xor edx, edx
lea eax, [esi + 0xb0]
mov dword [esi + 0x94], eax
xor edi, edi
cmp edi, 3
mov dword [esi + 0x10], edx
ja 0x1001bf2c
mov dword [esi + 0xc], edi
mov dword [esi + 0x250], 1
mov ecx, dword [esi + 8]
lea eax, [esi + 0x50]
push eax
call fcn.1000290a
test al, al
mov edx, dword [esi + 0x10]
mov edi, dword [esi + 0xc]
jne 0x1001bf2c
movsx eax, byte [esi + edi + 0x98]
cmp eax, 4
ja case.default.0x1001b7ec
jmp dword [eax*4 + 0x10056e9c]
cmp edi, 3
jne 0x1001bbeb
jmp 0x1001bd79
cmp edi, 3
je case.default.0x1001b7ec
mov eax, dword [esi + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x1001bb8b
movzx eax, word [eax]
jmp 0x1001bb90
test edx, edx
jne 0x1001ba24
cmp edi, 2
jb 0x1001ba24
cmp dword [esi + 0x9c], 0xffffff
seta al
cmp edi, 2
sete cl
and cl, al
or cl, byte [esi + 0xac]
cmp cl, 1
jne 0x1001ba8c
mov al, byte [esi + 0x23]
test al, al
mov ecx, dword [esi + 0x18]
lea ebx, [esi + 0x18]
cmovs ebx, ecx
jmp 0x1001ba3a
movzx ecx, byte [esi + 0x43]
mov eax, ecx
test cl, cl
jns 0x1001b878
mov eax, dword [esi + 0x3c]
movzx edx, byte [esi + 0x33]
mov ebx, edx
test dl, dl
jns 0x1001b885
mov ebx, dword [esi + 0x2c]
mov edi, eax
add edi, ebx
je 0x1001bd79
test eax, eax
je 0x1001bbbe
mov eax, dword [esi + 8]
mov edx, dword [eax]
mov edi, dword [edx + 0xc]
mov eax, dword [edx + 0x10]
test ebx, ebx
je 0x1001bda8
cmp edi, eax
je 0x1001bdb8
mov dword [esi + 0x14], eax
movzx eax, word [edi]
mov word [esi + 4], ax
jmp 0x1001bdd4
mov dword [esi + 0x14], 0
mov ecx, dword [esi + 8]
lea eax, [esi + 0x50]
push eax
call fcn.1000290a
test al, al
jne 0x1001b9bc
mov eax, dword [esi + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x1001b8ee
movzx edx, word [eax]
jmp 0x1001b8f5
mov eax, dword [ecx]
call dword [eax + 0x20]
mov edx, eax
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ecx]
mov word [esi + 4], dx
movzx edx, dx
push edx
push 4
call dword [eax + 0xc]
test al, al
je 0x1001b93e
mov edx, dword [ebp + 0x24]
mov eax, dword [edx]
cmp eax, dword [ebp + 0x28]
movzx edi, word [esi + 4]
jne 0x1001b931
mov ecx, dword [ebp + 0x20]
lea eax, [ebp + 0x28]
push eax
call fcn.1001c4f0
add esp, 4
mov edx, dword [ebp + 0x24]
mov eax, dword [edx]
movzx edi, word [esi + 4]
lea ecx, [eax + 2]
mov dword [edx], ecx
mov word [eax], di
inc dword [esi + 0x14]
jmp 0x1001b99a
movzx eax, byte [esi + 0x7b]
test al, al
movzx ecx, word [esi + 4]
jns 0x1001b94d
mov eax, dword [esi + 0x74]
test eax, eax
je 0x1001b9bc
cmp dword [esi + 0x14], 0
je 0x1001b9bc
cmp cx, word [esi + 0x5e]
jne 0x1001b9bc
mov eax, dword [esi + 0x94]
cmp eax, dword [esi + 0x64]
jne 0x1001b97d
lea ecx, [esi + 0x68]
lea edx, [esi + 0x54]
lea eax, [esi + 0x64]
push eax
call fcn.1001b030
add esp, 4
mov eax, dword [esi + 0x54]
mov ecx, eax
add eax, 4
mov dword [esi + 0x54], eax
mov edx, dword [esi + 0x14]
mov dword [ecx], edx
mov dword [esi + 0x14], 0
mov dword [esi + 0x58], eax
mov dword [esi + 0x94], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x1001b9b2
add eax, 2
mov dword [ecx + 0xc], eax
jmp 0x1001b8c8
mov eax, dword [ecx]
call dword [eax + 0x24]
jmp 0x1001b8c8
mov eax, dword [esi + 0x58]
cmp dword [esi + 0x68], eax
je 0x1001b9f1
cmp dword [esi + 0x14], 0
je 0x1001b9f1
cmp eax, dword [esi + 0x64]
jne 0x1001b9e4
lea ecx, [esi + 0x68]
lea edx, [esi + 0x54]
lea eax, [esi + 0x64]
push eax
call fcn.1001b030
add esp, 4
mov eax, dword [esi + 0x54]
mov ecx, eax
add eax, 4
mov dword [esi + 0x54], eax
mov edx, dword [esi + 0x14]
mov dword [ecx], edx
mov dword [esi + 0x58], eax
cmp dword [esi + 0x60], 0
jle 0x1001bb67
mov ecx, dword [esi + 8]
lea eax, [esi + 0x50]
push eax
call fcn.1000290a
test al, al
jne 0x1001bfe3
mov eax, dword [esi + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x1001ba93
movzx eax, word [eax]
jmp 0x1001ba98
mov al, byte [esi + 0x23]
test al, al
mov ecx, dword [esi + 0x18]
lea ebx, [esi + 0x18]
cmovs ebx, ecx
test edi, edi
je 0x1001bcf5
lea edx, [esi + 0x98]
cmp byte [edi + edx - 1], 1
ja 0x1001bcf5
test al, al
lea edx, [esi + 0x18]
movzx edi, al
cmovs edi, dword [esi + 0x1c]
cmovs edx, ecx
lea edx, [edx + edi*2]
cmp ebx, edx
mov dword [esi + 4], ebx
je 0x1001bc60
movzx eax, word [ebx]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ecx]
push eax
push 8
call dword [edx + 0xc]
mov ebx, dword [esi + 4]
test al, al
je 0x1001bc5a
add ebx, 2
mov al, byte [esi + 0x23]
mov ecx, dword [esi + 0x18]
jmp 0x1001ba4b
xor edx, edx
jmp case.default.0x1001b7ec
mov eax, dword [ecx]
call dword [eax + 0x20]
cmp ax, word [esi + 0x5c]
jne 0x1001bfe3
mov eax, dword [esi + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x1001bab9
add ecx, 0xc
add eax, 2
mov dword [ecx], eax
jmp 0x1001babe
mov eax, dword [ecx]
call dword [eax + 0x24]
cmp dword [esi + 0x60], 0
jle 0x1001bb67
mov ecx, dword [esi + 8]
lea eax, [esi + 0x50]
push eax
call fcn.1000290a
test al, al
jne 0x1001bfe3
mov eax, dword [esi + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x1001baee
movzx eax, word [eax]
jmp 0x1001baf3
mov eax, dword [ecx]
call dword [eax + 0x20]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ecx]
movzx eax, ax
push eax
push 4
call dword [edx + 0xc]
test al, al
je 0x1001bfe3
mov eax, dword [ebp + 0x24]
mov eax, dword [eax]
cmp eax, dword [ebp + 0x28]
jne 0x1001bb25
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x24]
lea eax, [ebp + 0x28]
push eax
call fcn.1001c4f0
add esp, 4
mov eax, dword [esi + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x1001bb37
movzx eax, word [eax]
jmp 0x1001bb3c
mov eax, dword [ecx]
call dword [eax + 0x20]
mov edi, dword [ebp + 0x24]
mov ecx, dword [edi]
lea edx, [ecx + 2]
mov dword [edi], edx
mov word [ecx], ax
dec dword [esi + 0x60]
mov eax, dword [esi + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
jne 0x1001baaf
mov eax, dword [ecx]
call dword [eax + 0x24]
jmp 0x1001babe
mov eax, dword [ebp + 0x24]
mov eax, dword [eax]
mov ecx, dword [esi + 0x58]
mov dword [esi + 0x94], ecx
mov ecx, dword [ebp + 0x20]
cmp eax, dword [ecx]
mov edx, dword [esi + 0x10]
mov edi, dword [esi + 0xc]
jne case.default.0x1001b7ec
jmp 0x1001bfe3
mov eax, dword [ecx]
call dword [eax + 0x20]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ecx]
movzx eax, ax
push eax
push 8
call dword [edx + 0xc]
test al, al
je 0x1001bfe3
mov eax, dword [esi + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x1001bbd7
lea edx, [eax + 2]
mov dword [ecx + 0xc], edx
movzx eax, word [eax]
jmp 0x1001bbdc
mov eax, dword [esi + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x1001be0c
movzx eax, word [eax]
jmp 0x1001be14
mov eax, dword [ecx]
call dword [eax + 0x24]
movzx eax, ax
lea ecx, [esi + 0x80]
push eax
call fcn.100237c8
mov ecx, dword [esi + 8]
lea eax, [esi + 0x50]
push eax
call fcn.1000290a
test al, al
jne 0x1001bd79
mov eax, dword [esi + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x1001bc11
movzx eax, word [eax]
jmp 0x1001bc16
mov eax, dword [ecx]
call dword [eax + 0x20]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ecx]
movzx eax, ax
push eax
push 8
call dword [edx + 0xc]
test al, al
je 0x1001bd79
mov eax, dword [esi + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x1001bc44
lea edx, [eax + 2]
mov dword [ecx + 0xc], edx
movzx eax, word [eax]
jmp 0x1001bc49
mov eax, dword [ecx]
call dword [eax + 0x24]
movzx eax, ax
lea ecx, [esi + 0x80]
push eax
call fcn.100237c8
jmp 0x1001bbeb
mov al, byte [esi + 0x23]
mov ecx, dword [esi + 0x18]
test al, al
lea edx, [esi + 0x18]
cmovs edx, ecx
mov dword [esi + 0x90], edx
sub ebx, edx
mov dword [esi + 0xa4], ebx
mov edi, ebx
sar edi, 1
mov dword [esi + 0x14], edi
movzx ebx, byte [esi + 0x8b]
mov edx, ebx
mov dword [esi + 0xa0], ebx
test bl, bl
jns 0x1001bc96
mov edx, dword [esi + 0x84]
mov dword [esi + 0xa8], edx
mov edi, dword [esi + 0x14]
cmp edi, edx
jbe 0x1001bcab
mov ebx, dword [esi + 0x90]
jmp 0x1001bcf5
lea ebx, [esi + 0x80]
cmp byte [esi + 0xa0], 0
jns 0x1001bcc0
mov ebx, dword [esi + 0x80]
cmp dword [esi + 0xa4], 0
mov edx, dword [esi + 0xa8]
je 0x1001bcf2
lea edx, [ebx + edx*2]
add edi, edi
mov dword [esi + 0x14], edx
sub edx, edi
mov edi, dword [esi + 0x90]
movzx ebx, word [edx]
cmp bx, word [edi]
jne 0x1001bca3
add edx, 2
add edi, 2
cmp edx, dword [esi + 0x14]
jne 0x1001bcdf
mov ebx, dword [esi + 4]
test al, al
movzx eax, al
cmovs eax, dword [esi + 0x1c]
lea edx, [esi + 0x18]
cmovns ecx, edx
lea eax, [ecx + eax*2]
cmp ebx, eax
je 0x1001bd72
mov dword [esi + 0x250], 1
mov ecx, dword [esi + 8]
lea eax, [esi + 0x50]
push eax
mov dword [esi + 4], ebx
call fcn.1000290a
mov ebx, dword [esi + 4]
test al, al
jne 0x1001bd72
mov eax, dword [esi + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x1001bd3d
movzx eax, word [eax]
jmp 0x1001bd45
mov eax, dword [ecx]
call dword [eax + 0x20]
mov ebx, dword [esi + 4]
cmp ax, word [ebx]
jne 0x1001bd72
mov eax, dword [esi + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x1001bd5f
add eax, 2
mov dword [ecx + 0xc], eax
jmp 0x1001bd67
mov eax, dword [ecx]
call dword [eax + 0x24]
mov ebx, dword [esi + 4]
add ebx, 2
mov al, byte [esi + 0x23]
mov ecx, dword [esi + 0x18]
jmp 0x1001bcf5
bt dword [ebp + 0x10], 9
jb 0x1001bd85
mov edx, dword [esi + 0x10]
mov edi, dword [esi + 0xc]
inc edi
jmp 0x1001b7a8
movzx eax, byte [esi + 0x23]
lea ecx, [esi + 0x18]
test al, al
mov edx, dword [esi + 0x10]
mov edi, dword [esi + 0xc]
jns 0x1001bd9c
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x1c]
lea eax, [ecx + eax*2]
cmp ebx, eax
je case.default.0x1001b7ec
jmp 0x1001bfe3
cmp edi, eax
je 0x1001be42
movzx eax, word [edi]
jmp 0x1001be4c
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0x20]
mov word [esi + 4], ax
mov cl, byte [esi + 0x43]
mov eax, dword [esi + 8]
mov edx, dword [eax]
mov edi, dword [edx + 0xc]
mov eax, dword [edx + 0x10]
mov dword [esi + 0x14], eax
lea ebx, [esi + 0x38]
test cl, cl
jns 0x1001bdde
mov ebx, dword [esi + 0x38]
movzx eax, word [esi + 4]
cmp ax, word [ebx]
jne 0x1001bdfb
cmp edi, dword [esi + 0x14]
je 0x1001be88
add edi, 2
mov dword [edx + 0xc], edi
jmp 0x1001bf0c
cmp edi, dword [esi + 0x14]
je 0x1001be91
movzx eax, word [edi]
jmp 0x1001be98
mov eax, dword [ecx]
call dword [eax + 0x20]
mov dl, byte [esi + 0x33]
lea ecx, [esi + 0x28]
test dl, dl
jns 0x1001be1e
mov ecx, dword [esi + 0x28]
cmp ax, word [ecx]
mov edi, dword [esi + 0xc]
jne 0x1001be80
mov eax, dword [esi + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x1001beda
add eax, 2
mov dword [ecx + 0xc], eax
jmp 0x1001bee2
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0x20]
mov cl, byte [esi + 0x43]
lea edx, [esi + 0x38]
test cl, cl
jns 0x1001be56
mov edx, dword [esi + 0x38]
cmp ax, word [edx]
mov edi, dword [esi + 0xc]
jne 0x1001be7a
mov eax, dword [esi + 8]
mov eax, dword [eax]
mov edx, dword [eax + 0xc]
cmp edx, dword [eax + 0x10]
je 0x1001bf02
add edx, 2
mov dword [eax + 0xc], edx
jmp 0x1001bf0c
mov eax, dword [ebp + 0x18]
mov byte [eax], 1
mov edx, dword [esi + 0x10]
jmp case.default.0x1001b7ec
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0x24]
jmp 0x1001bf09
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0x20]
mov dl, byte [esi + 0x33]
lea ecx, [esi + 0x28]
test dl, dl
jns 0x1001bea5
mov ecx, dword [esi + 0x28]
cmp ax, word [ecx]
jne 0x1001bfe3
mov eax, dword [esi + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x1001bec3
add eax, 2
mov dword [ecx + 0xc], eax
jmp 0x1001becb
mov eax, dword [ecx]
call dword [eax + 0x24]
mov dl, byte [esi + 0x33]
mov eax, dword [ebp + 0x18]
mov byte [eax], 1
test dl, dl
js 0x1001beec
movzx eax, dl
jmp 0x1001bef4
mov eax, dword [ecx]
call dword [eax + 0x24]
mov dl, byte [esi + 0x33]
mov eax, dword [ebp + 0x18]
mov byte [eax], 1
test dl, dl
jns 0x1001bef1
mov eax, dword [esi + 0x2c]
jmp 0x1001bef4
movzx eax, dl
mov edi, dword [esi + 0xc]
cmp eax, 1
mov edx, dword [esi + 0x10]
lea eax, [esi + 0x28]
jmp 0x1001bf24
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x24]
mov cl, byte [esi + 0x43]
test cl, cl
jns 0x1001bf15
mov eax, dword [esi + 0x3c]
jmp 0x1001bf18
movzx eax, cl
mov edx, dword [esi + 0x10]
mov edi, dword [esi + 0xc]
cmp eax, 1
lea eax, [esi + 0x38]
cmova edx, eax
jmp case.default.0x1001b7ec
test edx, edx
je 0x1001bfbc
xor edi, edi
inc edi
mov ecx, dword [esi + 0x10]
movzx eax, byte [ecx + 0xb]
test al, al
jns 0x1001bf45
mov eax, dword [ecx + 4]
cmp edi, eax
jae 0x1001bfbc
mov dword [esi + 0x250], 1
mov ecx, dword [esi + 8]
lea eax, [esi + 0x50]
push eax
mov dword [esi + 4], edi
call fcn.1000290a
mov edi, dword [esi + 4]
test al, al
jne 0x1001bfe3
mov eax, dword [esi + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x1001bf7b
movzx eax, word [eax]
jmp 0x1001bf83
mov eax, dword [ecx]
call dword [eax + 0x20]
mov edi, dword [esi + 4]
mov edx, dword [esi + 0x10]
cmp byte [edx + 0xb], 0
mov ecx, edx
jns 0x1001bf90
mov ecx, dword [edx]
cmp ax, word [ecx + edi*2]
jne 0x1001bfe3
inc edi
mov eax, dword [esi + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x1001bfac
add eax, 2
mov dword [ecx + 0xc], eax
jmp 0x1001bf37
mov eax, dword [ecx]
mov dword [esi + 4], edi
call dword [eax + 0x24]
mov edi, dword [esi + 4]
jmp 0x1001bf37
mov edx, dword [esi + 0x68]
mov bl, 1
mov eax, dword [esi + 0x58]
cmp edx, eax
je 0x1001bfeb
lea edi, [esi + 0x44]
mov dword [edi], 0
lea ecx, [esi + 0x70]
push edi
push eax
call fcn.1001b119
add esp, 8
cmp dword [edi], 0
je 0x1001bfeb
mov eax, dword [ebp + 0x14]
or byte [eax], 4
xor ebx, ebx
cmp byte [esi + 0x8b], 0
jns 0x1001c002
push dword [esi + 0x80]
call fcn.10024829
add esp, 4
cmp byte [esi + 0x33], 0
jns 0x1001c013
push dword [esi + 0x28]
call fcn.10024829
add esp, 4
cmp byte [esi + 0x43], 0
jns 0x1001c024
push dword [esi + 0x38]
call fcn.10024829
add esp, 4
cmp byte [esi + 0x23], 0
jns 0x1001c035
push dword [esi + 0x18]
call fcn.10024829
add esp, 4
cmp byte [esi + 0x7b], 0
jns 0x1001c046
push dword [esi + 0x70]
call fcn.10024829
add esp, 4
mov eax, dword [esi + 0x68]
test eax, eax
je 0x1001c064
mov dword [esi + 0x250], 0
push eax
mov dword [esi + 8], ebx
call dword [esi + 0x6c]
mov ebx, dword [esi + 8]
add esp, 4
mov eax, dword [esi + 0x248]
mov dword fs:[0], eax
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret