Function at 0x10179dec
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 dword [0x10182f54], 0x23d6
mov edx, dword [0x10182f58]
mov esi, edx
add esi, 0xfffffb21
mov dword [0x10182f58], esi
cmp ecx, 0
sete bl
cmp eax, 0
sete bh
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov byte [ebp - 0x19], bl
mov byte [ebp - 0x1a], bh
mov eax, 0xffffffff
mov cl, byte [ebp - 0x19]
mov dl, byte [ebp - 0x1a]
and cl, dl
test cl, 1
mov dword [ebp - 0x20], eax
jne 0x1017a09f
jmp 0x10179e6d
mov eax, dword [ebp - 0x24]
mov dword [0x10182f54], eax
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff8
mov dword [ebp - 0x20], ecx
jmp 0x1017a09f
mov eax, dword [ebp - 0x18]
add eax, 0xfffff9c6
mov dword [0x10182f54], 0x170c
mov dword [0x10182f58], eax
mov ecx, dword fs:[0x18]
xor eax, eax
mov dword [0x10182f54], 0xcf7
mov ecx, dword [ecx + 0x30]
mov dword [0x10182f58], 0x4c0
mov ecx, dword [ecx + 0xc]
mov edx, ecx
add edx, 0x14
mov ecx, dword [ecx + 0x14]
mov dword [0x10182f54], 0xcc9
cmp ecx, edx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x20], eax
je 0x1017a09f
jmp 0x10179f0e
xor eax, eax
mov ecx, dword [ebp - 0x34]
mov dword [0x10182f54], ecx
mov dword [ebp - 0x20], eax
jmp 0x1017a09f
mov eax, dword [ebp - 0x38]
add eax, 0xffffd3c4
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov edx, dword [ebp - 0x40]
cmp ecx, edx
mov esi, eax
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x4c], eax
jb 0x10179fa1
jmp 0x1017a032
mov eax, 0x4c0
mov ecx, dword [ebp - 0x10]
cmp ecx, 0
setne dl
mov esi, dword [ebp - 0x2c]
mov byte [ebp - 0x4d], dl
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x58], esi
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x54]
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 - 0x28], eax
mov eax, dword [ebp - 0x10]
cmp ebx, eax
sete al
mov ah, byte [ebp - 0x4d]
and ah, al
test ah, 1
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x24], edi
jne 0x10179e54
xor eax, eax
mov ecx, dword [ebp - 0x64]
mov dx, word [ecx]
shr dx, 1
movzx esi, dx
cmp dx, 0
mov edi, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x70], ebx
je 0x1017a07b
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x48]
mov edx, 0x3a0
mov esi, dword [ebp - 0x68]
mov di, word [esi + eax*2]
mov ebx, ecx
add ebx, 0xffffdb51
mov si, di
add si, 0xffbf
mov word [ebp - 0x72], si
mov si, di
add si, 0x20
mov word [ebp - 0x74], si
mov si, word [ebp - 0x72]
cmp si, 0x1a
mov si, word [ebp - 0x74]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x78], edx
mov word [ebp - 0x7a], si
mov word [ebp - 0x7c], di
mov dword [ebp - 0x80], ebx
jb 0x10179ffe
mov ax, word [ebp - 0x7c]
mov word [ebp - 0x7a], ax
mov ax, word [ebp - 0x7a]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x3c]
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 - 0x4c], esi
jne 0x1017a032
jmp 0x10179ee2
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x80]
mov dword [0x10182f58], ecx
mov dl, byte [ebp - 0x81]
test dl, 1
mov esi, eax
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x70], esi
jne 0x1017a059
jmp 0x1017a07b
mov eax, dword [ebp - 0x88]
mov dword [0x10182f54], eax
mov ecx, dword [ebp - 0x38]
add ecx, 0xffffec0d
mov dword [0x10182f58], ecx
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x20], ecx
jmp 0x1017a09f
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x70]
mov edx, dword [ebp - 0x28]
mov esi, dword [edx]
mov edi, dword [ebp - 0x30]
cmp esi, edi
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x58], esi
je 0x10179ecf
jmp 0x10179f2b
mov eax, dword [ebp - 0x20]
add esp, 0x7c
pop esi
pop edi
pop ebx
pop ebp
ret