Function at 0x100feed8
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x7c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
cmp ecx, 0
sete dl
mov dword [0x101f6324], 0x6e2
mov dword [0x101f6328], 0x61f
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov byte [ebp - 0x15], dl
mov eax, 0xffffffff
mov ecx, dword [ebp - 0x10]
cmp ecx, 0
sete dl
mov dh, byte [ebp - 0x15]
and dh, dl
test dh, 1
mov dword [ebp - 0x1c], eax
jne 0x100ff168
mov dword [0x101f6328], 0x20b5
mov dword [0x101f6324], 0x198c
mov ecx, dword fs:[0x18]
mov dword [0x101f6324], 0x263a
mov eax, dword [ecx + 0x30]
mov dword [ebp - 0x20], eax
xor eax, eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0xc]
mov esi, edx
add esi, 0x14
mov dword [0x101f6324], 0x5c2
mov edx, dword [edx + 0x14]
mov dword [0x101f6328], 0xffffe77d
cmp edx, esi
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x1c], eax
je 0x100ff168
mov eax, dword [ebp - 0x10]
cmp eax, 0
setne cl
mov byte [ebp - 0x29], cl
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x30], eax
jmp 0x100fefa8
mov eax, dword [ebp - 0x30]
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 - 0x29]
and bh, bl
test bh, 1
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x40], esi
jne 0x100fefd9
jmp 0x100feffd
mov dword [0x101f6324], 0x13c8
mov dword [0x101f6328], 0xa39
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff8
mov dword [ebp - 0x1c], eax
jmp 0x100ff168
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x44], eax
mov eax, 0x1b1
mov ecx, 0xa39
xor edx, edx
mov esi, dword [ebp - 0x44]
mov di, word [esi]
shr di, 1
movzx ebx, di
cmp di, 0
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x54], ecx
je 0x100ff126
mov eax, dword [ebp - 0x48]
mov ecx, 0x381
mov edx, 0x1bd0
mov esi, dword [ebp - 0x3c]
mov di, word [esi + eax*2]
mov bx, di
add bx, 0xffbf
mov si, di
add si, 0x20
cmp bx, 0x1a
mov dword [ebp - 0x58], eax
mov word [ebp - 0x5a], bx
mov dword [ebp - 0x60], edx
mov word [ebp - 0x62], si
mov word [ebp - 0x64], di
mov dword [ebp - 0x68], ecx
jb 0x100ff079
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x68]
mov cx, word [ebp - 0x5a]
cmp cx, 0x1a
mov dx, word [ebp - 0x62]
mov dword [ebp - 0x6c], eax
mov word [ebp - 0x6e], dx
jb 0x100ff09a
mov ax, word [ebp - 0x64]
mov word [ebp - 0x6e], ax
mov ax, word [ebp - 0x6e]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x58]
cmp word [ecx + edx*2], ax
sete bl
mov esi, dword [ebp - 0x6c]
add esi, 0x1b2a
cmp ax, 0
sete bh
mov al, bl
xor al, 1
or bh, al
test bh, 1
mov edi, dword [ebp - 0x6c]
mov dword [ebp - 0x74], esi
mov byte [ebp - 0x75], bl
mov dword [ebp - 0x7c], edi
jne 0x100ff0f1
mov eax, 0x1b0e
mov ecx, dword [ebp - 0x58]
add ecx, 1
mov edx, dword [ebp - 0x50]
cmp ecx, edx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x7c], eax
jb 0x100ff033
mov eax, dword [ebp - 0x7c]
mov cl, byte [ebp - 0x75]
test cl, 1
mov edx, eax
mov esi, dword [ebp - 0x74]
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x54], esi
jne 0x100ff10c
jmp 0x100ff126
mov eax, dword [ebp - 0x80]
mov dword [0x101f6324], eax
mov dword [0x101f6328], 0x1fbb
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x1c], eax
jmp 0x100ff168
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x34]
mov esi, dword [edx]
mov edi, dword [ebp - 0x28]
cmp esi, edi
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x88], ecx
mov dword [ebp - 0x30], esi
jne 0x100fefa8
xor eax, eax
mov ecx, dword [ebp - 0x88]
mov dword [0x101f6324], ecx
mov edx, dword [ebp - 0x84]
mov dword [0x101f6328], edx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
add esp, 0x7c
pop esi
pop edi
pop ebx
pop ebp
ret