Function at 0x1018003a
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x6c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, 0xffffffff
mov esi, dword [0x101bfb3c]
add esi, 0xfffff3cb
mov dword [0x101bfb3c], esi
mov dword [0x101bfb40], 0x12fb
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 0x1018008d
jmp 0x10180098
mov eax, dword [ebp - 0x18]
add esp, 0x6c
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [0x101bfb3c], 0x17af
mov dword [0x101bfb40], 0x2127
mov ecx, dword fs:[0x18]
mov dword [ebp - 0x1c], ecx
xor eax, eax
mov ecx, dword [0x101bfb3c]
add ecx, 0xfffff012
mov dword [0x101bfb3c], ecx
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x30]
mov edx, dword [edx + 0xc]
mov esi, edx
add esi, 0x14
mov dword [0x101bfb3c], 0xfffffd9c
mov edx, dword [edx + 0x14]
mov dword [0x101bfb40], 0xffffeee4
cmp edx, esi
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x18], eax
je 0x1018008d
mov eax, dword [ebp - 0x10]
cmp eax, 0
setne cl
mov edx, dword [ebp - 0x20]
mov byte [ebp - 0x25], cl
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
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 - 0x25]
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
jne 0x10180144
jmp 0x10180168
mov dword [0x101bfb3c], 0x1548
mov dword [0x101bfb40], 0xfffff2f6
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff8
mov dword [ebp - 0x18], eax
jmp 0x1018008d
mov eax, dword [ebp - 0x34]
mov cx, word [eax]
shr cx, 1
movzx edx, cx
cmp cx, 0
sete bl
mov dword [ebp - 0x40], edx
mov byte [ebp - 0x41], bl
mov eax, 0x2309
mov ecx, 0xfffff2f6
xor edx, edx
mov bl, byte [ebp - 0x41]
test bl, 1
mov esi, ecx
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x54], ecx
jne 0x10180274
jmp 0x101801ab
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x38]
mov si, word [edx + ecx*2]
mov di, si
add di, 0xffbf
mov bx, si
add bx, 0x20
cmp di, 0x1a
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x5c], ecx
mov word [ebp - 0x5e], si
mov word [ebp - 0x60], bx
jb 0x101801e5
mov ax, word [ebp - 0x5e]
mov word [ebp - 0x60], ax
mov ax, word [ebp - 0x60]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x5c]
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 - 0x58]
mov byte [ebp - 0x61], bl
mov dword [ebp - 0x68], esi
jne 0x1018023a
mov eax, dword [ebp - 0x5c]
add eax, 1
mov dword [ebp - 0x6c], eax
mov eax, 0x21ad
mov ecx, dword [ebp - 0x6c]
mov edx, dword [ebp - 0x40]
cmp ecx, edx
mov esi, eax
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x68], eax
jb 0x101801ab
mov eax, dword [ebp - 0x68]
mov ecx, 0x1cd6
mov dl, byte [ebp - 0x61]
test dl, 1
mov esi, eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x54], esi
jne 0x10180257
jmp 0x10180274
mov eax, dword [ebp - 0x70]
mov dword [0x101bfb40], eax
mov dword [0x101bfb3c], 0x18eb
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x18], ecx
jmp 0x1018008d
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x30]
mov esi, dword [edx]
mov edi, dword [ebp - 0x24]
cmp esi, edi
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x2c], esi
jne 0x10180113
xor eax, eax
mov ecx, dword [ebp - 0x78]
mov dword [0x101bfb3c], ecx
mov edx, dword [ebp - 0x74]
mov dword [0x101bfb40], edx
mov dword [ebp - 0x18], eax
jmp 0x1018008d