Function at 0x1013d9d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x5c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, 0xffffffff
mov esi, dword [0x102c935c]
cmp eax, 0
sete bl
cmp ecx, 0
sete bh
add esi, 0x250f
mov dword [0x102c9360], esi
mov dword [0x102c935c], 0x241d
and bh, bl
test bh, 1
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
jne 0x1013dc3a
jmp 0x1013da66
mov eax, dword [ebp - 0x10]
cmp eax, 0
setne cl
mov edx, dword [ebp - 0x1c]
mov byte [ebp - 0x1d], cl
mov dword [ebp - 0x24], edx
jmp 0x1013daec
mov al, byte [ebp - 0x25]
mov ecx, dword [ebp - 0x2c]
mov dword [0x102c9360], 0xb0b
test al, 1
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], edx
jne 0x1013dc07
jmp 0x1013dc18
mov dword [0x102c935c], 0x3fe
mov dword [0x102c9360], 0xfa6
mov ecx, dword fs:[0x18]
xor eax, eax
mov edx, dword [0x102c935c]
mov esi, edx
add esi, 0x2da
mov dword [0x102c9360], esi
mov esi, edx
add esi, 0xffffdc81
mov dword [0x102c935c], esi
add edx, 0xffffc280
mov dword [0x102c9360], edx
mov ecx, dword [ecx + 0x30]
mov dword [0x102c9360], 0x1ae7
mov ecx, dword [ecx + 0xc]
mov edx, ecx
add edx, 0x14
mov ecx, dword [ecx + 0x14]
mov dword [0x102c935c], 0x134a
cmp ecx, edx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x18], eax
je 0x1013dc3a
jmp 0x1013da27
mov eax, dword [ebp - 0x24]
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 - 0x1d]
and bh, bl
test bh, 1
mov edi, eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x4c], edi
jne 0x1013db22
jmp 0x1013db3c
mov eax, dword [ebp - 0x4c]
add eax, 0xfffffff8
mov dword [0x102c935c], 0xf84
mov dword [ebp - 0x18], eax
jmp 0x1013dc3a
mov eax, dword [ebp - 0x44]
mov cx, word [eax]
shr cx, 1
movzx edx, cx
cmp cx, 0
mov dword [ebp - 0x50], edx
je 0x1013dc18
xor eax, eax
mov ecx, 0xfffff7a0
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x58], ecx
jmp 0x1013db66
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x54]
mov edx, dword [ebp - 0x48]
mov si, word [edx + ecx*2]
mov di, si
add di, 0xffbf
mov bx, si
add bx, 0x20
cmp di, 0x1a
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x60], ecx
mov word [ebp - 0x62], si
mov word [ebp - 0x64], bx
jb 0x1013dba0
mov ax, word [ebp - 0x62]
mov word [ebp - 0x64], ax
mov ax, word [ebp - 0x64]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x60]
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 esi, dword [ebp - 0x5c]
mov al, bl
mov byte [ebp - 0x65], bl
mov dword [ebp - 0x2c], esi
mov byte [ebp - 0x25], al
jne 0x1013da40
mov eax, 0xfffff8c9
mov ecx, 0x1a64
mov edx, dword [ebp - 0x60]
add edx, 1
mov esi, dword [ebp - 0x50]
cmp edx, esi
mov bl, byte [ebp - 0x65]
mov dword [ebp - 0x54], edx
mov byte [ebp - 0x25], bl
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x58], eax
jb 0x1013db66
jmp 0x1013da40
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
mov dword [0x102c935c], ecx
mov dword [ebp - 0x18], eax
jmp 0x1013dc3a
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x3c]
cmp ecx, edx
mov dword [ebp - 0x24], ecx
jne 0x1013daec
xor eax, eax
mov dword [0x102c935c], 0x1ab0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
add esp, 0x5c
pop esi
pop edi
pop ebx
pop ebp
ret