Function at 0x10012f8e
Capabilities:
Access peb ldr_data
Check os version
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x10059400]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x44
mov dword [ebp - 0x84], eax
lea eax, [ebp - 0x4c]
push 0
push eax
mov dword [ebp - 0x68], ecx
call fcn.10022cd0
mov eax, dword fs:[0x30]
add esp, 0xc
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x20], eax
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0xc]
mov edi, dword [ecx + 0x18]
test edi, edi
je 0x1001300d
mov esi, dword [ecx + 0x30]
movzx eax, word [esi]
cmp eax, 0x4e
je 0x10012fe9
cmp eax, 0x6e
jne 0x10013005
movzx eax, word [esi + 2]
cmp eax, 0x54
je 0x10012ff7
cmp eax, 0x74
jne 0x10013005
mov ax, word [esi + 6]
cmp ax, word [esi + 8]
cmove edx, edi
mov dword [ebp - 0x4c], edx
test edx, edx
jne 0x10013018
mov ecx, dword [ecx]
jmp 0x10012fd2
test edx, edx
jne 0x10013018
xor eax, eax
jmp 0x10013596
mov eax, dword [edx + 0x3c]
mov eax, dword [eax + edx + 0x78]
add eax, edx
mov dword [ebp - 0x7c], eax
mov ecx, dword [eax + 0x20]
mov esi, dword [eax + 0x24]
add ecx, edx
mov eax, dword [ebp - 0x34]
add esi, edx
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x88], 0
mov eax, dword [ecx]
mov dword [ebp - 0x70], ecx
mov ebx, dword [eax + edx + 8]
mov ecx, dword [eax + edx + 4]
mov edi, dword [eax + edx]
mov dword [ebp - 0x54], ebx
mov ebx, dword [eax + edx + 0xc]
mov dword [ebp - 0x58], ebx
mov ebx, dword [eax + edx + 0x10]
mov eax, dword [eax + edx + 0x14]
mov dword [ebp - 0x6c], ebx
mov ebx, dword [ebp - 0x7c]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x5c], ecx
jne 0x100130e1
cmp edi, 0x6c41775a
jne 0x100130e1
cmp ecx, 0x61636f6c
jne 0x100130e1
cmp eax, 0x69566574
jne 0x100130e1
cmp dword [ebp - 0x58], 0x61757472
jne 0x100130e1
cmp dword [ebp - 0x6c], 0x6d654d6c
jne 0x100130e1
cmp dword [ebp - 0x74], 0x79726f
jne 0x100130e1
movzx ecx, word [esi]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov ecx, dword [ebp - 0x5c]
mov eax, dword [eax + edx]
add eax, edx
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x54]
cmp dword [ebp - 0x78], 0
jne 0x10013124
cmp edi, 0x7246775a
jne 0x10013124
cmp ecx, 0x69566565
jne 0x10013124
cmp eax, 0x61757472
jne 0x10013124
cmp dword [ebp - 0x58], 0x6d654d6c
jne 0x10013124
cmp dword [ebp - 0x6c], 0x79726f
jne 0x10013124
movzx ecx, word [esi]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edx]
add eax, edx
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x8c], 0
mov eax, dword [ebp - 0x5c]
jne 0x10013159
cmp edi, 0x4c72644c
jne 0x10013159
cmp eax, 0x4464616f
jne 0x10013159
movzx ecx, word [esi]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edx]
add eax, edx
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x5c]
cmp dword [ebp - 0x80], 0
mov ecx, dword [ebp - 0x54]
jne 0x100131a2
cmp edi, 0x4772644c
jne 0x100131a2
cmp eax, 0x72507465
jne 0x100131a2
cmp ecx, 0x6465636f
jne 0x100131a2
cmp dword [ebp - 0x58], 0x41657275
jne 0x100131a2
cmp dword [ebp - 0x6c], 0x65726464
jne 0x100131a2
movzx ecx, word [esi]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov ecx, dword [ebp - 0x54]
mov eax, dword [eax + edx]
add eax, edx
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x60], 0
mov eax, dword [ebp - 0x5c]
jne 0x100131f6
cmp edi, 0x416c7452
jne 0x100131f6
cmp eax, 0x5369736e
jne 0x100131f6
cmp ecx, 0x6e697274
mov ecx, dword [ebp - 0x58]
jne 0x100131f9
cmp ecx, 0x556f5467
jne 0x100131f9
cmp dword [ebp - 0x6c], 0x6f63696e
jne 0x100131f9
cmp dword [ebp - 0x74], 0x74536564
jne 0x100131f9
movzx ecx, word [esi]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edx]
add eax, edx
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x58]
cmp dword [ebp - 0x64], 0
jne 0x1001323e
cmp edi, 0x466c7452
jne 0x1001323e
cmp eax, 0x55656572
jne 0x1001323e
cmp dword [ebp - 0x54], 0x6f63696e
jne 0x1001323e
cmp ecx, 0x74536564
jne 0x1001323e
cmp dword [ebp - 0x6c], 0x676e6972
jne 0x1001323e
movzx ecx, word [esi]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edx]
add eax, edx
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x34], eax
jmp 0x10013241
mov eax, dword [ebp - 0x64]
cmp dword [ebp - 0x8c], 0
je 0x1001326a
mov ecx, dword [ebp - 0x88]
test ecx, ecx
je 0x1001326a
cmp dword [ebp - 0x78], 0
je 0x1001326a
cmp dword [ebp - 0x80], 0
je 0x1001326a
test eax, eax
je 0x1001326a
cmp dword [ebp - 0x60], 0
jne 0x10013278
mov ecx, dword [ebp - 0x70]
add ecx, 4
add esi, 2
jmp 0x10013058
mov edx, dword [ebp - 0x84]
mov eax, 0x5a4d
mov ebx, dword [ebp - 0x68]
mov dword [ebp - 0x1c], edx
cmp word [edx], ax
jne 0x10013011
mov eax, dword [edx + 0x3c]
add eax, edx
mov dword [ebp - 0x18], eax
cmp dword [eax], 0x4550
jne 0x10013011
mov eax, dword [eax + 0x50]
push 0x40
push 0x1000
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0xffffffffffffffff
call ecx
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x10013011
mov eax, dword [ebp - 0x18]
xor edx, edx
cmp dword [eax + 0x54], edx
jbe 0x100132eb
mov eax, dword [ebp - 0x1c]
mov al, byte [edx + eax]
mov byte [edx + ecx], al
inc edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
cmp edx, dword [eax + 0x54]
jb 0x100132d6
mov eax, dword [ebp - 0x1c]
xor esi, esi
mov eax, dword [eax + 0x3c]
add eax, ecx
mov dword [ebp - 0x10], eax
mov dword [eax + 0x34], ecx
xor ecx, ecx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x60], ecx
movzx edx, word [eax + 0x14]
cmp si, word [eax + 6]
jae 0x1001337a
mov ebx, dword [ebp - 0x84]
lea esi, [eax + 0x28]
add esi, edx
cmp dword [esi], 0
jne 0x10013344
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x38]
test eax, eax
je 0x10013365
xor edx, edx
test eax, eax
je 0x10013365
mov ecx, dword [esi - 4]
mov eax, dword [ebp - 0x14]
add ecx, edx
inc edx
mov byte [ecx + eax], 0
mov eax, dword [ebp - 0x18]
cmp edx, dword [eax + 0x38]
jb 0x1001332d
jmp 0x10013362
xor edi, edi
cmp dword [esi], edi
jbe 0x10013365
mov eax, dword [esi + 4]
mov edx, dword [esi - 4]
add eax, ebx
add edx, edi
mov cl, byte [eax + edi]
inc edi
mov eax, dword [ebp - 0x14]
mov byte [edx + eax], cl
cmp edi, dword [esi]
jb 0x1001334a
mov ecx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x10]
inc ecx
add esi, 0x28
mov dword [ebp - 0x60], ecx
movzx eax, word [eax + 6]
cmp ecx, eax
jl 0x10013318
mov ebx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov esi, ecx
sub esi, dword [eax + 0x34]
mov dword [ebp - 0xc], esi
je 0x10013415
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0xa4], 0
jbe 0x10013415
mov edx, dword [edx + 0xa0]
add edx, ecx
mov dword [ebp - 0x74], edx
mov eax, dword [edx]
test eax, eax
je 0x10013415
add eax, ecx
lea ebx, [edx + 8]
mov dword [ebp - 0x60], eax
xor edi, edi
lea eax, [edx + 4]
mov dword [ebp - 0x70], eax
mov eax, dword [eax]
sub eax, 8
test eax, 0xfffffffe
jbe 0x10013404
mov edx, dword [ebp - 0x70]
movzx ecx, word [ebx]
mov eax, ecx
mov dword [ebp - 0x7c], 0x3000
and eax, 0xf000
cmp ax, word [ebp - 0x7c]
jne 0x100133ef
and ecx, 0xfff
add ecx, dword [ebp - 0x60]
add dword [ecx], esi
mov esi, dword [ebp - 0xc]
mov eax, dword [edx]
inc edi
sub eax, 8
add ebx, 2
shr eax, 1
cmp edi, eax
jb 0x100133ca
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x74]
mov eax, dword [ebp - 0x70]
add edx, dword [eax]
mov dword [ebp - 0x74], edx
mov eax, dword [edx]
test eax, eax
jne 0x100133ab
mov ebx, dword [ebp - 0x68]
mov esi, dword [ebp - 0x10]
cmp dword [esi + 0x84], 0
jbe 0x10013505
mov esi, dword [esi + 0x80]
add esi, ecx
je 0x10013505
mov eax, dword [esi + 0xc]
test eax, eax
je 0x10013502
add ecx, eax
xor eax, eax
mov dword [ebp - 0x24], ecx
cmp byte [ecx], al
je 0x10013450
inc eax
cmp byte [eax + ecx], 0
jne 0x10013449
mov word [ebp - 0x28], ax
inc eax
mov word [ebp - 0x26], ax
lea eax, [ebp - 0x28]
push 1
push eax
lea eax, [ebp - 0x30]
push eax
call dword [ebp - 0x38]
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x30]
push eax
push 0
push 0
call dword [ebp - 0x44]
lea eax, [ebp - 0x30]
push eax
call dword [ebp - 0x34]
mov edx, dword [ebp - 0x50]
test edx, edx
je 0x10013011
mov eax, dword [esi]
mov ecx, dword [ebp - 0x14]
test eax, eax
je 0x1001349a
mov edi, dword [esi + 0x10]
lea ebx, [ecx + eax]
add edi, ecx
jmp 0x100134a1
mov ebx, dword [esi + 0x10]
add ebx, ecx
mov edi, ebx
mov eax, dword [ebx]
test eax, eax
je 0x100134f9
test eax, eax
jns 0x100134b4
movzx eax, word [ebx]
push edi
push eax
push 0
jmp 0x100134d9
add ecx, 2
add ecx, eax
xor eax, eax
mov dword [ebp - 0x24], ecx
cmp byte [ecx], al
je 0x100134c9
inc eax
cmp byte [eax + ecx], 0
jne 0x100134c2
mov word [ebp - 0x28], ax
inc eax
push edi
mov word [ebp - 0x26], ax
lea eax, [ebp - 0x28]
push 0
push eax
push edx
call dword [ebp - 0x48]
cmp dword [edi], 0
je 0x100134f6
add ebx, 4
add edi, 4
mov eax, dword [ebx]
test eax, eax
je 0x100134f6
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x50]
jmp 0x100134a7
mov ecx, dword [ebp - 0x14]
add esi, 0x14
jne 0x10013433
mov ebx, dword [ebp - 0x68]
cmp dword [ebx + 0x10], 6
mov eax, dword [ebp - 0x10]
mov dword [ebx + 4], ecx
mov dword [ebx + 8], eax
jne 0x10013538
cmp dword [ebx + 0x14], 1
jne 0x1001352c
mov edx, dword [ebx + 0x20]
test edx, edx
je 0x10013556
push dword [eax + 0x50]
push ecx
push dword [ebx + 0xc]
call edx
jmp 0x10013553
cmp dword [ebx + 0x10], 6
jne 0x10013538
cmp dword [ebx + 0x14], 3
je 0x10013544
cmp dword [ebx + 0x10], 0xa
jne 0x10013556
cmp dword [ebx + 0x14], 0
jne 0x10013556
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x10013556
mov edx, dword [ebx + 8]
mov edx, dword [edx + 0x50]
call eax
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x28]
add edx, ecx
xor ebx, ebx
mov eax, ebx
mov byte [eax + ecx], bl
inc eax
cmp eax, 4
jae 0x10013570
mov ecx, dword [ebp - 0x14]
jmp 0x10013562
mov ecx, ebx
mov eax, dword [ebp - 0x10]
mov byte [ecx + eax], bl
inc ecx
cmp ecx, 4
jb 0x10013572
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x28], ebx
je 0x10013593
push dword [ebp - 0x84]
push 1
push dword [ebp - 0x14]
call edx
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10021e50
mov esp, ebp
pop ebp
ret 4