Function at 0x10008000
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
cmp eax, 0
sete bl
mov dword [0x101906f8], 0x148f
cmp ecx, 0
sete bh
and bh, bl
test bh, 1
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
jne 0x10008258
jmp 0x10008069
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff8
mov dword [0x101906f8], 0x22d4
mov dword [0x101906fc], 0x1d96
mov dword [ebp - 0x18], eax
jmp 0x10008258
mov dword [0x101906f8], 0xfffff60d
mov eax, dword [0x101906fc]
add eax, 0xffffe5e5
mov dword [0x101906fc], eax
mov ecx, dword fs:[0x18]
xor eax, eax
mov dword [0x101906fc], 0xad6
mov ecx, dword [ecx + 0x30]
mov ecx, dword [ecx + 0xc]
mov edx, ecx
add edx, 0x14
mov ecx, dword [ecx + 0x14]
mov dword [0x101906f8], 0x21aa
cmp ecx, edx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x18], eax
je 0x10008258
jmp 0x10008174
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
xor edx, edx
mov dword [0x101906f8], eax
mov dword [0x101906fc], ecx
mov dword [ebp - 0x18], edx
jmp 0x10008258
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
mov edx, eax
add edx, 1
add ecx, 0xffffdaf9
mov esi, dword [ebp - 0x38]
mov di, word [esi + eax*2]
mov bx, di
add bx, 0xffbf
mov si, di
add si, 0x20
cmp bx, 0x1a
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x44], ecx
mov word [ebp - 0x46], di
mov word [ebp - 0x48], si
jb 0x1000812c
mov ax, word [ebp - 0x46]
mov word [ebp - 0x48], ax
mov ax, word [ebp - 0x48]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x3c]
cmp word [ecx + edx*2], ax
sete bl
cmp ax, 0
setne bh
mov al, bl
and al, bh
mov esi, dword [ebp - 0x40]
mov edi, dword [ebp - 0x4c]
cmp esi, edi
setb bh
and al, bh
test al, 1
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x30], esi
mov byte [ebp - 0x51], bl
jne 0x100080e1
jmp 0x1000821c
mov eax, dword [ebp - 0x10]
cmp eax, 0
setne cl
mov edx, dword [ebp - 0x20]
mov byte [ebp - 0x52], cl
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x58]
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 - 0x52]
and bh, bl
test bh, 1
mov edi, eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x1c], edi
jne 0x10008045
jmp 0x100081e3
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x6c]
mov edx, dword [ebp - 0x5c]
mov esi, dword [edx]
mov edi, dword [ebp - 0x24]
cmp esi, edi
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x58], esi
je 0x100080c6
jmp 0x10008188
mov eax, 0x1d96
mov ecx, 0x22d4
mov edx, dword [ebp - 0x60]
mov si, word [edx]
shr si, 1
movzx edi, si
cmp si, 0
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], ecx
je 0x100081c2
mov eax, 0x22d4
xor ecx, ecx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], ecx
jmp 0x100080e1
mov eax, dword [ebp - 0x50]
mov cl, byte [ebp - 0x51]
mov edx, 0x125d
test cl, 1
mov esi, eax
mov edi, dword [ebp - 0x64]
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x6c], edx
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x74], edi
jne 0x1000823f
jmp 0x100081c2
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x70]
mov dword [0x101906f8], ecx
mov dword [0x101906fc], 0x1547
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
add esp, 0x68
pop esi
pop edi
pop ebx
pop ebp
ret