Function at 0x1017eb80
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x84
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, 0xffffffff
mov dword [0x10188674], 0x23d6
mov esi, dword [0x10188678]
mov edi, esi
add edi, 0xfffffb21
mov dword [0x10188678], edi
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], esi
mov dword [ebp - 0x1c], edx
jne 0x1017ee5b
jmp 0x1017ecde
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov edx, eax
add edx, 0x24
mov esi, ecx
add esi, 0x63f
mov edi, dword [eax + 0x28]
mov ebx, dword [eax + 0x10]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x10]
cmp ebx, eax
sete al
mov ah, byte [ebp - 0x29]
and ah, al
test ah, 1
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x40], edi
jne 0x1017ed96
jmp 0x1017ed5f
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x28]
mov esi, dword [edx]
mov edi, dword [ebp - 0x4c]
cmp esi, edi
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], esi
je 0x1017ee4d
jmp 0x1017ebe2
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x58]
mov edx, 0x3a0
mov esi, dword [ebp - 0x40]
mov di, word [esi + eax*2]
mov ebx, ecx
add ebx, 0xffffdb51
mov si, di
add si, 0xffbf
mov word [ebp - 0x5a], si
mov si, di
add si, 0x20
mov word [ebp - 0x5c], si
mov si, word [ebp - 0x5a]
cmp si, 0x1a
mov si, word [ebp - 0x5c]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x68], edx
mov word [ebp - 0x6a], si
mov word [ebp - 0x6c], di
mov dword [ebp - 0x70], ebx
jb 0x1017eca9
mov ax, word [ebp - 0x6c]
mov word [ebp - 0x6a], ax
mov ax, word [ebp - 0x6a]
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 - 0x68]
mov byte [ebp - 0x71], bl
mov dword [ebp - 0x78], esi
jne 0x1017ee05
jmp 0x1017edaf
mov eax, dword [ebp - 0x18]
add eax, 0xfffff9c6
mov dword [0x10188674], 0x170c
mov dword [0x10188678], eax
mov ecx, dword fs:[0x18]
xor eax, eax
mov dword [0x10188674], 0xcf7
mov ecx, dword [ecx + 0x30]
mov dword [0x10188678], 0x4c0
mov ecx, dword [ecx + 0xc]
mov edx, ecx
add edx, 0x14
mov ecx, dword [ecx + 0x14]
mov dword [0x10188674], 0xcc9
cmp ecx, edx
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x1c], eax
je 0x1017ee5b
mov eax, dword [ebp - 0x10]
cmp eax, 0
setne cl
mov byte [ebp - 0x29], cl
mov eax, 0x4c0
mov ecx, dword [ebp - 0x7c]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ecx
jmp 0x1017ebe2
xor eax, eax
mov ecx, dword [ebp - 0x38]
mov dx, word [ecx]
shr dx, 1
movzx esi, dx
cmp dx, 0
mov edi, dword [ebp - 0x3c]
mov ebx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x54], eax
je 0x1017ec2b
jmp 0x1017ec4c
mov eax, dword [ebp - 0x3c]
mov dword [0x10188674], eax
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff8
mov dword [ebp - 0x1c], ecx
jmp 0x1017ee5b
mov eax, dword [ebp - 0x64]
add eax, 0xffffd3c4
mov ecx, dword [ebp - 0x60]
add ecx, 1
mov edx, dword [ebp - 0x80]
cmp ecx, edx
setb bl
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x88], ecx
mov byte [ebp - 0x89], bl
mov al, byte [ebp - 0x89]
test al, 1
mov ecx, dword [ebp - 0x84]
mov edx, dword [ebp - 0x88]
mov esi, dword [ebp - 0x84]
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x78], esi
jne 0x1017ec4c
jmp 0x1017ee05
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x70]
mov dword [0x10188678], ecx
mov dl, byte [ebp - 0x71]
test dl, 1
mov esi, eax
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x48], esi
jne 0x1017ee2c
jmp 0x1017ec2b
mov eax, dword [ebp - 0x64]
add eax, 0xffffec0d
mov ecx, dword [ebp - 0x90]
mov dword [0x10188674], ecx
mov dword [0x10188678], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x1c], eax
jmp 0x1017ee5b
xor eax, eax
mov ecx, dword [ebp - 0x50]
mov dword [0x10188674], ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
add esp, 0x84
pop esi
pop edi
pop ebx
pop ebp
ret