Function at 0x1021fd30
Capabilities:
Check os version
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x102a2e56
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1398
call fcn.102573f0
mov eax, dword [0x103fb8f8]
xor eax, esp
mov dword [esp + 0x1394], eax
push esi
push edi
mov eax, dword [0x103fb8f8]
xor eax, esp
push eax
lea eax, [esp + 0x13a8]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x40], esi
mov eax, dword [ebp + 8]
mov ecx, dword [esi + 0x128]
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x14], edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x214], 0
test ecx, ecx
je case.default.0x102201a5
call fcn.10229a50
cmp eax, 0x64
jne case.default.0x102201a5
mov ecx, dword [esi + 0x128]
call fcn.10229670
test edx, edx
jne 0x1021fdd4
test eax, eax
je case.default.0x102201a5
mov ecx, dword [esi + 0x128]
call fcn.1022c230
test al, al
je 0x1021fe8d
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x30]
push str.An_error_occurred_when_reading_trace_file._r_n
push eax
call fcn.10225540
add esp, 0x10
lea ecx, [esp + 0x40]
mov dword [esp + 0x13b0], 0
push ecx
mov ecx, eax
call dword [0x102ab9f4]
mov ecx, eax
mov byte [esp + 0x13b0], 1
call dword [0x102aba24]
push eax
call dword [0x102ad454]
add esp, 4
mov byte [esp + 0x13b0], 0
lea ecx, [esp + 0x40]
call dword [0x102aba30]
lea ecx, [esp + 0x28]
mov dword [esp + 0x13b0], 0xffffffff
call dword [0x102aba64]
mov ecx, dword [esi + 0x128]
call fcn.10229350
mov ecx, dword [esi + 0x128]
test ecx, ecx
je 0x1021fe72
mov eax, dword [ecx]
push 1
call dword [eax + 0xc]
mov edx, dword [esi]
mov ecx, esi
push 0
mov dword [esi + 0x128], 0
call dword [edx + 0xe4]
jmp case.default.0x102201a5
cmp byte [esi + 0x124], 0
je 0x1021ff2a
lea eax, [esi + 0x158]
push eax
lea ecx, [esp + 0x24]
call dword [0x102abd20]
push 2
lea ecx, [esp + 0x24]
mov dword [esp + 0x13b4], 2
call dword [0x102abd10]
lea eax, [esp + 0x20]
mov ecx, edi
push eax
call dword [0x102abd00]
lea eax, [esp + 0x694]
mov ecx, esi
push eax
call dword [0x102aca50]
mov ecx, eax
call dword [0x102aca64]
inc dword [esp + 0x694]
lea eax, [esp + 0x694]
inc dword [esp + 0x698]
mov ecx, edi
dec dword [esp + 0x69c]
dec dword [esp + 0x6a0]
push 1
push eax
call dword [0x102abcf8]
lea ecx, [esp + 0x20]
mov dword [esp + 0x13b0], 0xffffffff
call dword [0x102abd18]
mov eax, dword [ebp + 0x10]
xor ecx, ecx
add eax, dword [ebp + 0x14]
push ecx
mov ecx, dword [esi + 0x128]
push eax
mov dword [esp + 0x34], eax
lea eax, [esp + 0x6ac]
push eax
call fcn.10229aa0
mov esi, eax
lea edi, [esp + 0x224]
mov ecx, 0x11c
rep movsd dword es:[edi], dword [esi]
call dword [0x102ad49c]
push dword [esp + 0x244]
mov eax, dword [eax + 0xa0]
call eax
mov edi, dword [esp + 0x44]
add esp, 4
mov esi, dword [esp + 0x2c]
mov ecx, eax
mov edx, dword [0x102aba7c]
cmp esi, dword [edi + 0x10c]
jb 0x10220031
cmp esi, dword [edi + 0x110]
ja 0x10220031
test ecx, ecx
mov byte [esp + 0x27], 1
push 1
lea ecx, [esp + 0x2c]
je 0x1021ffc0
lea eax, [edi + 0x268]
push eax
call edx
mov dword [esp + 0x13b0], 3
jmp 0x1021ffd4
lea eax, [edi + 0x168]
push eax
call edx
mov dword [esp + 0x13b0], 4
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x30]
mov dword [esp + 0x694], ecx
dec ecx
add ecx, dword [ebp + 0x24]
mov dword [esp + 0x69c], ecx
mov ecx, dword [ebp + 0x28]
dec ecx
mov dword [esp + 0x698], esi
push eax
add ecx, esi
lea eax, [esp + 0x698]
mov dword [esp + 0x6a4], ecx
mov ecx, dword [esp + 0x18]
push eax
mov eax, dword [0x102abd8c]
call eax
mov eax, dword [0x102aba80]
lea ecx, [esp + 0x28]
mov dword [esp + 0x13b0], 0xffffffff
call eax
jmp 0x1022015d
mov byte [esp + 0x27], 0
test ecx, ecx
je 0x10220159
shr ecx, 1
mov eax, 1
je 0x1022004c
inc eax
shr ecx, 1
jne 0x10220047
imul eax, eax
add edi, 0x228
mov ecx, edi
mov dword [esp + 0x28], edi
cdq
sub eax, edx
mov esi, eax
sar esi, 1
call dword [0x102abd34]
cmp eax, 0xa0
jle 0x10220071
neg esi
mov ecx, edi
call dword [0x102abd34]
add eax, esi
mov dword [esp + 0x38], 0x100
cmp eax, 0x100
mov dword [esp + 0x20], eax
lea ecx, [esp + 0x38]
mov dword [esp + 0x98], 0
lea edx, [esp + 0x20]
cmovge edx, ecx
lea eax, [esp + 0x98]
mov ecx, dword [esp + 0x28]
cmp dword [edx], 0
cmovg eax, edx
mov edi, dword [eax]
call dword [0x102abd38]
mov ecx, dword [esp + 0x28]
mov esi, eax
call dword [0x102abd3c]
push 0xff
push edi
push esi
push eax
lea ecx, [esp + 0xf94]
call dword [0x102abd30]
push 1
lea eax, [esp + 0xf88]
push eax
lea ecx, [esp + 0x44]
call dword [0x102aba7c]
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x30]
mov dword [esp + 0x694], ecx
dec ecx
add ecx, dword [ebp + 0x24]
mov dword [esp + 0x69c], ecx
mov ecx, dword [ebp + 0x28]
dec ecx
mov dword [esp + 0x13b0], 5
push eax
add ecx, esi
mov dword [esp + 0x69c], esi
lea eax, [esp + 0x698]
mov dword [esp + 0x6a4], ecx
mov ecx, dword [esp + 0x18]
push eax
mov eax, dword [0x102abd8c]
call eax
mov eax, dword [0x102aba80]
lea ecx, [esp + 0x3c]
mov dword [esp + 0x13b0], 0xffffffff
call eax
mov edi, dword [esp + 0x40]
jmp 0x1022015d
mov esi, dword [esp + 0x30]
mov ecx, dword [edi + 0x128]
call fcn.10229670
mov ecx, eax
xor eax, eax
cmp eax, edx
jb 0x10220183
ja case.default.0x102201a5
mov eax, dword [esp + 0x2c]
cmp eax, ecx
jb 0x10220187
jmp case.default.0x102201a5
mov eax, dword [esp + 0x2c]
mov ecx, dword [edi + 0x128]
push 0
push eax
call fcn.10229620
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x18]
cmp eax, 6
ja case.default.0x102201a5
jmp dword [eax*4 + 0x10221778]
mov esi, dword [esp + 0x34]
xor eax, eax
mov ecx, dword [edi + 0x128]
push eax
push dword [esp + 0x30]
push esi
call fcn.1022bc60
jmp 0x1022174f
lea ecx, [esp + 0x20]
call dword [0x102aba48]
push 0xff
lea eax, [esp + 0x10a1]
mov dword [esp + 0x13b4], 6
push 0
push eax
mov byte [esp + 0x10a8], 0
call fcn.10257422
add esp, 0xc
call dword [0x102ad4a0]
test al, al
jne 0x1022023a
push dword [esp + 0x244]
lea eax, [esp + 0xa4]
push eax
call fcn.10014760
add esp, 8
lea ecx, [esp + 0x20]
push eax
call dword [0x102ab974]
lea ecx, [esp + 0xa0]
call dword [0x102aba64]
jmp 0x10220480
push 1
lea eax, [esp + 0x10a0]
mov ecx, edi
push eax
push dword [esp + 0x24c]
lea eax, [esp + 0x60]
push eax
call fcn.1021e3f0
push eax
lea ecx, [esp + 0x24]
call dword [0x102ab974]
lea ecx, [esp + 0x54]
call dword [0x102aba64]
push dword [esp + 0x244]
call dword [0x102ad474]
push dword [esp + 0x248]
mov dword [esp + 0x24], eax
call dword [0x102ad47c]
add esp, 8
test al, al
jne 0x10220702
cmp byte [esp + 0x109c], 0
mov eax, dword [esp + 0x1c]
je 0x10220478
mov ecx, dword [esp + 0x14]
test eax, eax
jne 0x10220320
lea eax, [edi + 0x1f8]
push eax
call dword [0x102aba98]
push 1
lea eax, [edi + 0x208]
push eax
lea ecx, [esp + 0x84]
call dword [0x102aba7c]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x144], ecx
dec ecx
add ecx, dword [ebp + 0x24]
mov dword [esp + 0x14c], ecx
mov ecx, dword [ebp + 0x28]
dec ecx
mov byte [esp + 0x13b0], 7
add ecx, esi
mov dword [esp + 0x148], esi
push eax
lea eax, [esp + 0x148]
mov dword [esp + 0x154], ecx
mov ecx, dword [esp + 0x18]
push eax
call dword [0x102abd8c]
lea ecx, [esp + 0x7c]
jmp 0x10220ade
test al, 1
je 0x10220392
lea eax, [edi + 0x1a8]
push eax
call dword [0x102aba98]
push 1
lea eax, [edi + 0x198]
push eax
lea ecx, [esp + 0x64]
call dword [0x102aba7c]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x1f4], ecx
dec ecx
add ecx, dword [ebp + 0x24]
mov dword [esp + 0x1fc], ecx
mov ecx, dword [ebp + 0x28]
dec ecx
mov byte [esp + 0x13b0], 8
add ecx, esi
mov dword [esp + 0x1f8], esi
push eax
lea eax, [esp + 0x1f8]
mov dword [esp + 0x204], ecx
mov ecx, dword [esp + 0x18]
push eax
call dword [0x102abd8c]
lea ecx, [esp + 0x5c]
jmp 0x10220ade
test al, 2
je 0x1022040a
lea eax, [edi + 0x1c8]
push eax
call dword [0x102aba98]
push 1
lea eax, [edi + 0x1b8]
push eax
lea ecx, [esp + 0xa4]
call dword [0x102aba7c]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0xa4], ecx
dec ecx
add ecx, dword [ebp + 0x24]
mov dword [esp + 0xac], ecx
mov ecx, dword [ebp + 0x28]
dec ecx
mov byte [esp + 0x13b0], 9
add ecx, esi
mov dword [esp + 0xa8], esi
push eax
lea eax, [esp + 0xa8]
mov dword [esp + 0xb4], ecx
mov ecx, dword [esp + 0x18]
push eax
call dword [0x102abd8c]
lea ecx, [esp + 0x9c]
jmp 0x10220ade
lea eax, [edi + 0x1f8]
push eax
call dword [0x102aba98]
push 1
lea eax, [edi + 0x208]
push eax
lea ecx, [esp + 0x6c]
call dword [0x102aba7c]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x104], ecx
dec ecx
add ecx, dword [ebp + 0x24]
mov dword [esp + 0x10c], ecx
mov ecx, dword [ebp + 0x28]
dec ecx
mov byte [esp + 0x13b0], 0xa
add ecx, esi
mov dword [esp + 0x108], esi
push eax
lea eax, [esp + 0x108]
mov dword [esp + 0x114], ecx
mov ecx, dword [esp + 0x18]
push eax
call dword [0x102abd8c]
lea ecx, [esp + 0x64]
jmp 0x10220ade
test eax, eax
jne 0x1022054b
lea ecx, [esp + 0x694]
call dword [0x102abd28]
cmp byte [esp + 0x27], 0
lea ecx, [esp + 0x694]
je 0x102204b0
lea eax, [edi + 0x218]
push eax
call dword [0x102abd44]
lea eax, [edi + 0x238]
jmp 0x102204c3
lea eax, [edi + 0x248]
push eax
call dword [0x102abd44]
lea eax, [edi + 0x258]
mov edi, dword [esp + 0x14]
mov ecx, edi
push eax
call dword [0x102aba98]
lea ecx, [esp + 0x694]
call dword [0x102abd40]
test eax, eax
je 0x10220aec
push 1
lea eax, [esp + 0x698]
push eax
lea ecx, [esp + 0x8c]
call dword [0x102aba7c]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x194], ecx
dec ecx
add ecx, dword [ebp + 0x24]
mov dword [esp + 0x19c], ecx
mov ecx, dword [ebp + 0x28]
dec ecx
mov byte [esp + 0x13b0], 0xb
add ecx, esi
mov dword [esp + 0x198], esi
push eax
lea eax, [esp + 0x198]
mov dword [esp + 0x1a4], ecx
push eax
mov ecx, edi
call dword [0x102abd8c]
lea ecx, [esp + 0x84]
jmp 0x10220ade
test al, 1
je 0x102205c1
mov ecx, dword [esp + 0x14]
lea eax, [edi + 0x1a8]
push eax
call dword [0x102aba98]
push 1
lea eax, [edi + 0x198]
push eax
lea ecx, [esp + 0x74]
call dword [0x102aba7c]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x134], ecx
dec ecx
add ecx, dword [ebp + 0x24]
mov dword [esp + 0x13c], ecx
mov ecx, dword [ebp + 0x28]
dec ecx
mov byte [esp + 0x13b0], 0xc
add ecx, esi
mov dword [esp + 0x138], esi
push eax
lea eax, [esp + 0x138]
mov dword [esp + 0x144], ecx
mov ecx, dword [esp + 0x18]
push eax
call dword [0x102abd8c]
lea ecx, [esp + 0x6c]
jmp 0x10220ade
test al, 2
je 0x1022063d
mov ecx, dword [esp + 0x14]
lea eax, [edi + 0x1c8]
push eax
call dword [0x102aba98]
push 1
lea eax, [edi + 0x1b8]
push eax
lea ecx, [esp + 0x9c]
call dword [0x102aba7c]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x1d4], ecx
dec ecx
add ecx, dword [ebp + 0x24]
mov dword [esp + 0x1dc], ecx
mov ecx, dword [ebp + 0x28]
dec ecx
mov byte [esp + 0x13b0], 0xd
add ecx, esi
mov dword [esp + 0x1d8], esi
push eax
lea eax, [esp + 0x1d8]
mov dword [esp + 0x1e4], ecx
mov ecx, dword [esp + 0x18]
push eax
call dword [0x102abd8c]
lea ecx, [esp + 0x94]
jmp 0x10220ade
lea ecx, [esp + 0x694]
call dword [0x102abd28]
cmp byte [esp + 0x27], 0
lea ecx, [esp + 0x694]
je 0x1022066d
lea eax, [edi + 0x218]
push eax
call dword [0x102abd44]
lea eax, [edi + 0x238]
jmp 0x10220680
lea eax, [edi + 0x248]
push eax
call dword [0x102abd44]
lea eax, [edi + 0x258]
mov edi, dword [esp + 0x14]
mov ecx, edi
push eax
call dword [0x102aba98]
lea ecx, [esp + 0x694]
call dword [0x102abd40]
test eax, eax
je 0x10220aec
push 1
lea eax, [esp + 0x698]
push eax
lea ecx, [esp + 0x7c]
call dword [0x102aba7c]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x154], ecx
dec ecx
add ecx, dword [ebp + 0x24]
mov dword [esp + 0x15c], ecx
mov ecx, dword [ebp + 0x28]
dec ecx
mov byte [esp + 0x13b0], 0xe
add ecx, esi
mov dword [esp + 0x158], esi
push eax
lea eax, [esp + 0x158]
mov dword [esp + 0x164], ecx
push eax
mov ecx, edi
call dword [0x102abd8c]
lea ecx, [esp + 0x74]
jmp 0x10220ade
cmp byte [esp + 0x109c], 0
je 0x102208c5
cmp dword [esp + 0x1c], 0
jne 0x1022078f
mov ecx, dword [esp + 0x14]
lea eax, [edi + 0x1f8]
push eax
call dword [0x102aba98]
push 1
lea eax, [edi + 0x1d8]
push eax
lea ecx, [esp + 0x94]
call dword [0x102aba7c]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x1b4], ecx
dec ecx
add ecx, dword [ebp + 0x24]
mov dword [esp + 0x1bc], ecx
mov ecx, dword [ebp + 0x28]
dec ecx
mov byte [esp + 0x13b0], 0xf
add ecx, esi
mov dword [esp + 0x1b8], esi
push eax
lea eax, [esp + 0x1b8]
mov dword [esp + 0x1c4], ecx
mov ecx, dword [esp + 0x18]
push eax
call dword [0x102abd8c]
lea ecx, [esp + 0x8c]
jmp 0x10220ade
mov eax, dword [edi + 0x1d8]
lea ecx, [esp + 0x694]
movq xmm0, qword [edi + 0x1dc]
mov dword [esp + 0x694], eax
mov ax, word [edi + 0x1e4]
movq qword [esp + 0x698], xmm0
mov word [esp + 0x6a0], ax
call dword [0x102abd40]
test eax, eax
jne 0x102207e1
lea eax, [edi + 0x258]
push eax
lea ecx, [esp + 0x698]
call dword [0x102abd44]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x694]
push eax
call dword [0x102aba98]
mov eax, dword [esp + 0x1c]
test al, 1
je 0x1022085c
push 1
lea eax, [edi + 0x198]
push eax
lea ecx, [esp + 0x58]
call dword [0x102aba7c]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x174], ecx
dec ecx
add ecx, dword [ebp + 0x24]
mov dword [esp + 0x17c], ecx
mov ecx, dword [ebp + 0x28]
dec ecx
mov byte [esp + 0x13b0], 0x10
add ecx, esi
mov dword [esp + 0x178], esi
push eax
lea eax, [esp + 0x178]
mov dword [esp + 0x184], ecx
mov ecx, dword [esp + 0x18]
push eax
call dword [0x102abd8c]
lea ecx, [esp + 0x50]
jmp 0x10220ade
test al, 2
je 0x10220aec
push 1
lea eax, [edi + 0x1b8]
push eax
lea ecx, [esp + 0x60]
call dword [0x102aba7c]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0xd4], ecx
dec ecx
add ecx, dword [ebp + 0x24]
mov dword [esp + 0xdc], ecx
mov ecx, dword [ebp + 0x28]
dec ecx
mov byte [esp + 0x13b0], 0x11
add ecx, esi
mov dword [esp + 0xd8], esi
push eax
lea eax, [esp + 0xd8]
mov dword [esp + 0xe4], ecx
mov ecx, dword [esp + 0x18]
push eax
call dword [0x102abd8c]
lea ecx, [esp + 0x58]
jmp 0x10220ade
cmp dword [esp + 0x1c], 0
jne 0x1022093e
mov ecx, dword [esp + 0x14]
lea eax, [edi + 0x1e8]
push eax
call dword [0x102aba98]
push 1
lea eax, [edi + 0x1d8]
push eax
lea ecx, [esp + 0x68]
call dword [0x102aba7c]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0xf4], ecx
dec ecx
add ecx, dword [ebp + 0x24]
mov dword [esp + 0xfc], ecx
mov ecx, dword [ebp + 0x28]
dec ecx
mov byte [esp + 0x13b0], 0x12
add ecx, esi
mov dword [esp + 0xf8], esi
push eax
lea eax, [esp + 0xf8]
mov dword [esp + 0x104], ecx
mov ecx, dword [esp + 0x18]
push eax
call dword [0x102abd8c]
lea ecx, [esp + 0x60]
jmp 0x10220ade
mov eax, dword [edi + 0x1d8]
lea ecx, [edi + 0x1d8]
movq xmm0, qword [ecx + 4]
mov dword [esp + 0x694], eax
mov ax, word [ecx + 0xc]
mov dword [esp + 0x3c], ecx
lea ecx, [esp + 0x694]
movq qword [esp + 0x698], xmm0
mov word [esp + 0x6a0], ax
call dword [0x102abd40]
test eax, eax
jne 0x10220994
lea eax, [edi + 0x258]
push eax
lea ecx, [esp + 0x698]
call dword [0x102abd44]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x694]
push eax
call dword [0x102aba98]
mov eax, dword [esp + 0x1c]
test al, 1
je 0x10220a0f
push 1
lea eax, [edi + 0x198]
push eax
lea ecx, [esp + 0x70]
call dword [0x102aba7c]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x124], ecx
dec ecx
add ecx, dword [ebp + 0x24]
mov dword [esp + 0x12c], ecx
mov ecx, dword [ebp + 0x28]
dec ecx
mov byte [esp + 0x13b0], 0x13
add ecx, esi
mov dword [esp + 0x128], esi
push eax
lea eax, [esp + 0x128]
mov dword [esp + 0x134], ecx
mov ecx, dword [esp + 0x18]
push eax
call dword [0x102abd8c]
lea ecx, [esp + 0x68]
jmp 0x10220ade
test al, 2
je 0x10220a71
push 1
lea eax, [edi + 0x1b8]
push eax
lea ecx, [esp + 0x78]
call dword [0x102aba7c]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0xb4], ecx
dec ecx
add ecx, dword [ebp + 0x24]
mov dword [esp + 0xbc], ecx
mov ecx, dword [ebp + 0x28]
dec ecx
mov byte [esp + 0x13b0], 0x14
add ecx, esi
mov dword [esp + 0xb8], esi
push eax
lea eax, [esp + 0xb8]
mov dword [esp + 0xc4], ecx
mov ecx, dword [esp + 0x18]
push eax
call dword [0x102abd8c]
lea ecx, [esp + 0x70]
jmp 0x10220ade
mov ecx, dword [esp + 0x14]
lea eax, [edi + 0x1e8]
push eax
call dword [0x102aba98]
push 1
push dword [esp + 0x40]
lea ecx, [esp + 0x80]
call dword [0x102aba7c]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0xc4], ecx
dec ecx
add ecx, dword [ebp + 0x24]
mov dword [esp + 0xcc], ecx
mov ecx, dword [ebp + 0x28]
dec ecx
mov byte [esp + 0x13b0], 0x15
add ecx, esi
mov dword [esp + 0xc8], esi
push eax
lea eax, [esp + 0xc8]
mov dword [esp + 0xd4], ecx
mov ecx, dword [esp + 0x18]
push eax
call dword [0x102abd8c]
lea ecx, [esp + 0x78]
mov byte [esp + 0x13b0], 6
call dword [0x102aba80]
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp + 0x24]
add eax, 4
mov dword [esp + 0x164], eax
add ecx, 0xfffffffb
add eax, ecx
mov dword [esp + 0x168], esi
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x16c], eax
mov eax, dword [ebp + 0x28]
dec eax
add eax, esi
mov dword [esp + 0x170], eax
lea eax, [esp + 0x20]
push 0
push eax
push 0x81
lea eax, [esp + 0x170]
push eax
call dword [0x102abd90]
lea ecx, [esp + 0x20]
jmp 0x10221728
push dword [esp + 0x244]
mov esi, dword [0x102ad4cc]
call esi
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x248]
dec eax
mov ecx, dword [ecx + 0x14]
add ecx, eax
push ecx
call esi
mov ecx, eax
add esp, 8
mov eax, dword [esp + 0x3c]
cmp eax, 1
jne 0x10220b83
cmp ecx, 3
jne switch.0x10220b96
lea eax, [ecx + 1]
jmp switch.0x10220b96
cmp ecx, 3
jne 0x10220b91
cmp eax, 4
je switch.0x10220b96
mov eax, ecx
jmp switch.0x10220b96
cmp eax, 4
ja case.default.0x10220b96
jmp dword [eax*4 + 0x10221794]
mov eax, 1
jmp 0x10220bc1
xor eax, eax
jmp 0x10220bc1
mov eax, 2
jmp 0x10220bc1
mov eax, 3
jmp 0x10220bc1
mov eax, 5
jmp 0x10220bc1
mov eax, dword [esp + 0x48]
mov esi, dword [esp + 0x30]
mov ecx, edi
push 0
push eax
push esi
push dword [esp + 0x24]
mov esi, dword [esp + 0x24]
push esi
mov dword [esp + 0x30], eax
call fcn.102217c0
lea ecx, [edi + 0x31c]
mov dword [esp + 0x20], eax
push ecx
mov ecx, esi
call dword [0x102abd00]
push dword [esp + 0x244]
call dword [0x102ad414]
add esp, 4
cmp eax, 2
jne 0x10220c0c
mov byte [esp + 0x1c], 0x3e
jmp 0x10220c2e
cmp eax, 3
jne 0x10220c18
mov byte [esp + 0x1c], 0x24
jmp 0x10220c2e
cmp dword [esp + 0x1c], 0
mov eax, 0x20
mov ecx, 0x2e
cmovne eax, ecx
mov dword [esp + 0x1c], eax
mov ecx, edi
call fcn.10068be0
push ecx
mov esi, eax
mov edx, esp
mov eax, dword [esp + 0x20]
movsx cx, al
mov word [edx], cx
lea ecx, [esp + 0x84]
call dword [0x102ab718]
mov ecx, dword [esp + 0x18]
add ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x184], ecx
dec ecx
add ecx, esi
mov dword [esp + 0x188], edx
mov dword [esp + 0x18c], ecx
dec edx
mov ecx, dword [ebp + 0x28]
push 0
push eax
add ecx, edx
mov dword [esp + 0x13b8], 0x16
push 0x81
lea eax, [esp + 0x190]
mov dword [esp + 0x19c], ecx
mov ecx, dword [esp + 0x20]
push eax
call dword [0x102abd90]
lea ecx, [esp + 0x80]
mov dword [esp + 0x13b0], 0xffffffff
call dword [0x102aba64]
mov eax, dword [esp + 0x38]
add dword [esp + 0x20], esi
mov ecx, dword [esp + 0x14]
mov esi, dword [eax + 0x1c]
lea eax, [edi + 0x320]
push eax
call dword [0x102abd00]
mov ecx, edi
call fcn.100690b0
cdq
sub eax, edx
mov dword [esp + 0x28], 0
sar eax, 1
inc eax
mov dword [esp + 0x1c], eax
cmp esi, 1
je 0x10220d03
cmp esi, 2
jne 0x10220dd7
mov ecx, dword [edi + 0x128]
call fcn.10229670
mov ecx, eax
xor eax, eax
cmp eax, edx
ja 0x10220dd7
mov eax, dword [esp + 0x2c]
jb 0x10220d28
cmp eax, ecx
jae 0x10220dd7
mov ecx, dword [edi + 0x128]
inc eax
push 0
push eax
lea eax, [esp + 0xb1c]
push eax
call fcn.10229aa0
mov esi, dword [esp + 0x30]
mov ecx, dword [eax + 0x20]
mov eax, dword [esp + 0x244]
cmp ecx, eax
jae 0x10220db5
mov edx, dword [esp + 0x20]
add edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
inc ecx
add ecx, esi
lea eax, [edx + 2]
mov dword [esp + 0xf8c], eax
mov eax, dword [esp + 0x1c]
dec eax
add eax, esi
mov dword [esp + 0xf88], ecx
mov dword [esp + 0xf90], eax
lea eax, [edx + 4]
mov dword [esp + 0xf94], eax
lea eax, [esp + 0xf84]
push 3
mov dword [esp + 0xf9c], ecx
mov ecx, dword [esp + 0x18]
push eax
mov dword [esp + 0xf8c], edx
mov dword [esp + 0x30], 8
call dword [0x102abcf4]
jmp 0x10220ddb
jbe 0x10220ddb
mov edx, dword [esp + 0x20]
add edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
dec ecx
add ecx, esi
lea eax, [edx + 2]
mov dword [esp + 0xf8c], eax
mov eax, dword [esp + 0x1c]
inc eax
jmp 0x10220d6f
mov esi, dword [esp + 0x30]
push dword [esp + 0x38]
lea eax, [esp + 0x21c]
mov ecx, edi
push eax
call fcn.1021e9d0
push dword [edi + 0xe0]
mov ecx, edi
mov dword [esp + 0x13b4], 0x17
push eax
mov eax, dword [esp + 0x28]
add eax, dword [esp + 0x30]
push eax
call fcn.100690b0
push eax
push 2
mov ecx, edi
call fcn.10068fa0
push eax
push esi
push dword [esp + 0x30]
push dword [esp + 0x30]
call fcn.1012abb0
add esp, 0x20
mov dword [esp + 0x13b0], 0xffffffff
lea ecx, [esp + 0x218]
call fcn.10056970
jmp case.default.0x102201a5
mov dword [esp + 0x694], 0
mov dword [esp + 0x698], 0
mov dword [esp + 0x69c], 0
mov dword [esp + 0x13b0], 0x18
xor eax, eax
mov dword [esp + 0x1c], 0
push eax
push dword [esp + 0x248]
mov dword [esp + 0x30], eax
call dword [0x102ad514]
push dword [esp + 0x30]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x44]
mov ecx, dword [eax + 0x14]
mov eax, dword [esp + 0x250]
dec eax
add ecx, eax
push ecx
call dword [0x102ad514]
mov ecx, eax
add esp, 0x10
mov eax, dword [esp + 0x3c]
cmp eax, 1
jne 0x10220ec8
cmp ecx, 4
jne 0x10220eda
lea eax, [ecx + 1]
jmp 0x10220eda
cmp ecx, 4
jne 0x10220ed6
cmp eax, 5
je 0x10220ed6
mov eax, ecx
jmp 0x10220eda
test eax, eax
je 0x10220f4a
lea ecx, [eax - 1]
cmp ecx, 4
ja case.default.0x10220ee2
jmp dword [ecx*4 + 0x102217a8]
mov dword [esp + 0x20], 1
jmp case.default.0x10220ee2
mov dword [esp + 0x20], 2
jmp case.default.0x10220ee2
mov dword [esp + 0x20], 4
jmp case.default.0x10220ee2
mov dword [esp + 0x20], 3
jmp case.default.0x10220ee2
mov dword [esp + 0x20], 5
cmp eax, 5
mov ecx, edi
setne al
movzx eax, al
push eax
push dword [esp + 0x24]
mov eax, dword [esp + 0x20]
add eax, dword [esp + 0x24]
push esi
push eax
push dword [esp + 0x24]
call fcn.102217c0
add dword [esp + 0x1c], eax
mov eax, dword [esp + 0x28]
inc eax
jmp 0x10220e7e
mov eax, dword [edi + 0x118]
cmp dword [eax + 4], 0
je 0x10220f5f
lea eax, [edi + 0x114]
push eax
jmp 0x10220f61
push 0
lea eax, [esp + 0x698]
push eax
mov eax, dword [esp + 0x40]
add eax, 0x20
push eax
call fcn.1006ffe0
add esp, 0xc
lea eax, [esp + 0x694]
mov ecx, edi
push dword [edi + 0xe0]
push eax
push 4
call fcn.100690b0
push eax
push 3
mov ecx, edi
call fcn.10068fa0
push eax
mov eax, dword [esp + 0x2c]
add eax, dword [esp + 0x30]
push esi
push eax
push dword [esp + 0x30]
call fcn.1012abb0
push 0
push 0x102adb08
call dword [0x102ab9d0]
mov esi, dword [esp + 0x5c]
lea ecx, [esp + 0x6bc]
add esp, 0x28
mov dword [esi], eax
call fcn.10056970
jmp 0x1022174f
mov dword [esp + 0x694], 0
mov dword [esp + 0x698], 0
mov dword [esp + 0x69c], 0
xor eax, eax
mov dword [esp + 0x13b0], 0x19
push eax
push dword [esp + 0x30]
lea eax, [esp + 0xf8c]
mov ecx, edi
push eax
call fcn.10223370
mov eax, dword [edi + 0x118]
mov byte [esp + 0x13b0], 0x1a
cmp dword [eax + 4], 0
je 0x10221034
lea eax, [edi + 0x114]
push eax
jmp 0x10221036
push 0
lea eax, [esp + 0x698]
push eax
lea eax, [esp + 0xf8c]
push eax
call fcn.1006ffe0
add esp, 0xc
lea eax, [esp + 0x694]
mov ecx, edi
push dword [edi + 0xe0]
push eax
push 4
call fcn.100690b0
push eax
push 4
mov ecx, edi
call fcn.10068fa0
push eax
push esi
push dword [esp + 0x30]
push dword [esp + 0x30]
call fcn.1012abb0
push 0
push 0x102adb08
call dword [0x102ab9d0]
mov esi, dword [esp + 0x5c]
lea ecx, [esp + 0xfac]
add esp, 0x28
mov dword [esi], eax
call fcn.1000c6e0
lea ecx, [esp + 0x694]
call fcn.10056970
jmp 0x1022174f
xor eax, eax
mov ecx, edi
push eax
push dword [esp + 0x30]
lea eax, [esp + 0xf8c]
push eax
call fcn.1021f0b0
mov dword [esp + 0x13b0], 0x1b
mov dword [esp + 0x694], 0
mov dword [esp + 0x698], 0
mov dword [esp + 0x69c], 0
mov eax, dword [edi + 0x118]
mov byte [esp + 0x13b0], 0x1c
cmp dword [eax + 4], 0
je 0x10221110
lea eax, [edi + 0x114]
push eax
jmp 0x10221112
push 0
lea eax, [esp + 0x698]
push eax
lea eax, [esp + 0xf8c]
push eax
call fcn.1006ffe0
add esp, 0xc
lea eax, [esp + 0x694]
mov ecx, edi
push dword [edi + 0xe0]
push eax
push 4
call fcn.100690b0
push eax
push 5
mov ecx, edi
call fcn.10068fa0
push eax
push esi
push dword [esp + 0x30]
push dword [esp + 0x30]
call fcn.1012abb0
push 0
push 0x102adb08
call dword [0x102ab9d0]
mov esi, dword [esp + 0x5c]
lea ecx, [esp + 0x6bc]
add esp, 0x28
mov dword [esi], eax
call fcn.10056970
lea ecx, [esp + 0xf84]
call fcn.1000c6e0
jmp 0x1022174f
call dword [0x102ad4a0]
test al, al
je 0x102214dd
lea ecx, [esp + 0x20]
call dword [0x102aba48]
push 0xff
lea eax, [esp + 0xfa1]
mov dword [esp + 0x13b4], 0x1d
push 0
push eax
mov byte [esp + 0x33], 0
mov byte [esp + 0xfa8], 0
call fcn.10257422
lea eax, [esp + 0x33]
push eax
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x258]
call fcn.10195b60
add esp, 0x18
test al, al
je 0x10221332
lea ecx, [esp + 0xf84]
call dword [0x102abd28]
cmp byte [esp + 0x27], 0
mov ecx, dword [esp + 0x14]
je 0x10221220
lea eax, [edi + 0x278]
push eax
mov eax, dword [0x102aba98]
call eax
lea eax, [edi + 0x288]
jmp 0x10221234
lea eax, [edi + 0x298]
push eax
mov eax, dword [0x102aba98]
call eax
lea eax, [edi + 0x2a8]
push eax
lea ecx, [esp + 0xf88]
call dword [0x102abd44]
mov ecx, dword [edi + 0xe0]
lea eax, [esp + 0x20]
push eax
call fcn.10074680
mov ecx, eax
cmp ecx, dword [ebp + 0x24]
cmovg ecx, dword [ebp + 0x24]
mov dword [esp + 0x2c], ecx
test ecx, ecx
je 0x102212de
push 1
lea eax, [esp + 0xf88]
push eax
lea ecx, [esp + 0x90]
call dword [0x102aba7c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x2c]
add ecx, 3
mov dword [esp + 0x1a4], ecx
dec edx
add ecx, edx
mov byte [esp + 0x13b0], 0x1e
mov dword [esp + 0x1ac], ecx
mov ecx, dword [ebp + 0x28]
dec ecx
mov dword [esp + 0x1a8], esi
add ecx, esi
push eax
lea eax, [esp + 0x1a8]
mov dword [esp + 0x1b4], ecx
mov ecx, dword [esp + 0x18]
push eax
call dword [0x102abd8c]
lea ecx, [esp + 0x88]
mov byte [esp + 0x13b0], 0x1d
call dword [0x102aba80]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
add eax, 3
mov dword [esp + 0x1c8], esi
mov dword [esp + 0x1c4], eax
dec eax
add eax, ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x1cc], eax
mov eax, dword [ebp + 0x28]
dec eax
add eax, esi
mov dword [esp + 0x1d0], eax
lea eax, [esp + 0x20]
push 0
push eax
push 0x81
lea eax, [esp + 0x1d0]
push eax
mov eax, dword [0x102abd90]
call eax
mov edx, dword [esp + 0x2c]
jmp 0x102214bb
lea eax, [esp + 0xf9c]
push eax
push 0
push dword [esp + 0x24c]
call dword [0x102ad48c]
add esp, 0xc
test al, al
je 0x102214b9
lea ecx, [esp + 0xf9c]
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10221360
sub ecx, edx
lea eax, [esp + 0xf9c]
push ecx
push eax
call dword [0x102ab9d0]
add esp, 8
mov dword [esp + 0x28], eax
lea ecx, [esp + 0xf84]
mov byte [esp + 0x13b0], 0x1f
call dword [0x102abd28]
mov ecx, dword [esp + 0x14]
lea eax, [edi + 0x1f8]
push eax
mov eax, dword [0x102aba98]
call eax
lea eax, [edi + 0x208]
push eax
lea ecx, [esp + 0xf88]
call dword [0x102abd44]
mov ecx, dword [edi + 0xe0]
lea eax, [esp + 0x28]
push eax
call fcn.10074680
mov ecx, eax
cmp ecx, dword [ebp + 0x24]
cmovg ecx, dword [ebp + 0x24]
mov dword [esp + 0x2c], ecx
test ecx, ecx
je 0x10221456
push 1
lea eax, [esp + 0xf88]
push eax
lea ecx, [esp + 0x98]
call dword [0x102aba7c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x2c]
add ecx, 3
mov dword [esp + 0x1e4], ecx
dec edx
add ecx, edx
mov byte [esp + 0x13b0], 0x20
mov dword [esp + 0x1ec], ecx
mov ecx, dword [ebp + 0x28]
dec ecx
mov dword [esp + 0x1e8], esi
add ecx, esi
push eax
lea eax, [esp + 0x1e8]
mov dword [esp + 0x1f4], ecx
mov ecx, dword [esp + 0x18]
push eax
call dword [0x102abd8c]
lea ecx, [esp + 0x90]
mov byte [esp + 0x13b0], 0x1f
call dword [0x102aba80]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
add eax, 3
mov dword [esp + 0x208], esi
mov dword [esp + 0x204], eax
dec eax
add eax, ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x20c], eax
mov eax, dword [ebp + 0x28]
dec eax
add eax, esi
mov dword [esp + 0x210], eax
lea eax, [esp + 0x28]
push 0
push eax
push 0x81
lea eax, [esp + 0x210]
push eax
mov eax, dword [0x102abd90]
call eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x13b0], 0x1d
call dword [0x102aba64]
mov edx, dword [esp + 0x2c]
jmp 0x102214bb
xor edx, edx
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x20]
add eax, 3
mov dword [esp + 0x13b0], 0xffffffff
add eax, edx
mov dword [esp + 0x18], eax
call dword [0x102aba64]
cmp byte [edi + 0x127], 0
je case.default.0x102201a5
push 0x1ff
lea eax, [esp + 0x11a1]
mov byte [esp + 0x11a0], 0
push 0
push eax
call fcn.10257422
add esp, 0xc
lea ecx, [esp + 0x1c]
call dword [0x102aba48]
mov edx, dword [esp + 0x38]
mov esi, dword [0x102aba20]
mov dword [esp + 0x13b0], 0x21
mov eax, dword [edx + 0x20]
mov ecx, dword [edx + 0x24]
cmp eax, ecx
je 0x10221555
mov edx, dword [eax]
cmp edx, 1
je 0x1022153e
cmp edx, 4
jne 0x10221547
add eax, 0x10
cmp eax, ecx
jne 0x10221532
jmp 0x10221551
add eax, 4
lea ecx, [esp + 0x1c]
push eax
call esi
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x1c]
cmp dword [eax + 4], 0
jne 0x10221566
push edx
lea ecx, [esp + 0x20]
call esi
push 1
push 0
push ecx
mov eax, esp
mov ecx, 0x20
mov word [eax], cx
lea ecx, [esp + 0x28]
call dword [0x102aba08]
cmp eax, 0xffffffff
je 0x1022158f
push eax
lea ecx, [esp + 0x20]
call dword [0x102ab838]
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x20]
call dword [0x102ab9f4]
mov edi, eax
mov byte [esp + 0x13b0], 0x22
call dword [0x102ad49c]
mov esi, eax
mov ecx, edi
lea eax, [esp + 0x119c]
push eax
push 0x200
call dword [0x102aba24]
push eax
mov eax, dword [esi + 0x9c]
call eax
add esp, 0xc
mov byte [esp + 0x13b0], 0x21
lea ecx, [esp + 0x4c]
call dword [0x102aba30]
mov esi, dword [esp + 0x40]
mov edi, dword [esp + 0x14]
mov ecx, edi
lea eax, [esi + 0x2c8]
push eax
call dword [0x102aba98]
lea ecx, [esp + 0x119c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10221604
sub ecx, edx
lea eax, [esp + 0x119c]
push ecx
push eax
call dword [0x102ab9d0]
add esp, 8
mov dword [esp + 0x44], eax
cmp dword [eax + 4], 0
mov byte [esp + 0x13b0], 0x23
je 0x10221712
mov ecx, dword [esi + 0xe0]
lea eax, [esp + 0x44]
push eax
call fcn.10074680
mov ecx, eax
cmp ecx, dword [ebp + 0x24]
cmovg ecx, dword [ebp + 0x24]
mov dword [esp + 0x40], ecx
test ecx, ecx
je 0x102216c9
push 1
lea eax, [esi + 0x2d8]
push eax
lea ecx, [esp + 0x50]
call dword [0x102aba7c]
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x30]
mov dword [esp + 0x114], ecx
dec ecx
add ecx, dword [esp + 0x40]
mov dword [esp + 0x11c], ecx
mov ecx, dword [ebp + 0x28]
dec ecx
mov byte [esp + 0x13b0], 0x24
add ecx, esi
mov dword [esp + 0x118], esi
push eax
lea eax, [esp + 0x118]
mov dword [esp + 0x124], ecx
push eax
mov ecx, edi
call dword [0x102abd8c]
lea ecx, [esp + 0x48]
mov byte [esp + 0x13b0], 0x23
call dword [0x102aba80]
mov ecx, dword [esp + 0x40]
jmp 0x102216cd
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x18]
mov dword [esp + 0xe4], eax
dec eax
add eax, ecx
mov dword [esp + 0xe8], esi
mov dword [esp + 0xec], eax
mov ecx, edi
mov eax, dword [ebp + 0x28]
dec eax
add eax, esi
mov dword [esp + 0xf0], eax
lea eax, [esp + 0x44]
push 0
push eax
push 0x81
lea eax, [esp + 0xf0]
push eax
call dword [0x102abd90]
lea ecx, [esp + 0x44]
mov byte [esp + 0x13b0], 0x21
call dword [0x102aba64]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x13b0], 0xffffffff
call dword [0x102aba64]
push 0
push 0x102adb08
call dword [0x102ab9d0]
mov esi, dword [esp + 0x3c]
add esp, 8
mov dword [esi], eax
mov eax, esi
mov ecx, dword [esp + 0x13a8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x1394]
xor ecx, esp
call fcn.10257318
mov esp, ebp
pop ebp
ret 0x24