Function at 0x1002152f
Capabilities:
Check os version
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x100c9e6f
call fcn.100bd27c
sub esp, 0x88
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov esi, dword [ebp + 0x3c]
lea ecx, [ebp + 0xc]
inc esi
add esi, dword [ebp + 0x38]
call fcn.1001fcea
push esi
lea ecx, [ebp + 0xc]
call fcn.1000a25e
push esi
mov ecx, ebp
call fcn.1001fd45
xor ebx, ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
push esi
lea ecx, [esp + 0x28]
mov dword [esp + 0xa4], ebx
call fcn.1002c4da
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
push dword [esp + 0xb4]
xor eax, eax
mov ecx, ebp
inc eax
mov byte [esp + 0xa4], al
lea eax, [esp + 0x34]
push eax
push dword [esp + 0xb4]
call fcn.100223b6
mov esi, eax
test esi, esi
jne 0x10021b8f
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x58]
add eax, 0xe
push eax
call fcn.10022279
mov esi, eax
test esi, esi
jne 0x10021b8f
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x5c]
mov esi, dword [esp + 0x60]
shr eax, cl
cmp eax, esi
jae 0x100215f1
xor eax, eax
lea esi, [eax + 1]
jmp 0x10021b8f
push esi
call fcn.10003645
mov edi, eax
mov dword [esp + 0x74], esi
mov dword [esp + 0x70], edi
push esi
push ebx
push edi
call fcn.100bda30
xorps xmm0, xmm0
mov dword [esp + 0x98], ebx
add esp, 0x10
movlpd qword [esp + 0x80], xmm0
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ebx
mov ebx, dword [esp + 0x58]
xor eax, eax
xor ecx, ecx
mov byte [esp + 0xa0], 3
mov dword [esp + 0x14], eax
mov dword [esp + 0x38], ecx
test ebx, ebx
je 0x100219fa
cmp ebx, esi
jae 0x10021900
cmp byte [edi + ebx], 0
jne 0x10021900
mov ecx, dword [esp + 0x5c]
xor eax, eax
inc eax
mov byte [edi + ebx], al
mov eax, dword [esp + 0x30]
shl ebx, cl
lea ecx, [esp + 0x48]
add eax, ebx
push eax
mov dword [esp + 0x78], eax
call fcn.100222c5
mov ecx, dword [esp + 0x5c]
xor eax, eax
lea edx, [eax + 1]
shl edx, cl
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x40], edx
lea eax, [ecx*2 + 0x10]
cmp eax, edx
ja 0x10021900
cmp byte [esp + 0x4c], 0xff
jne 0x10021900
and dword [esp + 0x44], 0
test ecx, ecx
je 0x100219e6
xor esi, esi
mov dword [esp + 0x3c], esi
mov ecx, dword [esp + 0x30]
sub ecx, esi
add ecx, edx
movzx eax, byte [ecx + ebx - 2]
shl ax, 8
movzx edi, ax
movzx eax, byte [ecx + ebx - 1]
or edi, eax
mov eax, dword [esp + 0x30]
sub eax, esi
add eax, edx
movzx eax, byte [eax + ebx - 4]
shl ax, 8
movzx edx, ax
movzx eax, byte [ecx + ebx - 3]
or edx, eax
mov eax, dword [esp + 0x40]
mov esi, edx
sub esi, edi
cmp edi, eax
jae 0x10021900
cmp edx, eax
ja 0x10021900
cmp edx, edi
jb 0x10021900
cmp esi, 6
jb 0x10021900
mov edx, dword [esp + 0x74]
add edx, edi
movzx eax, byte [edx]
shl ax, 8
movzx ecx, ax
movzx eax, byte [edx + 1]
or ecx, eax
mov eax, dword [edx + 2]
bswap eax
mov dword [esp + 0x64], eax
cmp ecx, 6
jb 0x10021900
xor eax, eax
inc eax
test al, cl
jne 0x10021900
lea eax, [ecx + 2]
cmp eax, esi
ja 0x10021900
movzx eax, byte [edx + 6]
sub ecx, 6
shl ax, 8
movzx edi, ax
movzx eax, byte [edx + 7]
or edi, eax
mov dword [esp + 0x1c], edi
add edi, edi
mov dword [esp + 0x18], edi
cmp edi, ecx
jne 0x10021900
push 0xfffffffffffffff8
pop eax
sub eax, edi
add edx, 8
add esi, eax
add edx, edi
push 2
pop eax
mov dword [esp + 0x20], edx
cmp esi, eax
jb 0x10021900
movzx ecx, byte [edx]
movzx eax, byte [edx + 1]
shl cx, 8
or cx, ax
movzx eax, cx
xor ecx, ecx
inc ecx
mov dword [esp + 0x68], eax
cmp ax, cx
je 0x100217cd
push 2
pop ecx
cmp ax, cx
jne 0x100219bd
cmp esi, 0x58
jb 0x10021900
lea ecx, [ebp + 0xc]
call fcn.1001fbf8
mov ecx, dword [esp + 0x20]
mov edi, eax
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x1c]
push edi
mov dword [edi + 0xc], eax
mov eax, dword [esp + 0x6c]
mov word [edi + 0x10], ax
mov eax, dword [ecx + 8]
sub ecx, dword [esp + 0x1c]
bswap eax
mov dword [edi + 0x14], eax
mov dword [esp + 0x1c], ecx
call fcn.10021e67
xor eax, eax
inc eax
cmp dword [edi + 4], eax
ja 0x1002189d
cmp dword [edi + 4], 0
jne 0x10021889
cmp dword [esp + 0x1c], 0x15
jne 0x10021883
mov edx, dword [esp + 0x18]
cmp dword [edx], 0
jne 0x10021883
cmp dword [edx + 4], 0
jne 0x10021883
add edx, 8
mov byte [esp + 0x13], 0x48
mov dword [esp + 0x1c], str.HFS_Private_Data
movzx eax, byte [edx]
movzx ecx, byte [edx + 1]
shl ax, 8
or cx, ax
mov al, byte [esp + 0x13]
movzx eax, al
cmp cx, ax
jne 0x10021883
push 2
pop eax
add edx, eax
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
mov al, byte [eax]
mov byte [esp + 0x13], al
test al, al
jne 0x10021845
push str._HFS_Private_Data_
mov ecx, edi
call fcn.10002be4
cmp dword [edi + 4], 0
je 0x10021891
mov eax, dword [edi]
cmp word [eax], 0x20
jne 0x1002189d
push 0x100d2988
mov ecx, edi
call fcn.10002be4
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 0xc]
bswap eax
mov dword [edi + 0x18], eax
mov eax, dword [edx + 0x10]
bswap eax
mov dword [edi + 0x1c], eax
mov eax, dword [edx + 0x18]
bswap eax
mov dword [edi + 0x20], eax
movzx ecx, byte [edx + 0x2a]
movzx eax, byte [edx + 0x2b]
shl cx, 8
or cx, ax
mov word [edi + 0x12], cx
lea ecx, [esp + 0x24]
mov eax, dword [ebp + 0x10]
dec eax
push eax
push dword [edi + 0x14]
call fcn.1000eb6f
mov eax, dword [esp + 0x20]
xor ecx, ecx
add eax, 0x58
inc ecx
sub esi, 0x58
mov dword [esp + 0x20], eax
cmp word [edi + 0x10], cx
jne 0x1002190a
inc dword [esp + 0x38]
test esi, esi
je 0x10021985
xor ebx, ebx
lea esi, [ebx + 1]
jmp 0x10021b7d
inc dword [esp + 0x14]
cmp esi, 0xa0
jne 0x10021900
push eax
lea ecx, [edi + 0x28]
call fcn.1002222d
push dword [ebp + 0x40]
lea ecx, [edi + 0x28]
push dword [edi + 0x14]
push dword [esp + 0xb8]
call fcn.10022740
test al, al
jne 0x1002193e
xor eax, eax
inc eax
mov byte [ebp + 0x4c], al
mov eax, dword [esp + 0x20]
lea esi, [edi + 0x40]
add eax, 0x50
mov ecx, esi
push eax
call fcn.1002222d
mov ecx, esi
call fcn.100211c3
test al, al
jne 0x10021985
push dword [ebp + 0x40]
mov eax, dword [esp + 0xb4]
mov ecx, esi
push dword [edi + 0x14]
add eax, 0xc
push eax
call fcn.10022740
test al, al
jne 0x1002197f
xor eax, eax
inc eax
mov byte [ebp + 0x4c], al
jmp 0x10021982
xor eax, eax
inc eax
mov byte [ebp + 0x4d], al
mov ecx, dword [esp + 0xb8]
test ecx, ecx
je 0x100219ba
mov eax, dword [ebp + 0x10]
test eax, 0xfff
jne 0x100219ba
and dword [esp + 0x7c], 0
lea edx, [esp + 0x78]
push 0
mov dword [esp + 0x7c], eax
mov eax, dword [ecx]
push edx
push ecx
call dword [eax + 0x10]
mov esi, eax
test esi, esi
jne 0x10021b7d
push 2
pop ecx
mov eax, dword [esp + 0x44]
mov esi, dword [esp + 0x3c]
inc eax
mov edx, dword [esp + 0x40]
add esi, ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x3c], esi
cmp eax, dword [esp + 0x50]
jb 0x100216c6
mov esi, dword [esp + 0x60]
mov edi, dword [esp + 0x6c]
mov ebx, dword [esp + 0x48]
test ebx, ebx
jne 0x10021654
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x14]
cmp dword [ebp + 0x38], eax
jne 0x10021a07
mov eax, dword [ebp + 0x3c]
inc eax
cmp eax, ecx
je 0x10021a0f
xor ebx, ebx
inc ebx
mov byte [ebp + 0x4c], bl
jmp 0x10021a12
xor ebx, ebx
inc ebx
lea ecx, [esp + 0x24]
call fcn.1002260b
mov edx, ebx
cmp dword [esp + 0x28], ebx
jbe 0x10021a3b
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx + edx*8 - 8]
cmp eax, dword [ecx + edx*8]
je 0x10021bbb
inc edx
cmp edx, dword [esp + 0x28]
jb 0x10021a23
push dword [ebp + 0x1c]
lea ecx, [esp + 0x18]
call fcn.1001f8e1
mov ebx, dword [esp + 0x14]
xor ecx, ecx
mov eax, ecx
mov byte [esp + 0xa0], 4
cmp dword [ebp + 0x1c], ecx
jbe 0x10021a65
mov byte [eax + ebx], cl
inc eax
cmp eax, dword [ebp + 0x1c]
jb 0x10021a5c
mov esi, ecx
cmp dword [ebp + 0x1c], ecx
jbe 0x10021aa6
mov eax, dword [ebp + 0x18]
lea ecx, [esp + 0x24]
mov edi, dword [eax + esi*4]
mov edx, dword [edi]
call fcn.10020941
mov ecx, eax
test ecx, ecx
js 0x10021a9a
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + ecx*4]
lea eax, [esi + ebx]
push eax
push ecx
push edi
mov ecx, ebp
call fcn.100222f0
test al, al
jne 0x10021aa0
xor eax, eax
inc eax
mov byte [ebp + 0x4c], al
inc esi
cmp esi, dword [ebp + 0x1c]
jb 0x10021a6c
push dword [ebp + 0x10]
lea ecx, [esp + 0x28]
call fcn.1002c4da
and dword [esp + 0x18], 0
cmp dword [ebp + 0x10], 0
jbe 0x10021b07
mov ebx, dword [esp + 0x18]
mov eax, dword [ebp + 0xc]
lea ecx, [esp + 0x24]
push dword [ebp + 4]
mov eax, dword [eax + ebx*4]
push dword [eax + 0x14]
call fcn.1000eb6f
or dword [esp + 0x4c], 0xffffffff
lea esi, [esp + 0x48]
or dword [esp + 0x50], 0xffffffff
sub esp, 0x10
mov edi, esp
mov byte [esp + 0x64], 0
mov dword [esp + 0x58], ebx
mov ecx, ebp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.1001fb2a
inc ebx
cmp ebx, dword [ebp + 0x10]
jb 0x10021ac1
mov ebx, dword [esp + 0x14]
lea ecx, [esp + 0x24]
call fcn.1002260b
and dword [esp + 0x18], 0
cmp dword [ebp + 4], 0
jbe 0x10021b74
mov ebx, dword [esp + 0x18]
xor edi, edi
mov esi, dword [ebp]
add esi, edi
cmp byte [esi + 0xc], 0
jne 0x10021b67
mov eax, dword [ebp + 0xc]
lea ecx, [esp + 0x24]
mov edx, dword [esi]
mov edx, dword [eax + edx*4]
mov edx, dword [edx + 0xc]
call fcn.10020941
mov ecx, eax
mov dword [esi + 8], ecx
test ecx, ecx
js 0x10021b67
mov eax, dword [ebp]
add ecx, ecx
mov ecx, dword [eax + ecx*8]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + ecx*4]
xor ecx, ecx
inc ecx
cmp word [eax + 0x10], cx
je 0x10021b67
or dword [esi + 8], 0xffffffff
mov byte [ebp + 0x4c], cl
inc ebx
add edi, 0x10
cmp ebx, dword [ebp + 4]
jb 0x10021b21
mov ebx, dword [esp + 0x14]
push ebx
xor esi, esi
call fcn.1000366d
pop ecx
push 0
call fcn.1000366d
push dword [esp + 0x70]
call fcn.1000366d
pop ecx
pop ecx
push dword [esp + 0x30]
call fcn.1000366d
push dword [esp + 0x28]
call fcn.1000366d
pop ecx
pop ecx
mov ecx, dword [esp + 0x98]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
leave
ret 0x10
mov esi, ebx
jmp 0x10021b7d