Function at 0x1017eba4
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]
mov edx, 0xffffffff
cmp eax, 0
sete bl
mov dword [0x1018860c], 0x23d6
cmp ecx, 0
sete bh
mov esi, dword [0x10188610]
mov edi, esi
add edi, 0xfffffb21
mov dword [0x10188610], edi
and bh, bl
test bh, 1
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], edx
jne 0x1017ec0b
jmp 0x1017ec35
mov eax, dword [ebp - 0x20]
mov dword [0x1018860c], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
jmp 0x1017ec0b
mov eax, dword [ebp - 0x1c]
add esp, 0x7c
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x24]
mov dword [0x1018860c], eax
mov ecx, dword [ebp - 0x28]
add ecx, 0xffffec0d
mov dword [0x10188610], ecx
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], ecx
jmp 0x1017ec0b
mov eax, dword [ebp - 0x18]
add eax, 0xfffff9c6
mov dword [0x1018860c], 0x170c
mov dword [0x10188610], eax
mov ecx, dword fs:[0x18]
mov dword [0x1018860c], 0xcf7
mov eax, dword [ecx + 0x30]
mov dword [0x10188610], 0x4c0
mov eax, dword [eax + 0xc]
mov ecx, eax
add ecx, 0x14
mov eax, dword [eax + 0x14]
mov dword [0x1018860c], 0xcc9
cmp eax, ecx
sete dl
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x35], dl
xor eax, eax
mov cl, byte [ebp - 0x35]
test cl, 1
mov dword [ebp - 0x1c], eax
jne 0x1017ec0b
jmp 0x1017eca3
mov eax, dword [ebp - 0x10]
cmp eax, 0
setne cl
mov byte [ebp - 0x36], cl
mov eax, 0x4c0
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], ecx
jmp 0x1017ecc1
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x3c]
mov edx, eax
add edx, 0x24
mov esi, dword [eax + 0x28]
mov edi, ecx
add edi, 0x63f
mov ebx, dword [eax + 0x10]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x10]
cmp ebx, eax
sete al
mov ah, byte [ebp - 0x36]
and ah, al
test ah, 1
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], edi
jne 0x1017ed3b
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x58], eax
xor eax, eax
mov ecx, dword [ebp - 0x58]
mov dx, word [ecx]
shr dx, 1
movzx esi, dx
cmp dx, 0
mov edi, dword [ebp - 0x54]
mov ebx, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x6c], ebx
je 0x1017ee36
jmp 0x1017ed54
mov eax, dword [ebp - 0x54]
mov dword [0x1018860c], eax
mov ecx, dword [ebp - 0x44]
add ecx, 0xfffffff8
mov dword [ebp - 0x1c], ecx
jmp 0x1017ec0b
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x5c]
mov edx, 0x3a0
mov esi, dword [ebp - 0x50]
mov di, word [esi + eax*2]
mov ebx, ecx
add ebx, 0xffffdb51
mov si, di
add si, 0xffbf
mov word [ebp - 0x6e], si
mov si, di
add si, 0x20
mov word [ebp - 0x70], si
mov si, word [ebp - 0x6e]
cmp si, 0x1a
mov si, word [ebp - 0x70]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x78], edx
mov word [ebp - 0x7a], si
mov word [ebp - 0x7c], di
mov dword [ebp - 0x80], ebx
jb 0x1017edb1
mov ax, word [ebp - 0x7c]
mov word [ebp - 0x7a], ax
mov ax, word [ebp - 0x7a]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x74]
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 - 0x78]
mov byte [ebp - 0x81], bl
mov dword [ebp - 0x88], esi
jne 0x1017ee0d
mov eax, dword [ebp - 0x28]
add eax, 0xffffd3c4
mov ecx, dword [ebp - 0x74]
add ecx, 1
mov edx, dword [ebp - 0x64]
cmp ecx, edx
mov esi, eax
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x88], eax
jb 0x1017ed54
mov eax, dword [ebp - 0x88]
mov ecx, dword [ebp - 0x80]
mov dword [0x10188610], ecx
mov dl, byte [ebp - 0x81]
test dl, 1
mov esi, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x6c], esi
jne 0x1017ec16
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x6c]
mov edx, dword [ebp - 0x44]
mov esi, dword [edx]
mov edi, dword [ebp - 0x30]
cmp esi, edi
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], esi
je 0x1017ebfc
jmp 0x1017ecc1