Function at 0x10013f90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x74
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, 0xffffffff
mov esi, dword [0x102f6158]
add esi, 0x1948
mov dword [0x102f6158], esi
cmp ecx, 0
sete bl
cmp eax, 0
sete bh
and bl, bh
test bl, 1
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
jne 0x10014223
mov eax, dword [0x102f6154]
add eax, 0xfffff019
mov dword [0x102f6158], eax
mov dword [0x102f6154], 0x115
mov ecx, dword fs:[0x18]
mov dword [0x102f6158], 0x2678
mov dword [0x102f6154], 0x1405
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0xc]
add eax, 0x14
mov dword [0x102f6158], 0xe68
mov dword [ebp - 0x1c], eax
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx]
mov dword [0x102f6154], 0x3cf
cmp edx, ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x18], eax
je 0x10014223
jmp 0x10014101
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff8
mov dword [0x102f6154], 0x206f
mov dword [0x102f6158], 0x1cf7
mov dword [ebp - 0x18], eax
jmp 0x10014223
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x30]
mov dword [0x102f6154], eax
mov dword [0x102f6158], edx
mov dword [ebp - 0x18], ecx
jmp 0x10014223
mov eax, dword [ebp - 0x34]
mov ecx, eax
add ecx, 0x24
mov edx, dword [eax + 0x28]
mov esi, dword [eax + 0x10]
mov edi, dword [ebp - 0x10]
cmp esi, edi
sete bl
mov bh, byte [ebp - 0x35]
and bh, bl
test bh, 1
mov edi, eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x24], edi
jne 0x1001404b
mov eax, dword [ebp - 0x40]
mov cx, word [eax]
shr cx, 1
movzx edx, cx
mov word [ebp - 0x4a], cx
mov dword [ebp - 0x50], edx
mov eax, 0x1cf7
mov cx, word [ebp - 0x4a]
cmp cx, 0
mov dword [ebp - 0x54], eax
je 0x100141f3
mov eax, 0x1cf7
mov ecx, 0x6c0
xor edx, edx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x60], edx
jmp 0x1001411a
mov eax, dword [ebp - 0x10]
cmp eax, 0
setne cl
mov edx, dword [ebp - 0x20]
mov byte [ebp - 0x35], cl
mov dword [ebp - 0x34], edx
jmp 0x1001408b
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x58]
mov edx, dword [ebp - 0x5c]
mov esi, dword [ebp - 0x44]
mov di, word [esi + eax*2]
add ecx, 0xffffff69
mov bx, di
add bx, 0xffbf
mov si, di
add si, 0x20
cmp bx, 0x1a
mov dword [ebp - 0x64], eax
mov word [ebp - 0x66], di
mov dword [ebp - 0x6c], edx
mov dword [ebp - 0x70], ecx
mov word [ebp - 0x72], si
jb 0x10014160
mov ax, word [ebp - 0x66]
mov word [ebp - 0x72], ax
mov ax, word [ebp - 0x72]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x64]
cmp word [ecx + edx*2], ax
sete bl
cmp ax, 0
sete bh
mov al, bl
xor al, 1
or bh, al
test bh, 1
mov al, bl
mov esi, dword [ebp - 0x70]
mov edi, dword [ebp - 0x6c]
mov byte [ebp - 0x73], bl
mov byte [ebp - 0x74], al
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x7c], edi
jne 0x100141d0
mov eax, dword [ebp - 0x6c]
add eax, 0xffffdfc1
mov ecx, dword [ebp - 0x64]
add ecx, 1
mov edx, dword [ebp - 0x50]
cmp ecx, edx
mov esi, eax
mov edi, dword [ebp - 0x70]
mov bl, byte [ebp - 0x73]
mov edx, dword [ebp - 0x70]
mov byte [ebp - 0x74], bl
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x7c], eax
jb 0x1001411a
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x78]
mov dl, byte [ebp - 0x74]
test dl, 1
mov esi, eax
mov edi, dword [ebp - 0x48]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x54], eax
jne 0x1001406f
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx]
mov esi, dword [ebp - 0x1c]
cmp edx, esi
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x80], eax
jne 0x1001408b
mov eax, dword [ebp - 0x80]
xor ecx, ecx
mov dword [0x102f6154], 0x16b1
mov dword [0x102f6158], eax
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
add esp, 0x74
pop esi
pop edi
pop ebx
pop ebp
ret