Function at 0x10006101
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x68
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, 0xffffffff
mov dword [0x10117f1c], 0x2072
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 0x1000636a
mov dword [0x10117f20], 0xfffff1d1
mov dword [0x10117f1c], 0xcbc
mov ecx, dword fs:[0x18]
mov dword [0x10117f20], 0x1b8f
mov dword [0x10117f1c], 0x2068
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0xc]
mov ecx, eax
add ecx, 0x14
mov dword [0x10117f20], 0x1bb4
mov eax, dword [eax + 0x14]
mov dword [0x10117f1c], 0x14fc
cmp eax, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], eax
je 0x1000635b
mov eax, dword [ebp - 0x10]
cmp eax, 0
setne cl
mov byte [ebp - 0x21], cl
mov eax, 0x14fc
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
jmp 0x100061c4
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
mov edx, eax
add edx, 0x24
mov esi, dword [eax + 0x28]
mov edi, dword [eax + 0x10]
mov ebx, dword [ebp - 0x10]
cmp edi, ebx
sete bl
mov bh, byte [ebp - 0x21]
and bh, bl
test bh, 1
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x40], edi
jne 0x100061fb
jmp 0x10006228
mov eax, dword [ebp - 0x34]
add eax, 0xffffff12
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff8
mov edx, dword [ebp - 0x34]
add edx, 0x1aa3
mov dword [0x10117f20], edx
mov dword [0x10117f1c], eax
mov dword [ebp - 0x18], ecx
jmp 0x1000636a
mov eax, 0xfffffc3a
mov ecx, 0x1936
xor edx, edx
mov esi, dword [ebp - 0x38]
mov di, word [esi]
shr di, 1
movzx ebx, di
cmp di, 0
mov esi, ecx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], ecx
je 0x10006321
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x44]
mov edx, ecx
add edx, 1
mov esi, eax
add esi, 0xffffe35d
mov edi, dword [ebp - 0x3c]
mov bx, word [edi + ecx*2]
mov di, bx
add di, 0xffbf
mov dword [ebp - 0x58], esi
mov si, bx
add si, 0x20
cmp di, 0x1a
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x64], edx
mov word [ebp - 0x66], bx
mov word [ebp - 0x68], si
jb 0x100062ad
mov ax, word [ebp - 0x66]
mov word [ebp - 0x68], ax
mov ax, word [ebp - 0x68]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x60]
cmp word [ecx + edx*2], ax
sete bl
cmp ax, 0
setne bh
mov al, bl
and al, bh
mov esi, dword [ebp - 0x64]
mov edi, dword [ebp - 0x4c]
cmp esi, edi
setb bh
and al, bh
test al, 1
mov eax, dword [ebp - 0x58]
mov byte [ebp - 0x69], bl
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x50], eax
jne 0x1000625d
mov eax, 0x5cb
mov cl, byte [ebp - 0x69]
test cl, 1
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x54], edx
jne 0x10006302
jmp 0x10006321
mov eax, dword [ebp - 0x58]
mov dword [0x10117f1c], eax
mov ecx, dword [ebp - 0x5c]
add ecx, 0xfffffa18
mov dword [0x10117f20], ecx
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x18], ecx
jmp 0x1000636a
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x48]
add eax, 0xfffffb07
mov edx, dword [ebp - 0x30]
mov esi, dword [edx]
mov edi, dword [ebp - 0x1c]
cmp esi, edi
mov ebx, eax
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], esi
jne 0x100061c4
mov eax, dword [ebp - 0x70]
mov dword [0x10117f20], eax
mov ecx, dword [ebp - 0x74]
mov dword [0x10117f1c], ecx
xor eax, eax
mov dword [0x10117f1c], 0x2401
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
add esp, 0x68
pop esi
pop edi
pop ebx
pop ebp
ret